Guest User

British Museum Objects

a guest
Dec 1st, 2013
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 1.18 KB | None | 0 0
  1. PREFIX crm: <http://erlangen-crm.org/current/>
  2. PREFIX fts: <http://www.ontotext.com/owlim/fts#>
  3.  
  4. PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
  5. PREFIX ecrm: <http://erlangen-crm.org/current/>
  6. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  7. PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  8. SELECT DISTINCT ?object ?comment ?img ?placename1 ?begintime ?endtime
  9. {
  10.   ?object bmo:PX_curatorial_comment ?comment .
  11.   ?object bmo:PX_has_main_representation ?img .
  12.   ?object ecrm:P12i_was_present_at ?find .                    #Find the title resource for an object
  13.   ?find rdf:type bmo:EX_Discovery .                              #find the label attached to that title
  14.   ?find ecrm:P7_took_place_at ?place1 .
  15.   ?place1 skos:prefLabel ?placename1 .
  16.   OPTIONAL { ?place1 skos:broader ?place2 .
  17.   ?place2 skos:prefLabel ?placename2 } .
  18.   OPTIONAL { ?place2 skos:broader ?place3 .
  19.   ?place3 skos:prefLabel ?placename3 } .
  20.   ?object ecrm:P108i_was_produced_by ?production .
  21.   ?production ecrm:P9_consists_of ?prodpart .
  22.   ?prodpart ecrm:P4_has_time-span ?timespan .
  23.   ?timespan ecrm:P82a_begin_of_the_begin ?begintime .
  24.   ?timespan ecrm:P82b_end_of_the_end ?endtime
  25. }
Advertisement
Add Comment
Please, Sign In to add comment