Class StaticRdfsReasoner
An Inference Engine which uses RDFS reasoning.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Inference
Assembly: dotNetRdf.Inferencing.dll
Syntax
public class StaticRdfsReasoner : IInferenceEngine
Remarks
Does basic RDFS inferencing using the schema taken from the Graph(s) which are provided in calls to the reasoners Initialise() method.
Types of inference performed are as follows:.
- Class hierarchy reasoning - asserts additional types triples for anything that is typed as the subclass of a class.
- Property hierarchy reasoning - asserts additional property triples for anything where the predicate is a subproperty of a defined property
- Domain & Range reasoning - asserts additional type triples based on the domains and ranges of properties
Constructors
| Improve this Doc View SourceStaticRdfsReasoner()
Creates a new instance of the Static RdfsReasoner.
Declaration
public StaticRdfsReasoner()
Remarks
Does basic RDFS inferencing using the schema taken from the Graph(s) which are provided in calls to the reasoners Initialise() method.
Types of inference performed are as follows:.
- Class hierarchy reasoning - asserts additional types triples for anything that is typed as the subclass of a class.
- Property hierarchy reasoning - asserts additional property triples for anything where the predicate is a subproperty of a defined property
- Domain & Range reasoning - asserts additional type triples based on the domains and ranges of properties
Methods
| Improve this Doc View SourceApply(IGraph, IGraph)
Applies inference to the Input Graph and outputs the inferred information to the Output Graph.
Declaration
public virtual void Apply(IGraph input, IGraph output)
Parameters
Type | Name | Description |
---|---|---|
IGraph | input | Graph to apply inference to. |
IGraph | output | Graph inferred information is output to. |
Remarks
Does basic RDFS inferencing using the schema taken from the Graph(s) which are provided in calls to the reasoners Initialise() method.
Types of inference performed are as follows:.
- Class hierarchy reasoning - asserts additional types triples for anything that is typed as the subclass of a class.
- Property hierarchy reasoning - asserts additional property triples for anything where the predicate is a subproperty of a defined property
- Domain & Range reasoning - asserts additional type triples based on the domains and ranges of properties
Apply(IGraph)
Applies inference to the given Graph and outputs the inferred information to that Graph.
Declaration
public virtual void Apply(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
Remarks
Does basic RDFS inferencing using the schema taken from the Graph(s) which are provided in calls to the reasoners Initialise() method.
Types of inference performed are as follows:.
- Class hierarchy reasoning - asserts additional types triples for anything that is typed as the subclass of a class.
- Property hierarchy reasoning - asserts additional property triples for anything where the predicate is a subproperty of a defined property
- Domain & Range reasoning - asserts additional type triples based on the domains and ranges of properties
Initialise(IGraph)
Imports any Class heirarchy information from the given Graph into the Reasoners Knowledge Base in order to initialise the Reasoner.
Declaration
public void Initialise(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to import from. |
Remarks
Looks for Triples defining things to be classes and those defining that something is a subClass of something.