query-4b2aa902c2a81a5f4e48845c002b6dfe
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT distinct ?item ?itemLabel ?coord
WHERE
{
{?item wdt:P27 wd:Q30 .}
union
{?item wdt:P20 ?pod. ?pod wdt:P17 wd:Q30.}
?item wdt:P19 ?pob.
?pob wdt:P625 ?coord.
?pob wdt:P17 wd:Q20.
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("?coord"):::projected
v1("?item"):::projected
v3("?pob")
v2("?pod")
c9(["bd:serviceParam"]):::iri
c7(["wd:Q20"]):::iri
c2(["wd:Q30"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P20"--> v2
v2 --"wdt:P17"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P19"--> v3
v3 --"wdt:P625"--> v4
v3 --"wdt:P17"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end