SHIFT-RR-34: Auto-Bundle FlexibilityServices by Geographic Proximity

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

Specification only — not yet executable
Description

If two FlexibilityServices are within 2 km and have overlapping activation windows while both are active, group them into a FlexibilityBundle with a shared activation window.

Conditions
  • geoDistance(?s1, ?s2) ≤ 2 km
  • activationWindow(?s1) overlaps activationWindow(?s2)
Result
FlexibilityBundle(?b), hasMember(?b, ?s1), hasMember(?b, ?s2), bundleActivationWindow(?b, intersection(activationWindow(?s1), activationWindow(?s2)))

View related notes in Knowledge Graph →