W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > January 2006

major technical: dateTime arithmetic

From: Fred Zemke <fred.zemke@oracle.com>
Date: Thu, 12 Jan 2006 13:44:06 -0800
Message-ID: <43C6CDA6.9020403@oracle.com>
To: public-rdf-dawg-comments@w3.org

Table 11.1 Operator mapping
The functionality for manipulating xsd:dateTime values is inadequate.
In particular, the XQuery functions fn:current-date and fn:current-time
are needed to formulate queries relative to the current time.
In addition, dateTime arithmetic using the XQuery types
xdt:yearMonthDuration and xdt:dayTimeDuration will be highly useful.
I suspect the reason this has not been adopted is that these types
are not accepted by RDF.  I hope that was just a historical accident
(because RDF was ready for adoption before XQuery).  However, while
we wait for duration types to be added to RDF, you can still add them
to SPARQL to permit dateTime arithmetic.  The limitations would be
that you could not use CONSTRUCT to construct a triple with a duration,
and there would be no point in trying to match a duration.

Fred
Received on Thursday, 12 January 2006 21:44:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:22 UTC