query-7e6f8d2f9e9bf5f2da9e427b4a9f968b

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item (SAMPLE(?itemLabel_) as ?itemLabel) (SAMPLE(?coordinate) as ?coord)
WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". 
                         ?item rdfs:label ?itemLabel_}
  ?item wdt:P31 wd:Q12323.
  ?item wdt:P131/wdt:P131* wd:Q130300.
  ?item wdt:P625 ?coordinate.
}
GROUP BY ?item

Query found at

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