Timebased Retention Policy

https://w3id.org/ldes#DurationAgoPolicy

Similar to the Point in Time Retention Policy, the Timebased Retention Policy will filter out members based on their ldes:timestampPath. The difference between the previous retention policy is that the Timebased one works with a sliding window, rather than a hard-set value.

The sliding window can be defined with a ISO 8601 Temporal Duration. Any members’ ldes:timestampPath that falls outside of this range will be removed.

Timebased Retention (Range: P2D)2023-12-012024-01-012024-02-012024-03-012024-04-012024-05-012024-06-012024-07-012024-08-012024-09-012024-10-012024-11-012024-12-012025-01-012025-02-012025-03-012025-04-01Original StreamSliding Window (Current Day -2 days)Stream After Retention Day 2Current DayCurrent DaySliding Window (Current Day -2 days)Stream After Retention Day 1Original StreamDay 1Day 2Timebased Retention (Range: P2D)

Example

  @prefix ldes: <https://w3id.org/ldes#> .
  @prefix tree: <https://w3id.org/tree#>.

  <view1> a tree:Node ;
    tree:viewDescription [
      a tree:ViewDescription ;
      ldes:retentionPolicy [
        a ldes:DurationAgoPolicy ;
        tree:value "PT10M"^^<http://www.w3.org/2001/XMLSchema#duration> ;
      ] ;
    ] .