-
Notifications
You must be signed in to change notification settings - Fork 13
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
The InBetween relation for xsd year, month, etc. #114
Comments
An important note on timezones:
|
Relevant SPARQL enhancement proposal: https://github.com/w3c/sparql-dev/blob/main/SEP/SEP-0002/sep-0002.md As far as I can see it does however not propose how to compare a year to a date with and without timezone information, although there is an open discussion on this w3c/sparql-query#116 I believe the rules should be: if there is no timezone set, the literal becomes a period with the worst-case bounds. You can only say that something is before or after (> or <), if it does not overlap. You can also not assert equality between a dateTime and a period. In order to assert something is contained within a period, another operator will be necessary. |
Shortly discussed this during the 23d TREE CG meeting today: @constraintAutomaton: made the comment that this does not add any functionality and only adds sugar to something that is already possible as the use cases can be achieved by describing two relations with the bounds. I then commented I agreed as probably specifying the exact implementation details might get tedious, as they are not even standardized in SPARQL and/or XPath yet. @constraintAutomaton: Also, these relations are for machines, not for humans, so just having another more readable way to say something might not be the best idea. |
Hi @pietercolpaert, @constraintAutomaton |
This is a proposal that I’ve seen being used in a tree:Collection already that could make sense to specify properly: use a new kind of relation
tree:InBetweenRelation
to compare more specific time-based XSD literals.Mind that SPARQL explicitly does not allow comparing across xsd literals.
However, we could imagine to indicate that a member that has xsd:dateTime literals, could be in the year 2024 to be described as follows:
Timezones are tricky to process though: we would need to make mentioning the timezone mandatory. If it’s not set, we would need (can be a documented fallback) to interpret it as anywhere on earth, which would make sure there is a half day of overlap of the years 2023 and 2024 for example.
Brought up again by @smessie
Related issue: #82 /cc @xdxxxdx
What we’d need: a full list of all possible datatypes that need to be supported and the mapping between how to compare them.
The text was updated successfully, but these errors were encountered: