query-91653cb8911930700a99ea2c43f815e3
Search by wikibase:geoLatitude and wikibase:geoLongitudeHello, I'm not sure why this query finds no match when I uncomment the first VALUES statement:
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:decimal "-86.756451"^^xsd:decimal)
# }
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;
v1("?lake"):::projected
v5("?lat"):::projected
v2("?loc"):::projected
v6("?lon"):::projected
v4("?node")
v3("?ps")
a1((" "))
c3(["wd:Q23397"]):::iri
c5(["wd:Q30"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?lake/]
bind0-->v1
bind00(["wd:Q1169"])
bind00 --> bind0
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:direct/P17"--> c5
v1 --"p:direct/P625"--> v2
v1 --"p:P625"--> v3
v3 --"p:statement/value/P625"--> v4
v4 --"wikibase:geoLatitude"--> v5
v4 --"wikibase:geoLongitude"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end