SHIFT-RR-01: Infer Prosumer from Repeated Trade Participation as Seller

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

Executable (SWRL / SPARQL)
Description

If an Actor is the seller in at least three distinct confirmed FlexibilityTrade instances, then classify the Actor as a Prosumer.

Conditions
  • sellerActor(?t1, ?a) ∧ tradeStatus(?t1, 'Confirmed')
  • sellerActor(?t2, ?a) ∧ tradeStatus(?t2, 'Confirmed')
Result
rdf:type(?a, Prosumer)
SPARQL (placeholder)
# Executable SPARQL for SHIFT-RR-01 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 →