1 L0 = <http://www.simantics.org/Layer0-1.1>
3 EVENT = <http://www.simantics.org/Event-1.2> : L0.Ontology
5 L0.HasResourceClass "org.simantics.event.ontology.EventResource"
7 EVENT.EventLog <T L0.Entity
8 L0.HasDescription "A log is an entity that composes events with L0.ConsistsOf. This type can be inherited to customize its behavior."
9 @L0.optionalProperty L0.HasName
10 @L0.optionalProperty L0.HasLabel
11 @L0.optionalProperty L0.HasDescription
12 @L0.property L0.ConsistsOf
13 @L0.property L0.HasComment
14 @L0.singleProperty EVENT.HasTimestamp
15 @L0.property EVENT.Hidden
16 >-- EVENT.EventLog.HasBaselineEvent --> EVENT.Event <R L0.DependsOn : L0.FunctionalRelation
17 @L0.singleProperty EVENT.HasModificationCounter
19 EVENT.EventSlice <T L0.Entity
22 EVENT.Event <T L0.Entity
23 L0.HasDescription """An entity that represents a single event occurring at a point in time.
24 Different types of events can be created by instantiating and/or inheriting new event types.
25 Events can be adapted into tab contributions for the selection view."""
26 // Name is unique identifier of the event.
27 @L0.singleProperty L0.HasName
28 @L0.optionalProperty L0.HasLabel
29 @L0.optionalProperty L0.HasDescription
30 @L0.property L0.HasComment
31 @L0.singleProperty EVENT.HasTimestamp
32 @L0.property EVENT.Hidden
33 @L0.property EVENT.Milestone
34 >-- EVENT.Event.sourceName --> L0.String <R L0.HasProperty : L0.FunctionalRelation
35 L0.HasDescription "Name of the event source entity."
36 >-- EVENT.Event.source --> L0.Entity <R L0.IsWeaklyRelatedTo : L0.FunctionalRelation
37 L0.InverseOf EVENT.Event.source.inverse <-- L0.Entity --> EVENT.Event <R L0.IsWeaklyRelatedTo
38 L0.HasDescription "Source entity of the event. Both it and its inverse are weak relations that are reconstructed when necessary."
39 >-- EVENT.Event.type --> EVENT.EventType <R L0.IsRelatedTo : L0.FunctionalRelation
40 L0.HasDescription "Identifies event type. Not intended to have an inverse relation."
41 >-- EVENT.Event.typeNumber --> L0.Integer <R L0.HasProperty : L0.FunctionalRelation
42 L0.HasDescription "Identifies event type number."
43 >-- EVENT.Event.milestoneLabel --> L0.String <R L0.HasProperty : L0.FunctionalRelation
44 L0.HasDescription "Short label as milestone. The value is one or two characters."
45 >-- EVENT.Event.index --> L0.Integer <R L0.HasProperty : L0.FunctionalRelation
46 L0.HasDescription "Index of event"
47 >-- EVENT.Event.tag --> L0.String <R L0.HasProperty : L0.FunctionalRelation
48 L0.HasDescription "System tag attached to event"
49 >-- EVENT.Event.message --> L0.String <R L0.HasProperty : L0.FunctionalRelation
50 L0.HasDescription "Message attached to event"
51 @L0.optionalProperty EVENT.Event.sourceName
52 @L0.optionalProperty EVENT.Event.source
53 @L0.optionalProperty EVENT.Event.type
54 @L0.optionalProperty EVENT.Event.typeNumber
55 @L0.optionalProperty EVENT.Event.milestoneLabel
56 @L0.optionalProperty EVENT.Event.index
57 @L0.optionalProperty EVENT.Event.tag
58 @L0.optionalProperty EVENT.Event.message
60 EVENT.TimeStamp <T L0.Double
61 L0.HasDescription "Used for being able to easily track all time stamp literal instances in TG export/import for time shifting purposes."
62 @L0.assert L0.HasDataType $(Double(unit="event timestamp"))
64 EVENT.HasTimestamp <R L0.HasProperty : L0.FunctionalRelation
65 L0.HasDescription "Identifies a modeled timestamp for an event or event log. Timestamps are represented in seconds."
70 EVENT.HasModificationCounter <R L0.HasProperty : L0.FunctionalRelation
74 EVENT.HasEventLog <R L0.IsRelatedTo
75 L0.HasDescription "Identifies a single log of events for the domain resource."
76 L0.InverseOf EVENT.IsEventLogOf <R L0.IsWeaklyRelatedTo
79 EVENT.HasEventProducer <R L0.IsWeaklyRelatedTo
80 L0.HasDescription "Identifies the source of a single event log. This can be any resource."
81 L0.InverseOf EVENT.IsEventProducerOf <R L0.IsWeaklyRelatedTo
82 L0.HasDomain EVENT.EventLog
84 EVENT.EventType <T L0.Entity
85 L0.HasDescription "Use enumerated event type instances to specify the type of an event."
86 >-- EVENT.EventType.severity --> L0.Integer <R L0.HasProperty : L0.FunctionalRelation
87 L0.HasDescription "Describes the severity of events of this type as an integer number."
90 L0.HasDescription "A tag for marking events hidden. This can be used as a hint for user interfaces."
95 L0.HasDescription "A tag for marking events as milestones. Any event can be marked as one."
99 EVENT.Returns <R L0.IsRelatedTo : L0.FunctionalRelation
100 L0.InverseOf EVENT.ReturnedBy <R L0.IsRelatedTo : L0.FunctionalRelation
101 L0.HasDescription "This relation implies that the domain event is the event returned by the range event. See EVENT.Returns."
102 L0.HasDescription "Some events can be considered to be states or flags that may be returned at some point in time. This relation implies that the domain event is the returning event for range event."
107 L0.HasDescription "A tag for marking events that are not expected to be returned. This can be used as a hint for user interfaces."
112 L0.HasDescription "Indicates that an event is a return event."
120 EVENT.Concerns <R L0.IsRelatedTo
121 L0.HasDescription "A relation for relating events to different resources it concerns."
122 L0.HasDomain EVENT.Event