query-d3ba69a852005c89ad9a074e84c9a51b

rq turtle/ttl

(P1566)GeoNames ID

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 ?place ?placeLabel ?location ?article WHERE {
  wd:Q2556776 wdt:P625 ?loc . #ZDE NAHRADTE PRVNI WIKIDATA POLOZKU POLOZKOU MISTA, KOLEM NEHOZ CHCETE HLEDAT
  SERVICE wikibase:around { 
      ?place wdt:P625 ?location . 
      bd:serviceParam wikibase:center ?loc . 
      bd:serviceParam wikibase:radius "10" . #ZDE NAHRADTE CISLO POCTEM KILOMETRU, KTERE MAJI BYT POUZITY JAKO RADIUS KOLEM VASEHO MISTA
  } 
  MINUS {?place wdt:P18 ?img . }
  MINUS {?place wdt:P1566 []}
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "cs,en" . 
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?img") v1("?loc") v3("?location"):::projected v2("?place"):::projected a1((" ")) c4(["bd:serviceParam"]):::iri c1(["wd:Q2556776"]):::iri c12(["cs,en"]):::literal c7(["10"]):::literal 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 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P18"--> v4 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P1566"--> a1 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c12 end