query-c99b2bd98e3d6000415e4262997b8e12

rq turtle/ttl

Map view (#/map?c=::)List of monuments

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?admin ?adminLabel ?image ?coord ?heritage
WHERE {
  SERVICE wikibase:box {
    ?item wdt:P625 ?coord .
    bd:serviceParam wikibase:cornerWest "Point(2.2821521759033208 48.852955004124134)"^^geo:wktLiteral .
    bd:serviceParam wikibase:cornerEast "Point(2.30663537979126 48.86364195726954)"^^geo:wktLiteral .
  }
  OPTIONAL { ?item wdt:P131 ?admin . }
  OPTIONAL { ?item wdt:P18 ?image . }
  ?item wdt:P1435 ?heritage .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?admin"):::projected v2("?coord"):::projected v5("?heritage"):::projected v4("?image"):::projected v1("?item"):::projected c13(["en,de"]):::literal c5([sPoint(2.2821521759033208 48.852955004124134)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c7([sPoint(2.30663537979126 48.86364195726954)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c3(["bd:serviceParam"]):::iri subgraph s1["http://wikiba.se/ontology#box"] style s1 stroke-width:4px; v1 --"wdt:P625"--> v2 c3 --"wikibase:cornerWest"--> c5 c3 --"wikibase:cornerEast"--> c7 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P131".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v4 end v1 --"wdt:P1435"--> v5 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c3 --"wikibase:language"--> c13 end