query-98790c41359519dbb748452f93342aa4
TODO
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?date_of_birth ?date_of_death ?image ?worklocationLabel ?coordinate_person ?coordinate_location WHERE {
?item wdt:P106 wd:Q2516866;
wdt:P937 ?worklocation.
?worklocation wdt:P131* wd:Q727
OPTIONAL { ?worklocation wdt:P625 ?coordinate_location }
OPTIONAL { ?item p:P937/pq:P625 ?coordinate_person }
OPTIONAL { ?item wdt:P569 ?date_of_birth }
OPTIONAL { ?item wdt:P570 ?date_of_death }
OPTIONAL { ?item wdt:P18 ?image }
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en,de,fr" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coordinate_location"):::projected
v4("?coordinate_person"):::projected
v5("?date_of_birth"):::projected
v6("?date_of_death"):::projected
v7("?image"):::projected
v1("?item"):::projected
v2("?worklocation")
a1((" "))
c5(["wd:Q727"]):::iri
c2(["wd:Q2516866"]):::iri
c15(["nl,en,de,fr"]):::literal
c13(["bd:serviceParam"]):::iri
v1 --"p:direct/P106"--> c2
v1 --"p:direct/P937"--> v2
v2 --"p:direct/P131"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P625".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P937".-> a1
a1 --"p:qualifier/P625"--> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P569".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P570".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P18".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end