SHIFT-RR-04: Validate Trade Deadline Expiry

http://shift-ontology.org/core#SHIFT-RR-04

Executable (SWRL / SPARQL)
Description

If a FlexibilityTrade is still in Pending or InProgress status and its deliveryEndTime has passed, then it should be marked as Expired.

Conditions
  • tradeStatus(?t, 'Pending') ∨ tradeStatus(?t, 'InProgress')
  • deliveryEndTime(?t, ?end) ∧ end < now()
Result
tradeStatus(?t, 'Expired')
SPARQL (placeholder)
# Executable SPARQL for SHIFT-RR-04 ships in the rules download bundle.
PREFIX shift: <http://shift-ontology.org/core#>
SELECT ?x WHERE {
  ?x a shift:Actor .
}

View related notes in Knowledge Graph →