SHIFT-RR-08: Activate Backup Trade If Primary Fails

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

Executable (SWRL / SPARQL)
Description

If a FlexibilityTrade fails and has backup trades listed, the first pending backup is approved. The original trade's outcome is marked as BackupActivated.

Conditions
  • tradeStatus(?primary, 'Failed')
  • backupTradeList(?primary, ?backup) ∧ tradeStatus(?backup, 'Pending')
Result
tradeStatus(?backup, 'Approved') ∧ tradeOutcome(?primary, 'BackupActivated')
SPARQL (placeholder)
# Executable SPARQL for SHIFT-RR-08 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 →