query-0756e57300c08606b7edfc71d2c76944

rq turtle/ttl

Distance between Berlin (Q64) and New York (Q1384)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT * WHERE {
  wd:Q64 wdt:P625 ?berlinLoc .
  wd:Q1384 wdt:P625 ?newyorkLoc
  BIND(geof:distance(?berlinLoc, ?newyorkLoc) as ?dist)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?berlinLoc"):::projected v3("?dist"):::projected v2("?newyorkLoc"):::projected c1(["wd:Q64"]):::iri c3(["wd:Q1384"]):::iri c1 --"wdt:P625"--> v1 c3 --"wdt:P625"--> v2 bind0[/"http://www.opengis.net/def/function/geosparql/distance(?berlinLoc,?newyorkLoc)"/] v1 --o bind0 v2 --o bind0 bind0 --as--o v3