New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue #629 - Arithmetic Operations of DateTime in SPARQL #1061
Conversation
…QL Queries Added the functionality for performing arithmetic operations of DateTime/Date/Time for SPARQL Queries
@Akash-Sharma-1 please merge in |
@Akash-Sharma-1 |
Hi @ashleysommer ! |
@Akash-Sharma-1 |
Ohh great! Thank you! |
Open Close Travis |
Sorry for delay in getting back to this. This should've been merged in after our review in July. Merging now. |
Added the functionality for performing arithmetic operations of DateTime/Date/Time in SPARQL Queries.
This will fix the issue of #629 which requires handling of the arithmetic operation of
dateTime
variables in the SPARQL query. This fix also extends this operation handling to other similar Date, Time, Duration based variables. These operations are also discussed in official w3c Sparql work - (https://github.com/w3c/sparql-12/blob/master/SEP/SEP-0002/sep-0002.md)This is the list of handled operations :
In this PR, I have added the code to handle these operations in SPARQL queries. I have also added tests for the same operations. (Some test cases were also taken from (https://github.com/kasei/sparql-12/tree/xsd_datetime_duration/tests/xsd_functions)).
Closes #629