New Feature CORE-264
1 vote

Add infrastructure to support Date Time arithmetic in SPARQL in future releases

Created by Rob Vesse on 7/31/2012 5:20 PM Last Updated by Rob Vesse on 8/4/2012 12:18 AM
%
 (hrs)
Logged: 0  (hrs)

 Description

This task is to add the necessary infrastructure that will allow us to support Date Time arithmetic and other extended operators in the future.  Namely this work involves:

  • Adding a VDS.RDF.Query.Operands namespace which will include an operand registry and a ISparqlOperand interface
  • Revise the existing definitions of arithmetic operators so they utilise the operands regsitry
  • Add a AsTimeSpan() method to the IValuedNode interface

    Rob Vesse (Saturday, August 04, 2012 12:18 AM) #

As of revision 2357 this should all be working

 

An operator registry is in place and the various expressions which need to utilise it call in to look up what operator to apply.  Also have working date time and timespan arithemtic all implemented.  Plus added time span ordering as a little bonus

    Rob Vesse (Wednesday, August 01, 2012 11:25 PM) #

The ISparqlOperator interface is in place and I've modified the IValuedNode interface to add a AsTimeSpan() method