Event Model
dotNetRDF makes limited use of events itself but various classes generated useful events that you can attach handlers to as desired, this document gives a quick overview of the various events available.
Warning Events
The parsers and serializers for RDF all support Warning
or StoreWarning
events which are used to notify of non-fatal issues with RDF being read/written. This simply output a String which contains a message describing the issue with the RDF and what action the parser has taken (if appropriate).
Data Model Events
dotNetRDF raises a variety of events which bubble up internally through multiple layers:
Triple Store Events
Event | Occurrence |
---|---|
ITriple |
Occurs when a Graph is added to a Store |
ITriple |
Occurs when a Graph is removed from a Store |
ITriple |
Occurs when a Graph is changed. This event is a bubbled event triggered by the IGraph. |
ITriple |
Occurs when a Graph is cleared. This event is a bubbled event triggered by the IGraph. |
ITriple |
Occurs when a Graph has a merge operation performed on it |
Graph Events
Event | Occurrence |
---|---|
IGraph. |
Occurs when a Graph has a Triple asserted in it. This event is a bubbled event triggered by the Base |
IGraph. |
Occurs when a Graph has a Triple retracted from it. This event is a bubbled event triggered by the Base |
IGraph. |
Occurs when a Graph changes |
IGraph. |
Occurs when a Clear() operation is requested on a Graph |
IGraph. |
Occurs when a Graph is cleared |
IGraph. |
Occurs when a Merge() operation is requested on a Graph |
IGraph. |
Occurs when a Graph is merged |
Triple Collection Events
Event | Occurrence |
---|---|
Base |
Occurs when a Triple is added to the collection |
Base |
Occurs when a Triple is removed from the collection |