Skip to content

Instantly share code, notes, and snippets.

@ewg118
Created February 24, 2015 22:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewg118/88e382618d16da47b203 to your computer and use it in GitHub Desktop.
Save ewg118/88e382618d16da47b203 to your computer and use it in GitHub Desktop.
Nomisma SPARQL images
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#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX osgeo: <http://data.ordnancesurvey.co.uk/ontology/geometry/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX spatial: <http://jena.apache.org/spatial#>
PREFIX un: <http://www.owl-ontologies.com/Ontology1181490123.owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?object ?comRef ?comThumb ?obvRef ?obvThumb ?revRef ?revThumb WHERE {
?object a nmo:NumismaticObject
{ ?object foaf:thumbnail ?comThumb ;
foaf:depiction ?comRef }
UNION { ?object nmo:hasObverse ?obverse .
?obverse foaf:thumbnail ?obvThumb ;
foaf:depiction ?obvRef .
?object nmo:hasReverse ?reverse .
?reverse foaf:thumbnail ?revThumb ;
foaf:depiction ?revRef }
} LIMIT 100
@danbri
Copy link

danbri commented Feb 24, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment