Click or drag to resize

OntologyResource Class

Base class for representing a resource in an Ontology.
Inheritance Hierarchy

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

The OntologyResource type exposes the following members.

Constructors
  NameDescription
Protected methodOntologyResource(Uri, IGraph)
Creates a new Ontology Resource for the given Resource in the given Graph.
Protected methodOntologyResource(INode, IGraph)
Creates a new Ontology Resource for the given Resource in the given Graph.
Top
Properties
  NameDescription
Public propertyComment
Gets the Comment(s) for the Resource.
Public propertyDifferentFrom
Gets the Different From(s) for the Resource.
Public propertyGraph
Gets the Graph that this Ontology Resource is from.
Public propertyIsDefinedBy
Gets the Is Defined By(s) for the Resource.
Public propertyLabel
Gets the Label(s) for the Resource.
Public propertyResource
Gets the Resource that this Ontology Resource refers to.
Public propertySameAs
Gets the Same As('s) for the Resource.
Public propertySeeAlso
Gets the See Also(s) for the Resource.
Public propertyTriples
Gets all the Triples where the Resource occurs in any position.
Public propertyTriplesWithObject
Gets all the Triples from the Graph where the Resource occurs as the Object.
Public propertyTriplesWithPredicate
Gets all the Triples from the Graph where the Resource occurs as the Predicate.
Public propertyTriplesWithSubject
Gets all the Triples from the Graph where the Resource occurs as the Subject.
Public propertyTypes
Gets the rdf:type's for the Resource.
Public propertyVersionInfo
Gets the Version Information for the Resource.
Top
Methods
  NameDescription
Public methodAddComment(String)
Adds a comment for this resource.
Public methodAddComment(String, String)
Adds a comment in a specific language for this resource.
Public methodAddDifferentFrom(Uri)
Adds a new owl:differentFrom triple for the resource.
Public methodAddDifferentFrom(INode)
Adds a new owl:differentFrom triple for the resource.
Public methodAddDifferentFrom(OntologyResource)
Adds a new owl:differentFrom triple for the resource.
Public methodAddIsDefinedBy(Uri)
Adds a new rdfs:isDefinedBy triple for the resource.
Public methodAddIsDefinedBy(INode)
Adds a new rdfs:isDefinedBy triple for the resource.
Public methodAddIsDefinedBy(OntologyResource)
Adds a new rdfs:isDefinedBy triple for the resource.
Public methodAddLabel(String)
Adds a label for the resource.
Public methodAddLabel(String, String)
Adds a label in a specific language for a resource.
Public methodAddLiteralProperty(String, ILiteralNode, Boolean)
Adds a new literal value for a property.
Public methodAddLiteralProperty(Uri, ILiteralNode, Boolean)
Adds a new literal value for a property.
Public methodAddResourceProperty(String, INode, Boolean)
Adds a new value for a property.
Public methodAddResourceProperty(Uri, INode, Boolean)
Adds a new value for a property.
Public methodAddSameAs(Uri)
Adds a new owl:sameAs triple for the resource.
Public methodAddSameAs(INode)
Adds a new owl:sameAs triple for the resource.
Public methodAddSameAs(OntologyResource)
Adds a new owl:sameAs triple for the resource.
Public methodAddSeeAlso(Uri)
Adds a new rdfs:seeAlso triple for the resource.
Public methodAddSeeAlso(INode)
Adds a new rdfs:seeAlso triple for the resource.
Public methodAddSeeAlso(OntologyResource)
Adds a new rdfs:seeAlso triple for the resource.
Public methodAddType(Uri)
Adds a new rdf:type triple for the resource.
Public methodAddType(INode)
Adds a new rdf:type triple for the resource.
Public methodAddType(OntologyResource)
Adds a new rdf:type triple for the resource.
Public methodAddVersionInfo
Adds version information for the resource.
Public methodAsClass
Casts a Resource into an Ontology Class.
Public methodAsProperty
Casts a Resource into an Ontology Property.
Public methodClearComments
Removes all comments for this resource.
Public methodClearDifferentFrom
Clears all owl:differentFrom triples for the resource.
Public methodClearIsDefinedBy
Removes all rdfs:isDefinedBy triples for the resource.
Public methodClearLabels
Clears all labels for a resource.
Public methodClearLiteralProperty(String, Boolean)
Clears all values for a Literal Property.
Public methodClearLiteralProperty(Uri, Boolean)
Clears all values for a Literal Property.
Public methodClearResourceProperty(String, Boolean)
Clears all values for a Resource Property.
Public methodClearResourceProperty(Uri, Boolean)
Clears all values for a Resource Property.
Public methodClearSameAs
Removes all owl:sameAs triples for the resource.
Public methodClearSeeAlso
Removes all rdfs:seeAlso triples for the resource.
Public methodClearTypes
Removes all rdf:type triples for the resource.
Public methodClearVersionInfo
Clears version information for the resource.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLiteralProperty(String)
Gets the values for a property which is restricted to literals.
Public methodGetLiteralProperty(Uri)
Gets the values for a property which is restricted to literals.
Public methodGetResourceProperty(String)
Gets the values for a property which can be any node type.
Public methodGetResourceProperty(Uri)
Gets the values for a property which can be any node type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIntialiseProperty
Retrieves all the Triples which have the Resource as the subject and the given property URI as the predicate from the Graph and stores the values locally.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveComment(String)
Removes a comment for this resource.
Public methodRemoveComment(ILiteralNode)
Removes a comment for this resource.
Public methodRemoveComment(String, String)
Removes a comment in a specific language for this resource.
Public methodRemoveDifferentFrom(Uri)
Removes a owl:differentFrom triple for the resource.
Public methodRemoveDifferentFrom(INode)
Removes a owl:differentFrom triple for the resource.
Public methodRemoveDifferentFrom(OntologyResource)
Removes a owl:differentFrom triple for the resource.
Public methodRemoveIsDefinedBy(Uri)
Removes a rdfs:isDefinedBy triple for the resource.
Public methodRemoveIsDefinedBy(INode)
Removes a rdfs:isDefinedBy triple for the resource.
Public methodRemoveIsDefinedBy(OntologyResource)
Removes a rdfs:isDefinedBy triple for the resource.
Public methodRemoveLabel(String)
Removes a label for a resource.
Public methodRemoveLabel(ILiteralNode)
Removes a specific label for a resource.
Public methodRemoveLabel(String, String)
Removes a label in a specific language for a resource.
Public methodRemoveLiteralProperty(String, ILiteralNode, Boolean)
Removes a literal value for a property.
Public methodRemoveLiteralProperty(Uri, ILiteralNode, Boolean)
Removes a literal value for a property.
Public methodRemoveResourceProperty(String, INode, Boolean)
Removes a value for a property.
Public methodRemoveResourceProperty(Uri, INode, Boolean)
Removes a value for a property.
Public methodRemoveSameAs(Uri)
Removes a owl:sameAs triple for the resource.
Public methodRemoveSameAs(INode)
Removes a owl:sameAs triple for the resource.
Public methodRemoveSameAs(OntologyResource)
Removes a owl:sameAs triple for the resource.
Public methodRemoveSeeAlso(Uri)
Removes a rdfs:seeAlso triple for the resource.
Public methodRemoveSeeAlso(INode)
Removes a rdfs:seeAlso triple for the resource.
Public methodRemoveSeeAlso(OntologyResource)
Removes a rdfs:seeAlso triple for the resource.
Public methodRemoveType(Uri)
Removes a rdf:type triple for the resource.
Public methodRemoveType(INode)
Removes a rdf:type triple for the resource.
Public methodRemoveType(OntologyResource)
Removes a rdf:type triple for the resource.
Public methodRemoveVersionInfo(String)
Remove version information for the resource.
Public methodRemoveVersionInfo(ILiteralNode)
Remove version information for the resource.
Public methodToString
Gets the String representation of the Resource.
(Overrides ObjectToString.)
Top
Operators
Fields
  NameDescription
Protected field_graph
The Graph from which this Resource originates.
Protected field_literalProperties
Storage of Literal Properties.
Protected field_resource
The Node which this Resource is a wrapper around.
Protected field_resourceProperties
Storage of Resource Properties.
Top
Remarks

See Using the Ontology API for some informal documentation on the use of the Ontology namespace.

See Also