Created
June 30, 2022 15:49
-
-
Save ewg118/53ece887943761f680184ecbc02b2d12 to your computer and use it in GitHub Desktop.
Esty: count number of dies by their frequency for RRC 336/1c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?frequency (count(?die) as ?dieCount) WHERE { | |
{ | |
SELECT DISTINCT ?die (count(?object) as ?frequency) 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 | |
} | |
} GROUP BY ?frequency ORDER BY ?frequency |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment