Classes:
-
EventLoopModel–Model of an event loop containing events, flags, and their reactions.
-
EventReactionModel–Model for reactions to an event.
-
FlagReactionModel–Model for reactions to a flag.
EventLoopModel
EventLoopModel(el_id, graph)
Bases: ModelBase
Model of an event loop containing events, flags, and their reactions.
Attributes:
-
events(set[URIRef]) –Event URIs belonging to the event loop.
-
flags(set[URIRef]) –Flag URIs belonging to the event loop.
-
event_reactions(dict[URIRef, EventReactionModel]) –Event reaction models keyed by reaction URI.
-
flag_reactions(dict[URIRef, FlagReactionModel]) –Flag reaction models keyed by reaction URI.
-
event_reaction_maps(dict[URIRef, set[URIRef]]) –Reaction URIs grouped by event URI.
-
flag_reaction_maps(dict[URIRef, set[URIRef]]) –Reaction URIs grouped by flag URI.
Parameters:
Source code in src/rdf_utils/models/event_loop.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
EventReactionModel
EventReactionModel(reaction_id, graph)
Bases: ModelBase
Model for reactions to an event.
Attributes:
-
event_id(URIRef) –URI of the event to react to
Parameters:
-
reaction_id(URIRef) –URI of the reaction model
-
graph(Graph) –RDF graph to load relevant attributes
Source code in src/rdf_utils/models/event_loop.py
28 29 30 31 32 33 34 35 | |
FlagReactionModel
FlagReactionModel(reaction_id, graph)
Bases: ModelBase
Model for reactions to a flag.
Attributes:
-
flag_id(URIRef) –URI of the flag to react to
Parameters:
-
reaction_id(URIRef) –URI of the reaction model
-
graph(Graph) –RDF graph to load relevant attributes
Source code in src/rdf_utils/models/event_loop.py
51 52 53 54 55 56 57 58 | |