User:MartinPoulter/queries/hillforts

Most queries on this page have been enabled by a dump of 4147 records from the Atlas of Hillforts, an AHRC-funded project involving the universities of Oxford and Edinburgh.

Locations of hillforts that are in the Atlas

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) ?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/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      wdt:P4102  ?atlas ;
      rdfs:label ?label filter (lang(?label) = "en").
OPTIONAL{ ?subj wdt:P18 ?image } 
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en")
} GROUP BY ?label ?subj ?typeLabel ?image ?atlas

Hillforts in the British Isles that are not in the Atlas, and probably need merging

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) ?image WHERE
{ ?subj wdt:P31/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      rdfs:label ?label filter (lang(?label) = "en").
MINUS { ?subj wdt:P4102 ?atlas }
OPTIONAL{ ?subj wdt:P18 ?image } 
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
?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 ?typeLabel ?image

Hillforts with an image

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) ?image WHERE
{  ?subj wdt:P31/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      wdt:P18 ?image ;
      rdfs:label ?label filter (lang(?label) = "en").
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
?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 ?typeLabel ?image

Hillforts with a plan image

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) ?planimage WHERE
{  ?subj wdt:P31/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      wdt:P3311 ?planimage ;
      rdfs:label ?label filter (lang(?label) = "en").
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
?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 ?typeLabel ?planimage

Hillforts with a video

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) ?video WHERE
{  ?subj wdt:P31/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      wdt:P10 ?video ;
      rdfs:label ?label filter (lang(?label) = "en").
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
?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 ?typeLabel ?video

Table of IDs and Commons images

edit

The following query uses these:

Hillforts without an image

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) WHERE
{  ?subj wdt:P31/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      rdfs:label ?label filter (lang(?label) = "en").
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
MINUS{?subj wdt:P18 []}
?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 ?typeLabel

Hillforts linked to a Commons category

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label (SAMPLE(?coord) AS ?where) ?subj (?typeLabel AS ?layer) ?commons WHERE
{  ?subj wdt:P31/wdt:P279? ?type ;
      wdt:P625 ?coord ;
      wdt:P31 ?type ;
      wdt:P373 ?commons ;
      rdfs:label ?label filter (lang(?label) = "en").
?type wdt:P279? wd:Q744099 ;
    rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
?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 ?typeLabel ?commons

Wikidata mapping to Atlas IDs and vice versa

edit

The following query uses these:

For baffling reasons, this query when I try it misses Tredegar Fort (Q31055740).

Hillforts with data from the Atlas and an article in English Wikipedia

edit

The following query uses these:

  • Properties: instance of (P31)     , subclass of (P279)     , Atlas of Hillforts ID (P4102)     
    SELECT DISTINCT ?subj (URI(CONCAT("https://hillforts.arch.ox.ac.uk/?query=Atlas_of_Hillforts_4166_0%2CMain_Atlas_Number%2C", ?atlasID)) AS ?atlas) ?english WHERE
    { ?subj wdt:P31/wdt:P279? wd:Q744099 ;
      wdt:P4102 ?atlasID .
    ?english schema:about ?subj ; schema:isPartOf <https://en.wikipedia.org/>
    } ORDER BY ?atlasID
    

Hillforts with data from the Atlas and an article in Welsh Wicipedia

edit

The following query uses these:

  • Properties: instance of (P31)     , subclass of (P279)     , Atlas of Hillforts ID (P4102)     
    SELECT DISTINCT ?subj (URI(CONCAT("https://hillforts.arch.ox.ac.uk/?query=Atlas_of_Hillforts_4166_0%2CMain_Atlas_Number%2C", ?atlasID)) AS ?atlas) ?cymraeg WHERE
    { ?subj wdt:P31/wdt:P279? wd:Q744099 ;
      wdt:P4102 ?atlasID .
    ?cymraeg schema:about ?subj ; schema:isPartOf <https://cy.wikipedia.org/>
    } ORDER BY ?atlasID
    

Types of hillfort

edit

The following query uses these:

  • Properties: subclass of (P279)     , reference URL (P854)     
    SELECT ?type ?typeLabel ?typeDescription ?link WHERE
    {  ?type p:P279 ?s .
       ?s ps:P279 wd:Q744099 ;
        prov:wasDerivedFrom/pr:P854 ?link
    SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en"}
    }
    

Hillforts from the Atlas that share a National Heritage List for England number with another site

edit

The following query uses these:

Just the promontory forts

edit

1242 of them!

The following query uses these:

Features: map (Q24515275)     

#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

Things that hillforts are types of, that are not types of hillfort, e.g. ruins

edit

The following query uses these:

  • Properties: Atlas of Hillforts ID (P4102)     , instance of (P31)     , subclass of (P279)     
    SELECT ?label ?subj ?atlas (GROUP_CONCAT(?typeLabel; separator=", ") AS ?types) WHERE
    {  ?subj wdt:P4102 ?atlas ;
          wdt:P31 ?type ;
          rdfs:label ?label filter (lang(?label) = "en").
     MINUS{?type wdt:P279? wd:Q744099 }
     ?type rdfs:label ?typeLabel filter (lang(?typeLabel) = "en").
    } GROUP BY ?label ?subj ?atlas ORDER BY ?types
    

Hillfort names that are in ALL CAPS

edit

This was a problem with 3% of the initial upload, but is now fixed and so query should return no results.

The following query uses these:

  • Properties: instance of (P31)     , subclass of (P279)     
    SELECT ?subj ?label WHERE
    {  ?subj wdt:P31/wdt:P279? wd:Q744099 ;
          rdfs:label ?label filter (lang(?label) = "en").
    FILTER(UCASE(?label) = ?label)
    }
    

Hillfort co-ordinates with excessive precision

edit

The following query uses these:

Other identifiers for hillfort sites

edit

Digital Atlas of the Roman Empire

edit

The following query uses these:

Hillforts in the Atlas with labels in non-English languages

edit

Welsh

edit

The following query uses these:

Scottish Gaelic

edit

The following query uses these:

Irish

edit

The following query uses these:

Archaeological sites of all kinds in a lat/long box placing them in the British Isles

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label ?loc ?subj
WHERE
{
   ?subj wdt:P31/wdt:P279* wd:Q839954 ; # site or subtype
      wdt:P625 ?loc ; # location to plot on map
          p:P625/psv:P625 ?coord; # coordinate-location statement
      rdfs:label ?label filter (lang(?label) = "en").
  ?coord wikibase:geoLatitude ?lat .
  ?coord wikibase:geoLongitude ?long .
   FILTER (?lat > 49) FILTER (?lat < 63)
   FILTER (?long > -10.5) FILTER (?long < 2.02) 
}

Archaeological sites and fortifications of all kinds in a lat/long box placing them in the Isle of Man

edit

The following query uses these:

Features: map (Q24515275)     

#defaultView:Map
SELECT ?label ?loc ?subj
WHERE
{
   { ?subj wdt:P31/wdt:P279* wd:Q839954 } UNION { ?subj wdt:P31/wdt:P279* wd:Q57821 } # site or subtype / hillfort or subtype
   ?subj   wdt:P625 ?loc ; # location to plot on map
          p:P625/psv:P625 ?coord; # coordinate-location statement
      rdfs:label ?label filter (lang(?label) = "en").
  ?coord wikibase:geoLatitude ?lat .
  ?coord wikibase:geoLongitude ?long .
   FILTER (?lat > 53.845) FILTER (?lat < 54.554)
   FILTER (?long > -5.17) FILTER (?long < -3.96) 
}