You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date subtraction not defined by SPARQL 1.1
The test for date subtraction in test Grid Observatory does not conform to the SPARQL 1.1 specification.
The operator "-" is only defined for numeric operands. http://www.w3.org/TR/sparql11-query/#OperatorMapping
Date subtraction is a reasonable extension, but you should somehow mark it as an extension.
Also, you should write 1S instead of 1.000S, #15 raises a similar problem.
As Sebastian Schaffert said:
In the recommendation, we can read "The following table associates each of these grammatical productions with the appropriate operands and an operator function defined by either XQuery 1.0 and XPath 2.0 Functions and Operators [FUNCOP] or the SPARQL operators specified in section 17.4.".
In the "operator function defined by either XQuery 1.0 and XPath 2.0", we can see "Backs up the subtract, "-", operator on xs:dateTime values"
Proposition of new test for the substract's operator with datetime :
Result expected :
What did you think ?
The text was updated successfully, but these errors were encountered: