query-57725f84674bc3ee20760679211eca1b

rq turtle/ttl

Monuments and other heritage items located 1 km around the users location Monuments and other heritage items located 1 km around the users location Monuments et autres éléments du passé situés 1 km autour du lieu de l'utilisateur Monuments and other heritage items located 1 km around the users location Monuments and other heritage items located 1 km around the users location Monumenten en andere erfgoedstukken op 1 km rond de locatie van de gebruiker Kulturminnen och andra minnesmärkta objekt inom 1 km från användarens plats Monuments and other heritage items located 1 km around the users location Monuments and other heritage items located 1 km around the users location Monuments and other heritage items located 1 km around the users location

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
select distinct ?monument ?monumentLabel ?heritageLabel (sample(?distance) as ?distance) (sample(?location) as ?location) (sample(?image) as ?image) where {
  ?monument wdt:P1435 ?heritage.

  service wikibase:around {   
    ?monument wdt:P625 ?location.
    bd:serviceParam wikibase:center "[AUTO_COORDINATES]".
    bd:serviceParam wikibase:radius "1" . 
    bd:serviceParam wikibase:distance ?distance .
  }

  optional {
    ?monument wdt:P18 ?image.
  }

  service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,de,es,nl". }
} group by ?monument ?monumentLabel ?heritageLabel order by ?distance

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?distance"):::projected v3("?heritage") v6("?image"):::projected v6("?location"):::projected v2("?monument"):::projected c13(["#91;AUTO_LANGUAGE#93;,en,fr,de,es,nl"]):::literal c8(["1"]):::literal c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_COORDINATES#93;"]):::literal v2 --"wdt:P1435"--> v3 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v2 --"wdt:P625"--> v6 c4 --"wikibase:center"--> c6 c4 --"wikibase:radius"--> c8 c4 --"wikibase:distance"--> v6 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v6 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c13 end bind3[/"sample(?distance)"/] v6 --o bind3 bind3 --as--o v6 bind4[/"sample(?location)"/] v6 --o bind4 bind4 --as--o v6 bind5[/"sample(?image)"/] v6 --o bind5 bind5 --as--o v6