query-49d584468f0aef8a1715f83eb657de76
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?isil (?p625 AS ?coord_on_item_level) ?p (?pq625 AS ?coord_as_qualifier) WHERE {
?item (wdt:P31/(wdt:P279*)) wd:Q1030034;
wdt:P17 wd:Q183;
wdt:P791 ?isil.
?item ?p [ pq:P625 ?pq625 ] . # coordinates as a qualifier
OPTIONAL { ?item wdt:P625 ?p625 . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,de,tr". }
}
ORDER BY (?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?coord_as_qualifier")
v7("?coord_on_item_level")
v3("?isil"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v5("?p"):::projected
v6("?p625"):::projected
v4("?pq625"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c5(["wd:Q183"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en,fr,de,tr"]):::literal
c3(["wd:Q1030034"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
v2 --"wdt:P791"--> v3
a2 --"pq:P625"--> v4
v2 -->v5--> a2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind0[/"?p625"/]
v6 --o bind0
bind0 --as--o v7
bind1[/"?pq625"/]
v4 --o bind1
bind1 --as--o v8