Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1114

support (date - duration)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: BIGDATA_RELEASE_1_4_0
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None

      Description

      I was pleasantly surprised to see that date time arithmetic is supported.

      One minor issue (with an easy workaround for me) is that there are some operations missing ...

      e.g.
      date
      - duration
      fails

      BIND ( ( "1987-06-05T04:03:02Z"^^xsd:dateTime - "P10DT5H6M2.3S"^^xsd:duration) as ?x ) 
      

      workaround either use + "-P10DT5H6M2.3S"^^xsd:duration
      or use ("P0D"^xsd:duration
      - "P10DT5H6M2.3S"
      ^xsd:duration)

      also multiplication of a number and a duration is well-defined but not implemented.

      A further thought is that the issues with duration are addressed with
      http://www.w3.org/TR/xpath-functions/#dt-yearMonthDuration
      and
      http://www.w3.org/TR/xpath-functions/#dt-dayTimeDuration

        Attachments

          Activity

            People

            Assignee:
            thompsonbry thompsonbry
            Reporter:
            jeremycarroll jeremycarroll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: