Created
June 10, 2015 19:33
-
-
Save ewg118/d9269f19bfb9799a3b2c to your computer and use it in GitHub Desktop.
Query of Gallienus 210 and all subtypes connected by skos:broader
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 nm: <http://nomisma.org/id/> | |
PREFIX nmo: <http://nomisma.org/ontology#> | |
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
SELECT ?object ?title ?findspot ?hoard ?placeName ?hoardLabel ?lat ?long ?type ?burial WHERE { | |
{ ?object a nmo:NumismaticObject ; | |
nmo:hasTypeSeriesItem <http://numismatics.org/ocre/id/ric.5.gall(2).210>} | |
UNION { ?broader skos:broader+ <http://numismatics.org/ocre/id/ric.5.gall(2).210> . | |
?object nmo:hasTypeSeriesItem ?broader ; | |
a nmo:NumismaticObject } | |
UNION { ?contents a dcmitype:Collection ; | |
nmo:hasTypeSeriesItem <http://numismatics.org/ocre/id/ric.5.gall(2).210> . | |
?object dcterms:tableOfContents ?contents } | |
?object dcterms:title ?title . | |
{ ?object nmo:hasFindspot ?findspot } | |
UNION { ?object dcterms:isPartOf ?hoard . | |
?hoard a nmo:Hoard ; | |
skos:prefLabel ?hoardLabel ; | |
nmo:hasFindspot ?findspot . | |
OPTIONAL {?hoard nmo:hasClosingDate ?burial . FILTER isLiteral(?burial)} | |
OPTIONAL {?hoard nmo:hasClosingDate ?closing . | |
?closing nmo:hasEndDate ?burial}} | |
?findspot geo:lat ?lat . | |
?findspot geo:long ?long . | |
OPTIONAL {?findspot foaf:name ?placeName} | |
OPTIONAL { ?object rdf:type ?type } | |
OPTIONAL { ?object nmo:hasClosingDate ?burial . FILTER isLiteral(?burial) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment