Skip to content

Instantly share code, notes, and snippets.

@ewg118
Created June 30, 2022 14:27
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/d7d1d655b8e740784bed6c3886cb566d to your computer and use it in GitHub Desktop.
Save ewg118/d7d1d655b8e740784bed6c3886cb566d to your computer and use it in GitHub Desktop.
Esty: Get dies with only one occurrence d1 for coin type
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT (count(?die) as ?dieCount) WHERE {
{
SELECT DISTINCT ?die (count(?object) as ?count) WHERE {
?object nmo:hasTypeSeriesItem <http://numismatics.org/crro/id/rrc-336.1c> .
GRAPH <http://nomisma.org/editor/rschaefer> {
?object nmo:hasObverse/nmo:hasDie/rdf:value ?die
}
} GROUP BY ?die HAVING (?count = 1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment