SHIFT-RR-07: Auto-Fail Trade If Asset Is Offline

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

Executable (SWRL / SPARQL)
Description

If the assigned asset of a FlexibilityTrade is unavailable (isAvailable = false) during InProgress or Approved status, then the trade is marked as Failed and the outcome is set to UnavailableAsset.

Conditions
  • assignedAsset(?t, ?a) ∧ isAvailable(?a, false)
  • tradeStatus(?t, 'InProgress') ∨ tradeStatus(?t, 'Approved')
Result
tradeStatus(?t, 'Failed') ∧ tradeOutcome(?t, 'UnavailableAsset')
SPARQL (placeholder)
# Executable SPARQL for SHIFT-RR-07 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 →