Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SPARQL filter: geographic distribution of Jupiter coins minter after A.D. 1
PREFIX rdf: <>
PREFIX dcmitype: <>
PREFIX dcterms: <>
PREFIX foaf: <>
PREFIX geo: <>
PREFIX nm: <>
PREFIX nmo: <>
PREFIX skos: <>
PREFIX xsd: <>
SELECT DISTINCT ?coinTypeLabel ?mintLabel ?lat ?long ?date ?denominationLabel WHERE {
?coinType nmo:hasReverse ?reverse .
?reverse dcterms:description ?description FILTER regex(?description, "jupiter", "i") .
?coinType skos:prefLabel ?coinTypeLabel FILTER langMatches(lang(?coinTypeLabel), "en") .
?coinType nmo:hasMint ?mint .
?mint geo:location ?loc ;
skos:prefLabel ?mintLabel FILTER langMatches(lang(?mintLabel), "en") .
?loc geo:lat ?lat ;
geo:long ?long .
?coinType nmo:hasEndDate ?date FILTER (?date >= "0001"^^xsd:gYear)
OPTIONAL { ?coinType nmo:hasDenomination ?denomination .
?denomination skos:prefLabel ?denominationLabel FILTER langMatches(lang(?denominationLabel), "en") }
} ORDER BY ASC(?date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment