query-c6dfdb6c2d1f142f2ac5812272ab7fe8

rq turtle/ttl

13:56, 12 November 2020 (UTC)) talk (skWhat ist wrong in this query? Attention: Use the "Wikimedia Commons Query Service". -- 14:10, 12 November 2020 (UTC) JuraIt's possible that wikibase:around isn't available on Commons. Maybe ask devs there? --- is on Wikidata so it would probably need to be called differently.wd:Q1731Maybe the problem is different Adding the coordinates directly works:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT * WHERE 
{
  SERVICE wikibase:around {
      ?file wdt:P1259 ?coordinate.
      bd:serviceParam wikibase:center "Point(13.738361 51.049258)"^^geo:wktLiteral.
      bd:serviceParam wikibase:radius "1". # 10 Kilometer around
  }  
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?coordinate"):::projected v1("?file"):::projected c7(["1"]):::literal c3(["bd:serviceParam"]):::iri c5([sPoint(13.738361 51.049258)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v1 --"wdt:P1259"--> v2 c3 --"wikibase:center"--> c5 c3 --"wikibase:radius"--> c7 end