query-c1c5eb084134aebca2bb906002da631a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?lake ?lakeLabel ?loc ?lat ?lon ?lonType WHERE {
VALUES (?lat ?lon) { ("44.007874"^^xsd:double "-86.756451"^^xsd:double) }
VALUES ?lake {wd:Q1169 }
?lake (wdt:P31/(wdt:P279*)) wd:Q23397;
wdt:P17 wd:Q30;
wdt:P625 ?loc;
p:P625 ?ps.
?ps psv:P625 ?node.
?node wikibase:geoLatitude ?lat;
wikibase:geoLongitude ?lon.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?lake"):::projected
v1("?lat"):::projected
v4("?loc"):::projected
v2("?lon"):::projected
v6("?node")
v5("?ps")
a1((" "))
c3(["wd:Q23397"]):::iri
c5(["wd:Q30"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?lat ?lon/]
bind0-->v1
bind0-->v2
bind00(["44.007874^^xsd:double"])
bind00 --> bind0
bind01(["-86.756451^^xsd:double"])
bind01 --> bind0
bind1[/VALUES ?lake/]
bind1-->v3
bind10(["wd:Q1169"])
bind10 --> bind1
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v3 --"p:direct/P17"--> c5
v3 --"p:direct/P625"--> v4
v3 --"p:P625"--> v5
v5 --"p:statement/value/P625"--> v6
v6 --"wikibase:geoLatitude"--> v1
v6 --"wikibase:geoLongitude"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end