Skip to content

Instantly share code, notes, and snippets.

@ewg118
Created April 26, 2021 16:09
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/c7a5adc9cf656d656a95b2495e15de71 to your computer and use it in GitHub Desktop.
Save ewg118/c7a5adc9cf656d656a95b2495e15de71 to your computer and use it in GitHub Desktop.
Gilles' SPARQL query
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?authority ?authorityLabel (count(?coin) as ?count) WHERE {
?type nmo:hasDenomination nm:denarius ;
nmo:hasAuthority ?authority ;
dcterms:source nm:ric ;
nmo:hasStartDate ?date FILTER (?date >= "0064"^^xsd:gYear && ?date <= "0161"^^xsd:gYear).
?authority skos:prefLabel ?authorityLabel FILTER (langMatches(lang(?authorityLabel), "en")) .
?coin nmo:hasTypeSeriesItem ?type.
} GROUP BY ?authority ?authorityLabel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment