Skip to content

Instantly share code, notes, and snippets.

@ewg118
Created August 10, 2022 15:57
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/0053c47d5bb66d6bb3d27924a84e1e86 to your computer and use it in GitHub Desktop.
Save ewg118/0053c47d5bb66d6bb3d27924a84e1e86 to your computer and use it in GitHub Desktop.
Monograms that appear only on a single type, with some optional authority/mint context
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dcmitype: <http://purl.org/dc/dcmitype/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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