query-ab225d85b9d12dc1939dd29a5b8561a5

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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?place ?placeLabel ?sitelink WHERE 
{ 
  wd:Q40846 wdt:P625 ?mainLoc . 
  SERVICE wikibase:around { ?place wdt:P625 ?location . 
                            bd:serviceParam wikibase:center ?mainLoc . 
                            bd:serviceParam wikibase:radius "20" . } 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } 
  OPTIONAL {?sitelink schema:about ?place ; schema:isPartOf <https://commons.wikimedia.org/>.} 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?location") v1("?mainLoc") v2("?place"):::projected v4("?sitelink"):::projected c13([https://commons.wikimedia.org/]):::iri c10(["en"]):::literal c1(["wd:Q40846"]):::iri c4(["bd:serviceParam"]):::iri c7(["20"]):::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 s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v2 v4 --"schema:isPartOf"--> c13 end