Class InferencingTripleStore
An implementation of the IInferencingTripleStore interface over an in-memory TripleStore.
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.Inferencing.dll
Syntax
public class InferencingTripleStore : TripleStore, IInMemoryQueryableStore, ISparqlUpdateTripleStore, IUpdateableTripleStore, IInferencingTripleStore, ITripleStore, IDisposable
Fields
| Edit this page View Source_reasoners
List of Reasoners that are applied to Graphs as they are added to the Triple Store.
Declaration
protected List<IInferenceEngine> _reasoners
Field Value
| Type | Description |
|---|---|
| List<IInferenceEngine> |
Methods
| Edit this page View SourceAddInferenceEngine(IInferenceEngine)
Adds an Inference Engine to the Triple Store.
Declaration
public void AddInferenceEngine(IInferenceEngine reasoner)
Parameters
| Type | Name | Description |
|---|---|---|
| IInferenceEngine | reasoner | Reasoner to add. |
ApplyInference(IGraph)
Applies Inference to the given Graph.
Declaration
public void ApplyInference(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph to apply inference to. |
ClearInferenceEngines()
Clears all Inference Engines from the Triple Store.
Declaration
public void ClearInferenceEngines()
OnGraphAdded(object, GraphEventArgs)
Event Handler for the Graph Added event of the underlying Graph Collection which calls the normal event processing of the parent class BaseTripleStore and then applies Inference to the newly added Graph.
Declaration
protected override void OnGraphAdded(object sender, GraphEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sender | Sender. |
| GraphEventArgs | args | Graph Event Arguments. |
Overrides
| Edit this page View SourceRemoveInferenceEngine(IInferenceEngine)
Removes an Inference Engine from the Triple Store.
Declaration
public void RemoveInferenceEngine(IInferenceEngine reasoner)
Parameters
| Type | Name | Description |
|---|---|---|
| IInferenceEngine | reasoner | Reasoner to remove. |