Skip to content
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

Defining Tree relations in terms of SPARQL algebra #126

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

constraintAutomaton
Copy link

This PR provides an initial attempt to define tree:relation in terms of SPARQL algebra. However, there are still some unresolved questions.

  • I was unsure how timezones are handled in SPARQL/XPath, so I added the previous definition in the extension section.
    • If TREE's approach differs from SPARQL's, we could explore writing an equivalent formula using the current SPARQL algebra.
  • I also noticed that SPARQL/XPath may not handle xsd:dateTimeStamp (it appears to be unsupported), so I have suggested interpreting it as a xsd:dateTime with a timezone.

For string comparisons, it seems that Unicode canonical equivalence is not automatically handled. XPath provides the function func-normalize-unicode, but this function is not available in SPARQL. Based on the spec, it also doesn't appear that SPARQL normalizes strings before performing comparisons.

close #116

@constraintAutomaton constraintAutomaton self-assigned this Mar 7, 2025
@constraintAutomaton
Copy link
Author

For the timezone maybe section 3.2.7.4 means what is written in the TREE specification.

https://www.w3.org/TR/xmlschema-2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defining the tree:relation in terms of SPARQL algebra
1 participant