Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get distinct number of mints associated with each monogram in SCO
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 DISTINCT ?symbol (count(DISTINCT ?mint) as ?count) WHERE {
?type a nmo:TypeSeriesItem ;
dcterms:source nm:seleucid_coins ;
nmo:hasObverse/nmo:hasControlmark|nmo:hasReverse/nmo:hasControlmark ?symbol ;
nmo:hasMint ?mint.
?mint a nmo:Mint .
?symbol a nmo:Monogram .
} GROUP BY ?symbol LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment