query-8611e02ef76164e955c0955a941745d8

rq turtle/ttl

Map with labelsHi, I'm using the following query

Use at

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 ?item (SAMPLE(?coord) as ?coord)
WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P31 wd:Q12323.
  ?item wdt:P131/wdt:P131* wd:Q130300.
  ?item wdt:P625 ?coord.
}
GROUP BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coord"):::projected v1("?item"):::projected a1((" ")) c2(["bd:serviceParam"]):::iri c8(["wd:Q130300"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q12323"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> c6 v1 --"wdt:P131"--> a1 a1 --"wdt:P131"--> c8 v1 --"wdt:P625"--> v3 bind1[/"sample(?coord)"/] v3 --o bind1 bind1 --as--o v3