SHIFT-RR-09: Mark FlexibilityService as Completed After Contract End

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

Executable (SWRL / SPARQL)
Description

If the associated contract for a FlexibilityService has ended and the service is no longer active, then mark the service status as Completed.

Conditions
  • associatedContract(?s, ?c) ∧ contractEndDate(?c, ?end) ∧ end < now()
  • isActive(?s, false)
Result
serviceStatus(?s, 'Completed')
SPARQL (placeholder)
# Executable SPARQL for SHIFT-RR-09 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 →