Class ReasonerGraph
Represents a Graph with a reasoner attached.
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Ontology
Assembly: dotNetRDF.dll
Syntax
public class ReasonerGraph : OntologyGraph, IGraph, INodeFactory, IDisposable, IXmlSerializable, ISerializable
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(Triple) and Retract(Triple)) 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
| Improve this Doc 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. |
System.Collections.Generic.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
| Improve this Doc View SourceBaseGraph
Gets the Base Graph which the reasoning is based upon.
Declaration
public IGraph BaseGraph { get; }
Property Value
Type | Description |
---|---|
IGraph |
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
System.Runtime.Serialization.ISerializable