W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2012

datetime-difference

From: Polleres, Axel <axel.polleres@siemens.com>
Date: Thu, 12 Apr 2012 11:50:06 +0200
To: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-ID: <9DA51FFE5E84464082D7A089342DEEE80138CE48EDB5@ATVIES9917WMSX.ww300.siemens.net>
Hi,
 
</chair-hat>


just as I was stumbling over it something for the wish-list... 

We need datetime-difference for some use case.
Was that ever considered in previous discussions in the functions-library?
I am looking at the XPath arithmetics delegation in Table "SPARQL Binary Operators" in Section 17.3 of the query doc, cf. www.w3.org/TR/sparql11-query/


It's probably too much of a burden to add it now, but "nice-to have" for my use case would be

1) delegating "-"
to 
 
  op:subtract-dateTimes ( http://www.w3.org/TR/xpath-functions/#func-subtract-dateTimes )

For 
 
   xsd:dateTime - xsd:dateTime 


2) delegating "+"

 to 

 op:add-dayTimeDuration-to-dateTime

for either  

  xsd:dateTime + xsd:dayTimeDuration
 or 
  xsd:dayTimeDuration + xsd:dateTime
 

Best,
Axel


 
-- 
Dr. Axel Polleres 
Siemens AG Österreich 
Corporate Technology Central Eastern Europe Research & Technologies 
CT T CEE 
 
Tel.: +43 (0) 51707-36983 
Mobile: +43 (0) 664 88550859
Fax: +43 (0) 51707-56682 mailto:axel.polleres@siemens.com 
Received on Thursday, 12 April 2012 09:50:38 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:48 GMT