query-4bc62ce032bc19622849bd1354183ef4

rq turtle/ttl

o

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?place ?placeLabel ?location ?dist 
WHERE {
  wd:Q205022 wdt:P625 ?biokoLoc.

  SERVICE wikibase:around { 
      ?place wdt:P625 ?location . 
      bd:serviceParam wikibase:center ?biokoLoc . 
      bd:serviceParam wikibase:radius "65" . 
      bd:serviceParam wikibase:distance ?dist.
  } 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } 
} 
ORDER BY ASC(?dist)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?biokoLoc") v1("?dist"):::projected v4("?location"):::projected v3("?place"):::projected c4(["bd:serviceParam"]):::iri c1(["wd:Q205022"]):::iri c11(["en"]):::literal c7(["65"]):::literal c1 --"wdt:P625"--> v2 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v3 --"wdt:P625"--> v4 c4 --"wikibase:center"--> v2 c4 --"wikibase:radius"--> c7 c4 --"wikibase:distance"--> v1 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c11 end