Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get a count of each type (including subtypes) in the PELLA corpus with a photo
PREFIX rdf: <>
PREFIX dcterms: <>
PREFIX foaf: <>
PREFIX nm: <>
PREFIX nmo: <>
PREFIX skos: <>
SELECT ?type (count(?coin) as ?count) WHERE {
?type dcterms:source|skos:exactMatch/dcterms:source nm:pella_type_series .
?coin nmo:hasTypeSeriesItem|nmo:hasTypeSeriesItem/skos:broader ?type .
{?coin nmo:hasObverse/foaf:depiction ?img}
UNION {?coin foaf:depiction ?img}
} GROUP BY ?type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment