query-84f7316b8abe5bb31de4bdb52c201858
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item ?itemLabel ?any ?anyLabel ?coord ?layer WHERE
{
?item wdt:P131 wd:Q59150 .
?item wdt:P150 ?any .
?item rdfs:label ?layer . FILTER(lang(?layer)='en')
OPTIONAL { ?any wdt:P625 ?coord }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel ?anyLabel
Query found at
- https://www.wikidata.org/wiki/User:Xaris333/query
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2018/07
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?any"):::projected
v2("?anyLabel"):::projected
v6("?coord"):::projected
v4("?item"):::projected
v1("?itemLabel"):::projected
v3("?layer"):::projected
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q59150"]):::iri
f0[["?layer = 'en'"]]
f0 --> v3
v4 --"wdt:P131"--> c3
v4 --"wdt:P150"--> v5
v4 --"rdfs:label"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P625".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end