Interpreted Dates
I’ve now got basic date interpretation working. Whenever a date in “standard form” is inserted into the datastore, an interpreted version of the date is also stored. For example, given:
:original {
:event gc:date "06 APR 2007" ;
gc:place "Provo, UT, USA"
}
It adds this inference:
:originalSubGraph {
:event gc:date "06 APR 2007"
}
:originalSubGraph rdfg:subGraphOf :original
:interpretation {
:event gc:date :date .
:date a time-entry:CalendarClockDescription ;
time-entry:year 2007 ;
time-entry:month 4 ;
time-entry:day 6
}
:interpretation gp:excerpt :originalSubGraph
There are a few more details (to track the source of the interpretation), but the immediate benefit is that dates now display and sort correctly according to the user’s locale. I’m still working on this next release though, because the UI doesn’t yet pick up on the interpretation without being manually refreshed. I’d like it to be seamless.
Filed in 

