Class ReasonerGraph
Represents a Graph with a reasoner attached.
Inherited Members
Namespace: VDS.RDF.Ontology
Assembly: dotNetRdf.Inferencing.dll
Syntax
public class ReasonerGraph : OntologyGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>, IEquatable<Graph>
Remarks
This class wraps an existing Graph and applies the given reasoner to it materialising the Triples in this Graph. The original Graph itself is not modified but can be accessed if necessary using the BaseGraph property.
Any changes to this Graph (via Assert() and Retract()) affect this Graph - specifically the set of materialised Triples - rather than the original Graph around which this Graph is a wrapper.
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Constructors
| Edit this page View SourceReasonerGraph(IGraph, IEnumerable<IInferenceEngine>)
Creates a new Reasoner Graph which is a wrapper around an existing Graph with multiple reasoners applied and the resulting Triples materialised.
Declaration
public ReasonerGraph(IGraph g, IEnumerable<IInferenceEngine> reasoners)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
IEnumerable<IInferenceEngine> | reasoners | Reasoner. |
ReasonerGraph(IGraph, IInferenceEngine)
Creates a new Reasoner Graph which is a wrapper around an existing Graph with a reasoner applied and the resulting Triples materialised.
Declaration
public ReasonerGraph(IGraph g, IInferenceEngine reasoner)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
IInferenceEngine | reasoner | Reasoner. |
Properties
| Edit this page View SourceBaseGraph
Gets the Base Graph which the reasoning is based upon.
Declaration
public IGraph BaseGraph { get; }
Property Value
Type | Description |
---|---|
IGraph |