When I compare 28 days to 1 month and 365 days to 1 year in Fuseki 1.1.1 , I
get the following:
SELECT ("P28D"^^<http://www.w3.org/2001/XMLSchema#duration>
="P1M"^^<http://www.w3.org/2001/XMLSchema#duration> as ?same) {}
--------
| same |
========
| true |
--------
SELECT ("P365D"^^<http://www.w3.org/2001/XMLSchema#duration>
="P1Y"^^<http://www.w3.org/2001/XMLSchema#duration> as ?same) {}
--------
| same |
========
| true |
--------
Shouldn't this be indeterminate in both cases?
Best regards
Arthur
3.2.6.2 Order relation on duration
The following table shows the strongest relationship that can be determined
between example durations. The symbol <> means that the order relation is
indeterminate. Note that because of leap-seconds, a seconds field can vary from
59 to 60. However, because of the way that addition is defined in Adding
durations to dateTimes (§E), they are still totally ordered.
Relation
P1Y > P364D <> P365D <> P366D < P367D
P1M > P27D <> P28D <> P29D <> P30D <> P31D < P32D
P5M > P149D <> P150D <> P151D <> P152D <> P153D
< P154D
Implementations are free to optimize the computation of the ordering
relationship. For example, the following table can be used to compare durations
of a small number of months against days.
Months 1 2 3 4 5 6 7 8
9 10 11 12 13 ...
Days Minimum 28 59 89 120 150 181 212 242
273 303 334 365 393 ...
Maximum 31 62 92 123 153 184 215 245 276
306 337 366 397 ...