Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gilles' SPARQL query
PREFIX dcterms: <>
PREFIX nm: <>
PREFIX nmo: <>
PREFIX rdf: <>
PREFIX skos: <>
PREFIX xsd: <>
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