query-cb112fcd474911e8dc14086890ab9649
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT (concat ("Point(",(str(SUM(?lat)/2))," ", (str(SUM(?lon)/2)), ")") as ?point ) WHERE {
values ?lieu {wd:Q90
wd:Q240798}
?lieu wdt:P625 ?coord .
?lieu p:P625 ?coordinate .
?coordinate psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?lat .
?coordinate_node wikibase:geoLongitude ?lon . }
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord")
v3("?coordinate")
v4("?coordinate_node")
v5("?lat")
v1("?lieu")
v6("?lon")
v7("?point")
bind0[/VALUES ?lieu/]
bind0-->v1
bind00(["wd:Q90"])
bind00 --> bind0
bind01(["wd:Q240798"])
bind01 --> bind0
v1 --"p:direct/P625"--> v2
v1 --"p:P625"--> v3
v3 --"p:statement/value/P625"--> v4
v4 --"wikibase:geoLatitude"--> v5
v4 --"wikibase:geoLongitude"--> v6
bind3[/"concat('Point(',str( / '2^^xsd:integer'),' ',str( / '2^^xsd:integer'),')')"/]
null --o bind3
null --o bind3
bind3 --as--o v7