query-c0c3127fd32d8ae12e704e6deb802636
UKNA links for UK cabinet ministers, with post held
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?positionLabel ?date (URI(CONCAT("https://discovery.nationalarchives.gov.uk/details/c/",?ukna)) AS ?url) WHERE {
?person wdt:P3029 ?ukna; # person in UK National Archives
wdt:P39 ?position . ?position wdt:P361 wd:Q112014. # held position in Cabinet of the UK
?person wdt:P570 ?date # death date
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?date"):::projected
v1("?person"):::projected
v3("?position")
v2("?ukna"):::projected
v5("?url")
c7(["bd:serviceParam"]):::iri
c4(["wd:Q112014"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P3029"--> v2
v1 --"wdt:P39"--> v3
v3 --"wdt:P361"--> c4
v1 --"wdt:P570"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind0[/"concat('https://discovery.nationalarchives.gov.uk/details/c/',?ukna)"/]
v2 --o bind0
bind0 --as--o v5