query-8c2da25bc0fff555531f34c695758f5d

rq turtle/ttl

Dipsacus fullonum

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 ?item ?itemLabel ?distance
WHERE
{
  VALUES ?my_location { "Point(2.294479 48.858296)"^^geo:wktLiteral }
  SERVICE wikibase:around
  {
    ?item wdt:P625 ?location . 
    bd:serviceParam wikibase:center ?my_location .
    bd:serviceParam wikibase:radius "1" .
    bd:serviceParam wikibase:distance ?distance .
  }
  bind (1 as ?dist)
  bind (?dist/10 as ?prec)
  FILTER (?distance > ?dist - ?prec && ?distance < ?dist + ?prec)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?dist") v1("?distance"):::projected v5("?item"):::projected v6("?location") v4("?my_location") v7("?prec") c6(["1"]):::literal c3(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?distance > ?dist - ?prec?distance < ?dist + ?prec"]] f0 --> v1 f0 --> v7 f0 --> v7 bind1[/VALUES ?my_location/] bind1-->v4 bind10([sPoint(2.294479 48.858296)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]) bind10 --> bind1 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v5 --"wdt:P625"--> v6 c3 --"wikibase:center"--> v4 c3 --"wikibase:radius"--> c6 c3 --"wikibase:distance"--> v1 end bind2[/"'1^^xsd:integer'"/] bind2 --as--o v7 bind3[/"?dist / '10^^xsd:integer'"/] v7 --o bind3 bind3 --as--o v7 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c3 --"wikibase:language"--> c10 end