query-af431f9921d3bb3f38e3f7b771c7083d

rq turtle/ttl

RXerself

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 distinct ?place ?placeLabel ?location
WHERE
{

{
  SELECT ?place ?location
  WHERE
  {
    # Berlin coordinates
    wd:Q64 wdt:P625 ?berlinLoc .
    SERVICE wikibase:around
    {
      ?place wdt:P625 ?location .
      bd:serviceParam wikibase:center ?berlinLoc .
      bd:serviceParam wikibase:radius "100" .
    }
  }
}  ?place wdt:P31/wdt:P279* wd:Q62447 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de". } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?berlinLoc") v3("?location"):::projected v2("?place"):::projected a1((" ")) c13(["en,de"]):::literal c1(["wd:Q64"]):::iri c10(["wd:Q62447"]):::iri c7(["100"]):::literal c4(["bd:serviceParam"]):::iri c1 --"wdt:P625"--> v1 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v2 --"wdt:P625"--> v3 c4 --"wikibase:center"--> v1 c4 --"wikibase:radius"--> c7 end v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c10 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c13 end