Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get all dies related to a 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 ?die ?dieLabel ?altDie ?altDieLabel (count(?object) as ?count) WHERE {
?object nmo:hasTypeSeriesItem <http://numismatics.org/crro/id/rrc-15.1b> .
GRAPH <http://nomisma.org/editor/rschaefer> {
?object nmo:hasObverse/nmo:hasDie/rdf:value ?die
{
SELECT ?object ?altDie WHERE {
?object nmo:hasReverse/nmo:hasDie/rdf:value ?altDie
}
}
}
?die skos:notation ?dieLabel .
?altDie skos:notation ?altDieLabel
} GROUP BY ?die ?dieLabel ?altDie ?altDieLabel ORDER BY ?die ?altDie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment