query-b156a096ce605130f398ea0bc3baad67
Just the promontory forts1242 of them!
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj ?image (URI(CONCAT("https://hillforts.arch.ox.ac.uk/?query=Atlas_of_Hillforts_4166_0%2CMain_Atlas_Number%2C",?atlas)) AS ?atlaslink) WHERE
{ ?subj wdt:P31 wd:Q92086 ;
wdt:P625 ?coord ;
wdt:P4102 ?atlas ;
rdfs:label ?label filter (lang(?label) = "en").
OPTIONAL{ ?subj wdt:P18 ?image }
?subj p:P625/psv:P625 ?loc. # coordinate-location statement
?loc wikibase:geoLatitude ?lat .
?loc wikibase:geoLongitude ?long .
FILTER (?lat > 49) FILTER (?lat < 63)
FILTER (?long > -10.5) FILTER (?long < 2.02)
} GROUP BY ?label ?subj ?image ?atlas
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?atlas"):::projected
v10("?atlaslink")
v5("?coord"):::projected
v7("?image"):::projected
v3("?label"):::projected
v2("?lat")
v8("?loc")
v1("?long")
v4("?subj"):::projected
v9("?where")
a1((" "))
c7(["wd:Q92086"]):::iri
f0[["?long < '2.02^^xsd:decimal'"]]
f0 --> v1
f1[["?long > '-10.5^^xsd:decimal'"]]
f1 --> v1
f2[["?lat < '63^^xsd:integer'"]]
f2 --> v2
f3[["?lat > '49^^xsd:integer'"]]
f3 --> v2
f4[["?label = 'en'"]]
f4 --> v3
v4 --"p:direct/P31"--> c7
v4 --"p:direct/P625"--> v5
v4 --"p:direct/P4102"--> v6
v4 --"rdfs:label"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P18".-> v7
end
v4 --"p:P625"--> a1
a1 --"p:statement/value/P625"--> v8
v8 --"wikibase:geoLatitude"--> v2
v8 --"wikibase:geoLongitude"--> v1
bind6[/"sample(?coord)"/]
v5 --o bind6
bind6 --as--o v9
bind7[/"concat('https://hillforts.arch.ox.ac.uk/?query=Atlas_of_Hillforts_4166_0%2CMain_Atlas_Number%2C',?atlas)"/]
v6 --o bind7
bind7 --as--o v10