Created
May 13, 2015 03:14
-
-
Save ewg118/2dc16c250e77a0996e28 to your computer and use it in GitHub Desktop.
Get distinct findspots for silver imperial coinage
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX dcmitype: <http://purl.org/dc/dcmitype/> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX nm: <http://nomisma.org/id/> | |
PREFIX nmo: <http://nomisma.org/ontology#> | |
SELECT DISTINCT ?findspot ?lat ?long ?name WHERE { | |
?coinType nmo:hasMaterial nm:ar ; | |
dcterms:source nm:ric . | |
{ ?object nmo:hasTypeSeriesItem ?coinType ; | |
rdf:type nmo:NumismaticObject ; | |
nmo:hasFindspot ?findspot } | |
UNION { ?object nmo:hasTypeSeriesItem ?coinType ; | |
rdf:type nmo:NumismaticObject ; | |
dcterms:isPartOf ?hoard . | |
?hoard nmo:hasFindspot ?findspot } | |
UNION { ?contents nmo:hasTypeSeriesItem ?coinType ; | |
a dcmitype:Collection . | |
?object dcterms:tableOfContents ?contents ; | |
nmo:hasFindspot ?findspot } | |
?object a ?type . | |
?findspot geo:lat ?lat . | |
?findspot geo:long ?long . | |
OPTIONAL { ?findspot foaf:name ?name } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment