query-0958f70e83a0fe66960c3e97230fa7a1
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 ?place ?placeLabel ?layerLabel ?location ?layer WHERE {
wd:Q5090115 wdt:P625 ?Wloc .
wd:Q1851584 wdt:P625 ?Eloc .
SERVICE wikibase:box {
?place wdt:P625 ?location .
bd:serviceParam wikibase:cornerWest ?Wloc .
bd:serviceParam wikibase:cornerEast ?Eloc .
}
OPTIONAL {
?place wdt:P131 ?layer .
?layer wdt:P31 wd:Q211690
}
FILTER(BOUND(?layer)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?Eloc")
v2("?Wloc")
v1("?layer"):::projected
v5("?location"):::projected
v4("?place"):::projected
c10(["wd:Q211690"]):::iri
c13(["en"]):::literal
c5(["bd:serviceParam"]):::iri
c1(["wd:Q5090115"]):::iri
c3(["wd:Q1851584"]):::iri
f0[["bound(?layer)"]]
f0 --> v1
c1 --"wdt:P625"--> v2
c3 --"wdt:P625"--> v3
subgraph s1["http://wikiba.se/ontology#box"]
style s1 stroke-width:4px;
v4 --"wdt:P625"--> v5
c5 --"wikibase:cornerWest"--> v2
c5 --"wikibase:cornerEast"--> v3
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P131".-> v1
v1 --"wdt:P31"--> c10
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c5 --"wikibase:language"--> c13
end