Click or drag to resize

ReasonerGraph Class

Represents a Graph with a reasoner attached.
Inheritance Hierarchy

Namespace:  VDS.RDF.Ontology
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class ReasonerGraph : OntologyGraph

The ReasonerGraph type exposes the following members.

Constructors
  NameDescription
Public methodReasonerGraph(IGraph, IEnumerableIInferenceEngine)
Creates a new Reasoner Graph which is a wrapper around an existing Graph with multiple reasoners applied and the resulting Triples materialised.
Public methodReasonerGraph(IGraph, IInferenceEngine)
Creates a new Reasoner Graph which is a wrapper around an existing Graph with a reasoner applied and the resulting Triples materialised.
Top
Properties
  NameDescription
Public propertyAllClasses
Gets all classes defined in the graph using the standard rdfs:Class and owl:Class types.
(Inherited from OntologyGraph.)
Public propertyAllNodes
Gets the unique Subject, Predicate and Object nodes of the Graph.
(Inherited from BaseGraph.)
Public propertyAllProperties
Gets all properties defined in the graph using any of the standard property types (rdf:Property, owl:AnnotationProperty, owl:DataProperty, owl:ObjectProperty).
(Inherited from OntologyGraph.)
Public propertyBaseGraph
Gets the Base Graph which the reasoning is based upon.
Public propertyBaseUri
Gets the current Base Uri for the Graph.
(Inherited from BaseGraph.)
Public propertyIsEmpty
Gets whether a Graph is Empty ie. Contains No Triples or Nodes.
(Inherited from BaseGraph.)
Public propertyNamespaceMap
Gets the Namespace Mapper for this Graph which contains all in use Namespace Prefixes and their URIs.
(Inherited from BaseGraph.)
Public propertyNodes
Gets the unique Subject and Object nodes of the Graph.
(Inherited from BaseGraph.)
Public propertyOwlAnnotationProperties
Gets all OWL Annotation properties defined in the graph.
(Inherited from OntologyGraph.)
Public propertyOwlClasses
Get all OWL classes defined in the graph.
(Inherited from OntologyGraph.)
Public propertyOwlDatatypeProperties
Gets all OWL Data properties defined in the graph.
(Inherited from OntologyGraph.)
Public propertyOwlObjectProperties
Gets all OWL Object properties defined in the graph.
(Inherited from OntologyGraph.)
Public propertyOwlProperties
Gets all properties defined in the graph using any of the standard OWL property types (owl:AnnotationProperty, owl:DataProperty, owl:ObjectProperty).
(Inherited from OntologyGraph.)
Public propertyRdfClasses
Get all the RDFS classes defined in the graph.
(Inherited from OntologyGraph.)
Public propertyRdfProperties
Gets all RDF properties defined in the graph.
(Inherited from OntologyGraph.)
Public propertyTriples
Gets the set of Triples described in this Graph.
(Inherited from BaseGraph.)
Top
Methods
  NameDescription
Public methodAssert(IEnumerableTriple)
Asserts a List of Triples in the graph.
(Inherited from Graph.)
Public methodAssert(Triple)
Asserts a Triple in the Graph.
(Inherited from Graph.)
Protected methodAttachEventHandlers
Helper method for attaching the necessary event Handlers to a Triple Collection.
(Inherited from BaseGraph.)
Public methodClear
Clears all Triples from the Graph.
(Inherited from BaseGraph.)
Public methodContainsTriple
Gets whether a given Triple exists in this Graph.
(Inherited from BaseGraph.)
Public methodCreateBlankNode
Creates a New Blank Node with an auto-generated Blank Node ID.
(Inherited from BaseGraph.)
Public methodCreateBlankNode(String)
Creates a New Blank Node with a user-defined Blank Node ID.
(Inherited from BaseGraph.)
Public methodCreateGraphLiteralNode
Creates a new Graph Literal Node with its value being an Empty Subgraph.
(Inherited from BaseGraph.)
Public methodCreateGraphLiteralNode(IGraph)
Creates a new Graph Literal Node with its value being the given Subgraph.
(Inherited from BaseGraph.)
Public methodCreateIndividual(Uri)
Gets an existing individual in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateIndividual(INode)
Gets an existing individual in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateIndividual(Uri, Uri)
Gets/Creates an individual in the Graph of the given class.
(Inherited from OntologyGraph.)
Public methodCreateIndividual(INode, INode)
Gets/Creates an individual in the Graph of the given class.
(Inherited from OntologyGraph.)
Public methodCreateLiteralNode(String)
Creates a New Literal Node with the given Value.
(Inherited from BaseGraph.)
Public methodCreateLiteralNode(String, String)
Creates a New Literal Node with the given Value and Language Specifier.
(Inherited from BaseGraph.)
Public methodCreateLiteralNode(String, Uri)
Creates a new Literal Node with the given Value and Data Type.
(Inherited from BaseGraph.)
Public methodCreateOntologyClass
Gets/Creates an anonymous ontology class in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyClass(Uri)
Gets/Creates an ontology class in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyClass(INode)
Gets/Creates an ontology class in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyProperty(Uri)
Gets/Creates an ontology property in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyProperty(INode)
Gets/Creates an ontology property in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyResource
Gets/Creates an anonymous ontology resource in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyResource(Uri)
Gets/Creates an ontology resource in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateOntologyResource(INode)
Gets/Creates an ontology resource in the Graph.
(Inherited from OntologyGraph.)
Public methodCreateUriNode
Creates a new URI Node that refers to the Base Uri of the Graph.
(Inherited from BaseGraph.)
Public methodCreateUriNode(String)
Creates a new URI Node with the given QName.
(Inherited from BaseGraph.)
Public methodCreateUriNode(Uri)
Creates a new URI Node with the given URI.
(Inherited from BaseGraph.)
Public methodCreateVariableNode
Creates a new Variable Node.
(Inherited from BaseGraph.)
Protected methodDetachEventHandlers
Helper method for detaching the necessary event Handlers from a Triple Collection.
(Inherited from BaseGraph.)
Public methodDifference
Computes the Difference between this Graph the given Graph.
(Inherited from BaseGraph.)
Public methodDispose
Disposes of a Graph.
(Inherited from BaseGraph.)
Public methodEquals(Object)
Determines whether a Graph is equal to another Object.
(Inherited from BaseGraph.)
Public methodEquals(IGraph, DictionaryINode, INode)
Determines whether this Graph is equal to the given Graph.
(Inherited from BaseGraph.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBlankNode
Returns the Blank Node with the given Identifier.
(Inherited from Graph.)
Public methodGetClasses
Get all classes defined in the graph where anything of a specific type is considered a class.
(Inherited from OntologyGraph.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLiteralNode(String)
Returns the LiteralNode with the given Value if it exists.
(Inherited from Graph.)
Public methodGetLiteralNode(String, String)
Returns the LiteralNode with the given Value in the given Language if it exists.
(Inherited from Graph.)
Public methodGetLiteralNode(String, Uri)
Returns the LiteralNode with the given Value and given Data Type if it exists.
(Inherited from Graph.)
Public methodGetNextBlankNodeID
Creates a new unused Blank Node ID and returns it.
(Inherited from BaseGraph.)
Public methodGetObjectData
Gets the Serialization Information for serializing a Graph.
(Inherited from BaseGraph.)
Public methodGetProperties
Get all properties defined in the graph where anything of a specific type is considered a property.
(Inherited from OntologyGraph.)
Public methodGetSchema
Gets the Schema for XML Serialization.
(Inherited from BaseGraph.)
Public methodGetTriples(Uri)
Gets all the Triples involving the given Uri.
(Inherited from Graph.)
Public methodGetTriples(INode)
Gets all the Triples involving the given Node.
(Inherited from Graph.)
Public methodGetTriplesWithObject(Uri)
Gets all the Triples with the given Uri as the Object.
(Inherited from Graph.)
Public methodGetTriplesWithObject(INode)
Gets all the Triples with the given Node as the Object.
(Inherited from Graph.)
Public methodGetTriplesWithPredicate(Uri)
Gets all the Triples with the given Uri as the Predicate.
(Inherited from Graph.)
Public methodGetTriplesWithPredicate(INode)
Gets all the Triples with the given Node as the Predicate.
(Inherited from Graph.)
Public methodGetTriplesWithPredicateObject
Selects all Triples with the given Predicate and Object.
(Inherited from Graph.)
Public methodGetTriplesWithSubject(Uri)
Gets all the Triples with the given Uri as the Subject.
(Inherited from Graph.)
Public methodGetTriplesWithSubject(INode)
Gets all the Triples with the given Node as the Subject.
(Inherited from Graph.)
Public methodGetTriplesWithSubjectObject
Selects all Triples with the given Subject and Object.
(Inherited from Graph.)
Public methodGetTriplesWithSubjectPredicate
Selects all Triples with the given Subject and Predicate.
(Inherited from Graph.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUriNode(String)
Returns the UriNode with the given QName if it exists.
(Inherited from Graph.)
Public methodGetUriNode(Uri)
Returns the UriNode with the given Uri if it exists.
(Inherited from Graph.)
Public methodHasSubGraph(IGraph)
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from BaseGraph.)
Public methodHasSubGraph(IGraph, DictionaryINode, INode)
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from BaseGraph.)
Public methodIsSubGraphOf(IGraph)
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from BaseGraph.)
Public methodIsSubGraphOf(IGraph, DictionaryINode, INode)
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from BaseGraph.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(IGraph)
Merges another Graph into the current Graph.
(Inherited from BaseGraph.)
Public methodMerge(IGraph, Boolean)
Merges another Graph into the current Graph.
(Inherited from BaseGraph.)
Protected methodOnTripleAsserted
Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event.
(Inherited from BaseGraph.)
Protected methodOnTripleRetracted
Event Handler which handles the Triple Removed event from the underlying Triple Collection by raising the Graph's Triple Retracted event.
(Inherited from BaseGraph.)
Protected methodRaiseCleared
Helper method for raising the Cleared event.
(Inherited from BaseGraph.)
Protected methodRaiseClearRequested
Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from BaseGraph.)
Protected methodRaiseGraphChanged
Helper method for raising the Changed event.
(Inherited from BaseGraph.)
Protected methodRaiseGraphChanged(TripleEventArgs)
Helper method for raising the Changed event.
(Inherited from BaseGraph.)
Protected methodRaiseMerged
Helper method for raising the Merged event.
(Inherited from BaseGraph.)
Protected methodRaiseMergeRequested
Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from BaseGraph.)
Protected methodRaiseTripleAsserted(Triple)
Helper method for raising the Triple Asserted event manually.
(Inherited from BaseGraph.)
Protected methodRaiseTripleAsserted(TripleEventArgs)
Helper method for raising the Triple Asserted event manually.
(Inherited from BaseGraph.)
Protected methodRaiseTripleRetracted(Triple)
Helper method for raising the Triple Retracted event manually.
(Inherited from BaseGraph.)
Protected methodRaiseTripleRetracted(TripleEventArgs)
Helper method for raising the Triple Retracted event manually.
(Inherited from BaseGraph.)
Public methodReadXml
Reads the data for XML deserialization.
(Inherited from BaseGraph.)
Public methodResolveQName
Helper function for Resolving QNames to URIs.
(Inherited from BaseGraph.)
Public methodRetract(IEnumerableTriple)
Retracts a enumeration of Triples from the graph.
(Inherited from Graph.)
Public methodRetract(Triple)
Retracts a Triple from the Graph.
(Inherited from Graph.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteXml
Writes the data for XML serialization.
(Inherited from BaseGraph.)
Top
Events
  NameDescription
Public eventChanged
Event which is raised when the Graph contents change
(Inherited from BaseGraph.)
Public eventCleared
Event which is raised after the Graph is cleared of its contents
(Inherited from BaseGraph.)
Public eventClearRequested
Event which is raised just before the Graph is cleared of its contents
(Inherited from BaseGraph.)
Public eventMerged
Event which is raised when a Merge operation is completed on the Graph
(Inherited from BaseGraph.)
Public eventMergeRequested
Event which is raised when a Merge operation is requested on the Graph
(Inherited from BaseGraph.)
Public eventTripleAsserted
Event which is raised when a Triple is asserted in the Graph
(Inherited from BaseGraph.)
Public eventTripleRetracted
Event which is raised when a Triple is retracted from the Graph
(Inherited from BaseGraph.)
Top
Fields
  NameDescription
Protected field_baseuri
Base Uri of the Graph.
(Inherited from BaseGraph.)
Protected field_bnodemapper
Blank Node ID Mapper.
(Inherited from BaseGraph.)
Protected field_nsmapper
Namespace Mapper.
(Inherited from BaseGraph.)
Protected field_triples
Collection of Triples in the Graph.
(Inherited from BaseGraph.)
Top
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.

See Also