forked from dotnetrdf/dotnetrdf
-
Notifications
You must be signed in to change notification settings - Fork 0
UserGuide Event Model
Kal Ahmed edited this page Jun 10, 2016
·
2 revisions
Home > User Guide > 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.
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).
dotNetRDF raises a variety of events which bubble up internally through multiple layers:
| Event | Occurrence |
|---|---|
ITripleStore.GraphAdded |
Occurs when a Graph is added to a Store |
ITripleStore.GraphRemoved |
Occurs when a Graph is removed from a Store |
ITripleStore.GraphChanged |
Occurs when a Graph is changed. This event is a bubbled event triggered by the IGraph.GraphChanged event |
ITripleStore.GraphCleared |
Occurs when a Graph is cleared. This event is a bubbled event triggered by the IGraph.GraphCleared event |
ITripleStore.GraphMerged |
Occurs when a Graph has a merge operation performed on it |
| Event | Occurrence |
|---|---|
IGraph.TripleAsserted |
Occurs when a Graph has a Triple asserted in it. This event is a bubbled event triggered by the BaseTripleCollection.TripleAdded event |
IGraph.TripleRetracted |
Occurs when a Graph has a Triple retracted from it. This event is a bubbled event triggered by the BaseTripleCollection.TripleRemoved event |
IGraph.Changed |
Occurs when a Graph changes |
IGraph.ClearRequested |
Occurs when a Clear() operation is requested on a Graph |
IGraph.Clear |
Occurs when a Graph is cleared |
IGraph.MergeRequested |
Occurs when a Merge() operation is requested on a Graph |
IGraph.Merged |
Occurs when a Graph is merged |
| Event | Occurrence |
|---|---|
BaseTripleCollection.TripleAdded |
Occurs when a Triple is added to the collection |
BaseTripleCollection.TripleRemoved |
Occurs when a Triple is removed from the collection |
- Getting Started
- Library Overview
- Hello World
- Reading RDF
- Writing RDF
- Working With Graphs
- Typed Values and Lists
- Working with Triple Stores
- Building SPARQL
- Querying with SPARQL
- Updating with SPARQL
- Exceptions
- Equality and Comparison
- Event Model
- Utility Methods
- Extension Methods
- Using the Namespace Mapper
- Storage API
- Advanced SPARQL
- Ontology API
- Inference and Reasoning
- ASP.NET Integration
- Global Options
- Formatting API
-
Configuration API
- Graphs
- Triple Stores
- Object Factories
- Readers and Writers
- SPARQL Endpoints
- Query Processors
- Update Processors
- Protocol Processors
- SPARQL Datasets
- SPARQL Expression Factories
- SPARQL Operators
- SPARQL Optimisers
- Full Text Query
- Reasoners
- Storage Providers
- User Groups
- Permissions
- Users
- Static Options
- Proxy Servers
- Handlers API
- JSON-LD API
- Tools