I’ve just added the new events-diary dataset to http://data.southampton.ac.uk/ 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 <http://id.macbeth.org/person/WeirdSister1> ; <http://id.macbeth.org/person/WeirdSister2> ; <http://id.macbeth.org/person/WeirdSister3> . ?event event:time ?t . ?t tl:begin ?meet_time . OPTIONAL { ?event2 a event:Event . ?event2 event:factor <http://id.macbeth.org/themes/hurlyBurly . ?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 <http://id.macbeth.org/place/heath> . ?event event:agent <http://id.macbeth.org/person/macbeth> . <http://id.macbeth.org/days/1> <http://id.macbeth.org/ns/sunsetTime> ?sunset_time . Ā FILTER ( ?meet_time < ?sunset_time ) ?event <http://id.macbeth.org/ns/weather> ?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.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.