[redland-dev] Adding date/time datatypes to Rasqal
Morten Frederiksen
mof-rdf at mfd-consult.dk
Wed Jul 14 22:19:55 BST 2004
On Wednesday 14 July 2004 22:30, Dave Beckett wrote:
> Yeah, that's the kind of thing that would be needed. You'd need
> conversions to/from strings ot allow it to be returned to redland or
> whatever. I'm guessing comparisons could be done by strings but
> wouldn't be quite what you'd want. You'd also likely want
> specialised date comparison operators (near(date, "7 days")). W3C
> XML Schema datatypes has some of that I think.
Just a FYI, for my automagic spatial annotation of photos [1], I
(temporarily, no pun intended) converted all timestamps into an "epoch" time,
an artificial number, based on the number of seconds rounded to a period of
eight hours, to be able to easily look up points registered within a 24 hour
period.
The point being, that while a general conversion and general sort and
comparison functions would be nice to have, it won't cover all cases.
[1] http://www.wasab.dk/morten/2003/12/point-adder
Regards,
Morten
More information about the redland-dev
mailing list