-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Should Intervals and Sets support dates with times? #70
Comments
@mzeinstra @cnralux Maybe this question is answered in the proprietary spec? Ping @GreenReaper |
It would be cool, but I suspect it's not in the spec, because if it was they would have had an example. Moreover, what they do say indicates it is excluded.
Avoiding time makes it simpler for implementers. Perhaps we could call them Level 3 intervals? 😼 |
As of the pre-submission draft (5.1.3 Interval) and the later ISO draft (clause 4 + appendix C), the intention was not to specify a time more precise than a day:
[The last bit doesn't currently appear to be validated. Conversely, the library doesn't seem to allow cases where start and end are both one of open ( |
Thanks for double checking. In our case supporting dates with times is little or no extra work, so somewhat unfortunate it is not in the spec. That said, we implemented support for seasons in intervals on request from our client, which I now realize is also not in the spec. Rather unexpected you can't add any "single-value" EDTF date as interval start or end.
Indeed. Now tracked by #71. While looking at the set issue with many dates that you reported yesterday I found that sets likely should also have some more validation. Right now you can have |
From a personal perspective, I think it'd be useful to have a H-m-s+shift interval type representation. However, I appreciate the main purpose is to implement EDTF as specified - and it's claimed that the text is a specified type in RDF, right? Workarounds such as specifying separate start and end times as qualifiers exist - which would be readable by complaint EDTF implementations, and which I think could also be sorted on in SPARQL. (This would not replace the desire for intervals to act as a date in ProfessionalWiki/WikibaseEdtf#3 (comment).) inukshuk/edtf.js/issues/12 describes a similar issue with seasons. They appear to be in the ISO draft under "4.7 Divisions of a year", but only at Level 1/2. Don't have access to the final specification. |
The ISO standard does not mention the use of [TIME] in any of the Level 1 or Level 2 features. Furthermore, [TIME] adopts the complete representations for date and time of day on the extended format of the complete representation of a calendar date (--> sounds like [TIME] cannot be used as stand-alone). And last but not least, the standard states that "Level 0 Time Interval" adopts representations of a time interval where both the start and end are dates (no durations and no times included). |
In the private spec it is supported in section 10.2.a
From the index:
And from that document
|
In the public spec, the examples of Intervals and Sets only show dates without time of day.
Should time of day be allowed in Intervals and Sets? Or is the highest precision "day"?
Example:
2021-04-24T16:00:00Z/2021-04-24T17:00:00Z
The text was updated successfully, but these errors were encountered: