Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2022 15:57
What would you like to do?
Monograms that appear only on a single type, with some optional authority/mint context
PREFIX crm: <>
PREFIX dcterms: <>
PREFIX dcmitype: <>
PREFIX foaf: <>
PREFIX geo: <>
PREFIX nm: <>
PREFIX nmo: <>
PREFIX org: <>
PREFIX rdf: <>
PREFIX rdfs: <>
PREFIX skos: <>
PREFIX xsd: <>
SELECT ?symbol ?mint ?authority ?svg (count(?type) as ?count) WHERE {
?type a nmo:TypeSeriesItem ;
dcterms:source ?source ;
nmo:hasObverse/nmo:hasControlmark|nmo:hasReverse/nmo:hasControlmark ?symbol .
OPTIONAL {?type nmo:hasMint ?mint}
OPTIONAL {?type nmo:hasAuthority ?authority}
?symbol crm:P165i_is_incorporated_in ?svg .
?source dcterms:isPartOf nm:greek_numismatics .
} GROUP BY ?symbol ?mint ?authority ?svg HAVING (?count = 1) LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment