query-3669275b60987a1272c4bf48b34b3c98
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
#defaultView:Map
SELECT ?observatory ?point {
VALUES (?observatory) {(wd:Q192988)}
?observatory p:P625/psv:P625 [wikibase:geoLongitude ?longitude; wikibase:geoLatitude ?latitude]
BIND (
STRDT(
CONCAT( 'POINT(', STR(?longitude), ' ', STR(?latitude), ')' ),
geo:wktLiteral
)
AS ?point
)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?latitude")
v2("?longitude")
v1("?observatory"):::projected
v4("?point"):::projected
a2((" "))
a1((" "))
bind0[/VALUES ?observatory/]
bind0-->v1
bind00(["wd:Q192988"])
bind00 --> bind0
a1 --"wikibase:geoLongitude"--> v2
a1 --"wikibase:geoLatitude"--> v3
v1 --"p:P625"--> a2
a2 --"p:statement/value/P625"--> a1
bind1[/"STRDT(concat('POINT(',str(?longitude),' ',str(?latitude),')'),'geo:wktLiteral')"/]
v2 --o bind1
v3 --o bind1
bind1 --as--o v4