query-f6c5393038287b36d21f5c53be8f942f

rq turtle/ttl

Ryćerkubło, knježi dom, hród (25km)

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 ?item ?itemLabel ?coordinate WHERE {
  wd:Q93286 wdt:P625 ?Center.
  VALUES ?instance_of { 
      wd:Q879050      # knježi dom
      wd:Q2116450     # ryćerkubło
      wd:Q23413       # hród (Burg)
      wd:Q751876      # hród (Schloss)
    } 
    ?item wdt:P31 ?instance_of.
  SERVICE wikibase:around {
    ?item wdt:P625 ?coordinate.
    bd:serviceParam wikibase:center ?Center.
    bd:serviceParam wikibase:radius "25". # 25 Kilometer around
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "hsb,de,[AUTO_LANGUAGE]". }
  #FILTER(EXISTS { ?place (wdt:P31/wdt:P279*) wd:Q1248784. })
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?Center") v4("?coordinate"):::projected v2("?instance_of") v3("?item"):::projected c1(["wd:Q93286"]):::iri c5(["bd:serviceParam"]):::iri c8(["25"]):::literal c11(["hsb,de,#91;AUTO_LANGUAGE#93;"]):::literal c1 --"wdt:P625"--> v1 bind0[/VALUES ?instance_of/] bind0-->v2 bind00(["wd:Q879050"]) bind00 --> bind0 bind01(["wd:Q2116450"]) bind01 --> bind0 bind02(["wd:Q23413"]) bind02 --> bind0 bind03(["wd:Q751876"]) bind03 --> bind0 v3 --"wdt:P31"--> v2 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v3 --"wdt:P625"--> v4 c5 --"wikibase:center"--> v1 c5 --"wikibase:radius"--> c8 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c5 --"wikibase:language"--> c11 end