query-34bfea4320ecaf11bd0625d4372df7c9
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 ?item ?itemLabel (SAMPLE(?coordinate) as ?coord) WHERE
{
{
SELECT ?item WHERE {
?item wdt:P131/wdt:P131* wd:Q127513.
} } ?item wdt:P625 ?coordinate.
?item wdt:P31/wdt:P279* wd:Q12323.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord")
v2("?coordinate"):::projected
v1("?item"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c2(["wd:Q127513"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q12323"]):::iri
v1 --"wdt:P131"--> a1
a1 --"wdt:P131"--> c2
v1 --"wdt:P625"--> v2
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"sample(?coordinate)"/]
v2 --o bind1
bind1 --as--o v3