[ https://issues.apache.org/jira/browse/JENA-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264052#comment-13264052 ]
Andy Seaborne commented on JENA-235: ------------------------------------ Do we need value spaces for yearMonth and dayTime? Probably not : add "isYearMonth" and "isDayTime" to NodeValueDuration. Operations / date and time related Add and subtract only (for now) (xsd:duration, xsd:duration) -> xsd:duration 10.6.1 op:add-yearMonthDurations 10.6.2 op:subtract-yearMonthDurations (xsd:duration, xsd:duration) -> xsd:duration 10.6.6 op:add-dayTimeDurations 10.6.7 op:subtract-dayTimeDurations (xsd:dateTime, xsd:dateTime) -> xsd:duration 10.8.1 op:subtract-dateTimes -> xsd:dayTimeDuration (xsd:date, xsd:date) -> xsd:duration 10.8.2 op:subtract-dates (xsd:time, xsd:time) -> xsd:duration 10.8.3 op:subtract-times (xsd:dateTime, xsd:duration) -> xsd:dateTime 10.8.4 op:add-yearMonthDuration-to-dateTime 10.8.5 op:add-dayTimeDuration-to-dateTime 10.8.6 op:subtract-yearMonthDuration-from-dateTime 10.8.7 op:subtract-dayTimeDuration-from-dateTime (xsd:date, xsd:duration) -> xsd;date 10.8.8 op:add-yearMonthDuration-to-date 10.8.9 op:add-dayTimeDuration-to-date 10.8.10 op:subtract-yearMonthDuration-from-date 10.8.11 op:subtract-dayTimeDuration-from-date (xsd:time, xsd:duration) -> xsd:time 10.8.12 op:add-dayTimeDuration-to-time 10.8.13 op:subtract-dayTimeDuration-from-time ---- Full list 10.6 Arithmetic Operators on Durations (xsd:duration, xsd:duration) -> xsd:duration 10.6.1 op:add-yearMonthDurations 10.6.2 op:subtract-yearMonthDurations (xsd:duration, xsd;double) -> xsd:duration 10.6.3 op:multiply-yearMonthDuration 10.6.4 op:divide-yearMonthDuration (xsd:duration, xsd:duration) -> xsd:duration 10.6.5 op:divide-yearMonthDuration-by-yearMonthDuration 10.6.6 op:add-dayTimeDurations 10.6.7 op:subtract-dayTimeDurations (xsd:duration, xsd;double) -> xsd:duration 10.6.8 op:multiply-dayTimeDuration 10.6.9 op:divide-dayTimeDuration (xsd:duration, xsd;duration) -> xsd:decimal 10.6.10 op:divide-dayTimeDuration-by-dayTimeDuration 10.8 Arithmetic Operators on Durations, Dates and Times (xsd:dateTime, xsd:dateTime) -> xsd:dayTimeDuration 10.8.1 op:subtract-dateTimes (xsd:date, xsd:date) -> xsd:dayTimeDuration 10.8.2 op:subtract-dates (xsd:time, xsd:time) -> xsd:dayTimeDuration 10.8.3 op:subtract-times (xsd:dateTime, xsd:duration) -> xsd:dateTime 10.8.4 op:add-yearMonthDuration-to-dateTime 10.8.5 op:add-dayTimeDuration-to-dateTime 10.8.6 op:subtract-yearMonthDuration-from-dateTime 10.8.7 op:subtract-dayTimeDuration-from-dateTime (xsd:date, xsd:duration) -> xsd:date 10.8.8 op:add-yearMonthDuration-to-date 10.8.9 op:add-dayTimeDuration-to-date 10.8.10 op:subtract-yearMonthDuration-from-date 10.8.11 op:subtract-dayTimeDuration-from-date (xsd:time, xsd:duration) -> xsd:time 10.8.12 op:add-dayTimeDuration-to-time 10.8.13 op:subtract-dayTimeDuration-from-time > Add support to ARQ/SPARQL for more XSD datatypes and related operations. > ------------------------------------------------------------------------ > > Key: JENA-235 > URL: https://issues.apache.org/jira/browse/JENA-235 > Project: Apache Jena > Issue Type: Task > Components: ARQ > Reporter: Andy Seaborne > Priority: Minor > Labels: arq, datatypes > > Possibilities to add to ARQ: > See http://www.w3.org/TR/xmlschema11-2/#built-in-datatypes > xsd:dateTimeStamp > Derived from dateTime by requiring the timezone > xsd:dayTimeDuration > No year or month fields, > Only day, hour, minute, or seconds fields. > xsd:yearMonthDuration > Only year or month fields, > Derived from duration -- no day, hour, minute, or seconds fields. > These durations are totally order. Also related arithmetic operations on > xsd:dateTime > xsd:time > xsd:precisionDecimal > See http://www.w3.org/TR/xsd-precisionDecimal/ -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira