query-e80fcb8f19730f05aa65aa742483955c
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 ?image
WHERE {
?comm wdt:P131 wd:Q3131.
?item wdt:P131 ?comm.
?item (wdt:P31/wdt:P279*) wd:Q16970.
?item wdt:P625 ?coord.
OPTIONAL {?item wdt:P18 ?image}
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;
v1("?comm")
v3("?coord"):::projected
v4("?image"):::projected
v2("?item"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c2(["wd:Q3131"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q16970"]):::iri
v1 --"wdt:P131"--> c2
v2 --"wdt:P131"--> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P625"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end