query-7b18e26cbae37b0bdd6fb9392253af13

rq turtle/ttl

TODO

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#>
SELECT ?item ?country ?coord ?dist {

  VALUES ?country { wd:Q1558 } .
  ?country wdt:P5140 ?center .
  SERVICE wikibase:around {
    ?item wdt:P625 ?coord .
    bd:serviceParam wikibase:center ?center .
    bd:serviceParam wikibase:radius "150" .
    bd:serviceParam wikibase:distance ?dist .
  } .
  MINUS { ?item wdt:P131 [] } .
} ORDER BY ?dist

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?center") v5("?coord"):::projected v2("?country"):::projected v1("?dist"):::projected v4("?item"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c7(["150"]):::literal bind0[/VALUES ?country/] bind0-->v2 bind00(["wd:Q1558"]) bind00 --> bind0 v2 --"wdt:P5140"--> v3 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v4 --"wdt:P625"--> v5 c4 --"wikibase:center"--> v3 c4 --"wikibase:radius"--> c7 c4 --"wikibase:distance"--> v1 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v4 --"wdt:P131"--> a1 end