query-4d2bae507668437eae6453c583667147

rq turtle/ttl

Update query] with better filters ? [4]Hello, is it possible to update this query shown in example list ([

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#>
PREFIX geof: <http://www.opengis.net/def/geosparql/function/>
#added before 2016-10
#defaultView:Map
SELECT ?place ?placeLabel (SAMPLE(?location) as ?localisation) WHERE {
  wd:Q933 wdt:P625 ?southPole.
  ?place wdt:P30 wd:Q51.
  ?place wdt:P625 ?location.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  MINUS { ?place wdt:P576 _:b4. }
  MINUS { ?place wdt:P582 _:b5. }
  FILTER((geof:distance(?location, ?southPole)) > 3000)
}
group by ?place ?placeLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?localisation") v1("?location"):::projected v3("?place"):::projected v2("?southPole") a1((" ")) a2((" ")) c7(["bd:serviceParam"]):::iri c2(["wd:Q933"]):::iri c5(["wd:Q51"]):::iri c9(["en"]):::literal f0[["http://www.opengis.net/def/geosparql/function/distance(?location,?southPole) > '3000^^xsd:integer'"]] f0 --> v1 f0 --> v2 c2 --"wdt:P625"--> v2 v3 --"wdt:P30"--> c5 v3 --"wdt:P625"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P576"--> a1 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P582"--> a2 end bind4[/"sample(?location)"/] v1 --o bind4 bind4 --as--o v4