Skip to content

Instantly share code, notes, and snippets.

Created April 13, 2022 14:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Silver and gold coin coins after 337 CE
PREFIX crm: <>
PREFIX dcmitype: <>
PREFIX dcterms: <>
PREFIX foaf: <>
PREFIX geo: <>
PREFIX nm: <>
PREFIX nmo: <>
PREFIX org: <>
PREFIX rdf: <>
PREFIX rdfs: <>
PREFIX skos: <>
PREFIX xsd: <>
SELECT ?authority (min(?start) as ?date) ?material (count(?coin) as ?count) WHERE {
?type dcterms:source nm:ric ;
a nmo:TypeSeriesItem ;
nmo:hasAuthority ?authority ;
nmo:hasStartDate ?start FILTER (?start >= "0337"^^xsd:gYear).
{?type nmo:hasMaterial nm:av }
UNION {?type nmo:hasMaterial nm:ar }
?type nmo:hasMaterial ?material
FILTER NOT EXISTS {?type skos:broader ?parent}
?coin nmo:hasTypeSeriesItem|nmo:hasTypeSeriesItem/skos:broader+ ?type .
} GROUP BY ?authority ?date ?material ORDER BY ?date ?authority ?material
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment