Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2022 15:49
What would you like to do?
Esty: count number of dies by their frequency for RRC 336/1c
PREFIX dcterms: <>
PREFIX nm: <>
PREFIX nmo: <>
PREFIX rdf: <>
PREFIX skos: <>
PREFIX xsd: <>
SELECT ?frequency (count(?die) as ?dieCount) WHERE {
SELECT DISTINCT ?die (count(?object) as ?frequency) WHERE {
?object nmo:hasTypeSeriesItem <> .
GRAPH <> {
?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