User:VicVal/Danish Government

From Wikidata
Jump to navigation Jump to search

Looking at Inger Støjberg (Q3121413) I couldn't see any relation to her position as member of the Danish Government and looking a bid more into the Danish Government items on Wikidata sort of shows that these are not really well engineered yet.

So this project is about:

  1. Get the basic structure of Danish Cabinets in place
  2. Add some data to the Cabinets so that they can render nicely
  3. Link members into the Cabinets

Inspiration for the end result would be something like this [1]

Basic Structures of Danish Cabinets[edit]

The authoritative source to this must be the list on the homepage of the Danish Head of Government [2] and alternative source might be [3].

It doesn't seem like there is a Cabinet of Denmark class, which I would expect to be a sub-class of government (Q7188). So instead i have to look for country (P17)Denmark (Q35) and instance of (P31)government (Q7188).

Code[edit]

SELECT ?government ?governmentLabel ?namedAfterLabel ?picture ?inception ?start ?end ?followsLabel ?followedByLabel WHERE { ?government wdt:P31 wd:Q1503072 . OPTIONAL{ ?government wdt:P155 ?follows . }

 	OPTIONAL{ ?government wdt:P156 ?followedBy . }
 	OPTIONAL{ ?government wdt:P571 ?inception . }
 	OPTIONAL{ ?government wdt:P580 ?start . }
 	OPTIONAL{ ?government wdt:P582 ?end . }
 	OPTIONAL{ ?government wdt:P138 ?namedAfter . }
 	OPTIONAL{ ?government wdt:P18 ?picture . }
 

SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en" } } ORDER BY DESC(?start)

Other notes[edit]

I need to use PetScan?

Danish Parliment has an oData project running oda.ft.dk