Skip to main content

temporal_term_interval

Function temporal_term_interval 

Source
pub fn temporal_term_interval(term: &EncodedTerm) -> Option<TemporalShape>
Expand description

Project a native temporal term onto the tick axis.

Returns None for every non-temporal term (including xsd:time, which is cyclic and has no anchoring on a linear timeline, and durations, which are lengths — not positions). This is the ONE definition of the projection shared by ingest, query covering, and the partition-side rebuild.

TermInterval
xsd:dateTime with timezoneinstant at its timeline tick
xsd:dateTime without timezone[t − 14 h, t + 14 h] uncertainty
xsd:date with timezoneits local day: [UTC midnight − offset, +24 h) as a closed tick interval
xsd:date without timezonethe 24 h day widened by the ±14 h indeterminacy (unknown zone)
xsd:gYear[Jan 1 00:00, next Jan 1 00:00] (closed)
xsd:gYearMonth[month start, next month start] (closed)

The gYear family is ALWAYS reckoned in UTC: a timezone offset, though legal in its lexical form, is ignored and the reference interval is the UTC boundary. SPARQL 1.0/1.1 define no ordering for these types (the operator table covers xsd:dateTime only — anything else is a type error), so the UTC rule is part of Waratah’s documented ordering extension (--strict-sparql turns the extension into type errors), not a conformance surface. xsd:gMonth / xsd:gDay have no native term and do not project.