Skip to content

Instantly share code, notes, and snippets.

@ewg118
Created March 2, 2021 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewg118/4716ccd832704cf03b7f69fa86f8d7c6 to your computer and use it in GitHub Desktop.
Save ewg118/4716ccd832704cf03b7f69fa86f8d7c6 to your computer and use it in GitHub Desktop.
Roman coins with a findspot
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX dcmitype: <http://purl.org/dc/dcmitype/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?place ?label ?lat ?long (count (?place) as ?count) WHERE {
?type a nmo:TypeSeriesItem ;
dcterms:source ?source ;
nmo:hasStartDate ?start FILTER (?start >= "-0030"^^xsd:gYear && ?start < "0060"^^xsd:gYear)
?source dcterms:isPartOf nm:roman_numismatics .
?coin nmo:hasTypeSeriesItem ?type ;
a nmo:NumismaticObject ;
nmo:hasFindspot/crm:P7_took_place_at/crm:P89_falls_within ?place .
?place a crm:E53_Place ;
rdfs:label ?label ;
geo:location ?loc .
?loc geo:lat ?lat ; geo:long ?long
} GROUP BY ?place ?label ?lat ?long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment