query-8438fecb543c1548e7a5f899f814ca66

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#>
# substitut local per Wikishootme
SELECT ?place ?placeLabel ?location ?layerLabel ?foto 
WHERE
{
  wd:Q15385 wdt:P625 ?loc . #lloc central
  SERVICE wikibase:around {
      ?place wdt:P625 ?location .
      bd:serviceParam wikibase:center ?loc .
      bd:serviceParam wikibase:radius "26" .
  }
  OPTIONAL {    ?place wdt:P31 ?layer  }
  OPTIONAL {    ?place wdt:P18 ?foto  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ca, en, fr, ceb" }
} 
#defaultView:Map

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?foto"):::projected v4("?layer") v1("?loc") v3("?location"):::projected v2("?place"):::projected c4(["bd:serviceParam"]):::iri c7(["26"]):::literal c1(["wd:Q15385"]):::iri c12(["ca, en, fr, ceb"]):::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 optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P31".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v5 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c12 end