Skip to content

With apologies to Faith Lawrence

I’ve just added the new events-diary dataset to and clearly went to sleep thinking aboutu events RDF data..

As discussed in the last post, my friend Faith is doing real research using linked Shakespear data. This post is just me getting something out of my system, it’s just an exercise and not intended as a serious example.

SELECT ?meet_time ?meet_weather_conditions WHERE {
  ?event a event:Event .
  ?event event:agent
    <> ;
    <> ;
    <> .
  ?event event:time ?t .
  ?t tl:begin ?meet_time .
    ?event2 a event:Event .
    ?event2 event:factor < .
    ?event2 event:time ?t2 .
    ?t2 tl:end ?hb_event_end .
    FILTER ( ?hb_event_end > ?meet_time )
  FILTER( !bound( ?event2 )  )

  ?battle a dbpedia-owl:MilitaryConflict .
  ?battle event:time ?t3 .
  ?t3 tl:end ?battle_event_end .
  FILTER ( ?battle_event_end < ?meet_time ) 

  ?event event:place <> .
  ?event event:agent <> .
  <> <> ?sunset_time .
  FILTER ( ?meet_time < ?sunset_time ) 

  ?event <> ?meet_weather_conditions .

I’m actually surprised not to easily find a predicate to map a day to a time of sunset. It would have to be day-in-region, to be meaningful, of course.

Posted in SPARQL.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.