Click or drag to resize

OntologyClass Class

Class for representing a class in an Ontology.
Inheritance Hierarchy

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

The OntologyClass type exposes the following members.

Constructors
  NameDescription
Public methodOntologyClass
Creates a new representation of a Class in the given Ontology Mode.
Top
Properties
  NameDescription
Public propertyComment
Gets the Comment(s) for the Resource.
(Inherited from OntologyResource.)
Public propertyDifferentFrom
Gets the Different From(s) for the Resource.
(Inherited from OntologyResource.)
Public propertyDirectSubClasses
Gets the direct sub-classes of this class.
Public propertyDirectSuperClasses
Gets the direct super-classes of this class.
Public propertyDisjointClasses
Gets the disjoint classes of this class.
Public propertyEquivalentClasses
Gets the equivalent classes of this class.
Public propertyGraph
Gets the Graph that this Ontology Resource is from.
(Inherited from OntologyResource.)
Public propertyIndirectSubClasses
Gets the indirect sub-classes of this class.
Public propertyIndirectSuperClasses
Gets the indirect super-classes of this class.
Public propertyInstances
Gets the instances (individuals) of this class.
Public propertyIsBottomClass
Gets whether something is a Bottom Class i.e. has no sub classes.
Public propertyIsDefinedBy
Gets the Is Defined By(s) for the Resource.
(Inherited from OntologyResource.)
Public propertyIsDomainOf
Gets the properties which have this class as a domain.
Public propertyIsRangeOf
Gets the properties which have this class as a range.
Public propertyIsTopClass
Gets whether something is a Top Class i.e. has no super classes.
Public propertyLabel
Gets the Label(s) for the Resource.
(Inherited from OntologyResource.)
Public propertyResource
Gets the Resource that this Ontology Resource refers to.
(Inherited from OntologyResource.)
Public propertySameAs
Gets the Same As('s) for the Resource.
(Inherited from OntologyResource.)
Public propertySeeAlso
Gets the See Also(s) for the Resource.
(Inherited from OntologyResource.)
Public propertySiblings
Gets the Sibling classes of this class, if this class is the root of the ontology nothing is returned even if there are multiple root classes.
Public propertySubClasses
Gets the sub-classes of this class (both direct and indirect).
Public propertySuperClasses
Gets the super-classes of this class (both direct and indirect).
Public propertyTriples
Gets all the Triples where the Resource occurs in any position.
(Inherited from OntologyResource.)
Public propertyTriplesWithObject
Gets all the Triples from the Graph where the Resource occurs as the Object.
(Inherited from OntologyResource.)
Public propertyTriplesWithPredicate
Gets all the Triples from the Graph where the Resource occurs as the Predicate.
(Inherited from OntologyResource.)
Public propertyTriplesWithSubject
Gets all the Triples from the Graph where the Resource occurs as the Subject.
(Inherited from OntologyResource.)
Public propertyTypes
Gets the rdf:type's for the Resource.
(Inherited from OntologyResource.)
Public propertyVersionInfo
Gets the Version Information for the Resource.
(Inherited from OntologyResource.)
Top
Methods
  NameDescription
Public methodAddComment(String)
Adds a comment for this resource.
(Inherited from OntologyResource.)
Public methodAddComment(String, String)
Adds a comment in a specific language for this resource.
(Inherited from OntologyResource.)
Public methodAddDifferentFrom(Uri)
Adds a new owl:differentFrom triple for the resource.
(Inherited from OntologyResource.)
Public methodAddDifferentFrom(INode)
Adds a new owl:differentFrom triple for the resource.
(Inherited from OntologyResource.)
Public methodAddDifferentFrom(OntologyResource)
Adds a new owl:differentFrom triple for the resource.
(Inherited from OntologyResource.)
Public methodAddDisjointClass(Uri)
Adds a new disjoint class for this class.
Public methodAddDisjointClass(INode)
Adds a new disjoint class for this class.
Public methodAddDisjointClass(OntologyClass)
Adds a new disjoint class for this class.
Public methodAddDisjointClass(OntologyResource)
Adds a new disjoint class for this class.
Public methodAddEquivalentClass(Uri)
Adds an equivalent class for this class.
Public methodAddEquivalentClass(INode)
Adds an equivalent class for this class.
Public methodAddEquivalentClass(OntologyClass)
Adds an equivalent class for this class.
Public methodAddEquivalentClass(OntologyResource)
Adds an equivalent class for this class.
Public methodAddIsDefinedBy(Uri)
Adds a new rdfs:isDefinedBy triple for the resource.
(Inherited from OntologyResource.)
Public methodAddIsDefinedBy(INode)
Adds a new rdfs:isDefinedBy triple for the resource.
(Inherited from OntologyResource.)
Public methodAddIsDefinedBy(OntologyResource)
Adds a new rdfs:isDefinedBy triple for the resource.
(Inherited from OntologyResource.)
Public methodAddLabel(String)
Adds a label for the resource.
(Inherited from OntologyResource.)
Public methodAddLabel(String, String)
Adds a label in a specific language for a resource.
(Inherited from OntologyResource.)
Public methodAddLiteralProperty(String, ILiteralNode, Boolean)
Adds a new literal value for a property.
(Inherited from OntologyResource.)
Public methodAddLiteralProperty(Uri, ILiteralNode, Boolean)
Adds a new literal value for a property.
(Inherited from OntologyResource.)
Public methodAddResourceProperty(String, INode, Boolean)
Adds a new value for a property.
(Inherited from OntologyResource.)
Public methodAddResourceProperty(Uri, INode, Boolean)
Adds a new value for a property.
(Inherited from OntologyResource.)
Public methodAddSameAs(Uri)
Adds a new owl:sameAs triple for the resource.
(Inherited from OntologyResource.)
Public methodAddSameAs(INode)
Adds a new owl:sameAs triple for the resource.
(Inherited from OntologyResource.)
Public methodAddSameAs(OntologyResource)
Adds a new owl:sameAs triple for the resource.
(Inherited from OntologyResource.)
Public methodAddSeeAlso(Uri)
Adds a new rdfs:seeAlso triple for the resource.
(Inherited from OntologyResource.)
Public methodAddSeeAlso(INode)
Adds a new rdfs:seeAlso triple for the resource.
(Inherited from OntologyResource.)
Public methodAddSeeAlso(OntologyResource)
Adds a new rdfs:seeAlso triple for the resource.
(Inherited from OntologyResource.)
Public methodAddSubClass(Uri)
Adds a new sub-class for this class.
Public methodAddSubClass(INode)
Adds a new sub-class for this class.
Public methodAddSubClass(OntologyClass)
Adds a new sub-class for this class.
Public methodAddSubClass(OntologyResource)
Adds a new sub-class for this class.
Public methodAddSuperClass(Uri)
Adds a new super-class for this class.
Public methodAddSuperClass(INode)
Adds a new super-class for this class.
Public methodAddSuperClass(OntologyClass)
Adds a new super-class for this class.
Public methodAddSuperClass(OntologyResource)
Adds a new super-class for this class.
Public methodAddType(Uri)
Adds a new rdf:type triple for the resource.
(Inherited from OntologyResource.)
Public methodAddType(INode)
Adds a new rdf:type triple for the resource.
(Inherited from OntologyResource.)
Public methodAddType(OntologyResource)
Adds a new rdf:type triple for the resource.
(Inherited from OntologyResource.)
Public methodAddVersionInfo
Adds version information for the resource.
(Inherited from OntologyResource.)
Public methodAsClass
Casts a Resource into an Ontology Class.
(Inherited from OntologyResource.)
Public methodAsProperty
Casts a Resource into an Ontology Property.
(Inherited from OntologyResource.)
Public methodClearComments
Removes all comments for this resource.
(Inherited from OntologyResource.)
Public methodClearDifferentFrom
Clears all owl:differentFrom triples for the resource.
(Inherited from OntologyResource.)
Public methodClearDisjointClasses
Removes all disjoint classes for this class.
Public methodClearEquivalentClasses
Removes all equivalent classes for this class.
Public methodClearIsDefinedBy
Removes all rdfs:isDefinedBy triples for the resource.
(Inherited from OntologyResource.)
Public methodClearLabels
Clears all labels for a resource.
(Inherited from OntologyResource.)
Public methodClearLiteralProperty(String, Boolean)
Clears all values for a Literal Property.
(Inherited from OntologyResource.)
Public methodClearLiteralProperty(Uri, Boolean)
Clears all values for a Literal Property.
(Inherited from OntologyResource.)
Public methodClearResourceProperty(String, Boolean)
Clears all values for a Resource Property.
(Inherited from OntologyResource.)
Public methodClearResourceProperty(Uri, Boolean)
Clears all values for a Resource Property.
(Inherited from OntologyResource.)
Public methodClearSameAs
Removes all owl:sameAs triples for the resource.
(Inherited from OntologyResource.)
Public methodClearSeeAlso
Removes all rdfs:seeAlso triples for the resource.
(Inherited from OntologyResource.)
Public methodClearSubClasses
Removes all sub-classes for this class.
Public methodClearSuperClasses
Removes all super-classes.
Public methodClearTypes
Removes all rdf:type triples for the resource.
(Inherited from OntologyResource.)
Public methodClearVersionInfo
Clears version information for the resource.
(Inherited from OntologyResource.)
Public methodCreateIndividual
Gets/Creates an Individual of this class.
Public methodEquals
Gets whether this Class is equal to another Class.
(Overrides ObjectEquals(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.
(Inherited from OntologyResource.)
Public methodGetLiteralProperty(Uri)
Gets the values for a property which is restricted to literals.
(Inherited from OntologyResource.)
Public methodGetResourceProperty(String)
Gets the values for a property which can be any node type.
(Inherited from OntologyResource.)
Public methodGetResourceProperty(Uri)
Gets the values for a property which can be any node type.
(Inherited from OntologyResource.)
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.
(Inherited from OntologyResource.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveComment(String)
Removes a comment for this resource.
(Inherited from OntologyResource.)
Public methodRemoveComment(ILiteralNode)
Removes a comment for this resource.
(Inherited from OntologyResource.)
Public methodRemoveComment(String, String)
Removes a comment in a specific language for this resource.
(Inherited from OntologyResource.)
Public methodRemoveDifferentFrom(Uri)
Removes a owl:differentFrom triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveDifferentFrom(INode)
Removes a owl:differentFrom triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveDifferentFrom(OntologyResource)
Removes a owl:differentFrom triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveDisjointClass(Uri)
Removes a disjoint class for this class.
Public methodRemoveDisjointClass(INode)
Removes a disjoint class for this class.
Public methodRemoveDisjointClass(OntologyClass)
Removes a disjoint class for this class.
Public methodRemoveDisjointClass(OntologyResource)
Removes a disjoint class for this class.
Public methodRemoveEquivalentClass(Uri)
Removes an equivalent class for this class.
Public methodRemoveEquivalentClass(INode)
Removes an equivalent class for this class.
Public methodRemoveEquivalentClass(OntologyClass)
Removes an equivalent class for this class.
Public methodRemoveEquivalentClass(OntologyResource)
Removes an equivalent class for this class.
Public methodRemoveIsDefinedBy(Uri)
Removes a rdfs:isDefinedBy triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveIsDefinedBy(INode)
Removes a rdfs:isDefinedBy triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveIsDefinedBy(OntologyResource)
Removes a rdfs:isDefinedBy triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveLabel(String)
Removes a label for a resource.
(Inherited from OntologyResource.)
Public methodRemoveLabel(ILiteralNode)
Removes a specific label for a resource.
(Inherited from OntologyResource.)
Public methodRemoveLabel(String, String)
Removes a label in a specific language for a resource.
(Inherited from OntologyResource.)
Public methodRemoveLiteralProperty(String, ILiteralNode, Boolean)
Removes a literal value for a property.
(Inherited from OntologyResource.)
Public methodRemoveLiteralProperty(Uri, ILiteralNode, Boolean)
Removes a literal value for a property.
(Inherited from OntologyResource.)
Public methodRemoveResourceProperty(String, INode, Boolean)
Removes a value for a property.
(Inherited from OntologyResource.)
Public methodRemoveResourceProperty(Uri, INode, Boolean)
Removes a value for a property.
(Inherited from OntologyResource.)
Public methodRemoveSameAs(Uri)
Removes a owl:sameAs triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveSameAs(INode)
Removes a owl:sameAs triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveSameAs(OntologyResource)
Removes a owl:sameAs triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveSeeAlso(Uri)
Removes a rdfs:seeAlso triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveSeeAlso(INode)
Removes a rdfs:seeAlso triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveSeeAlso(OntologyResource)
Removes a rdfs:seeAlso triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveSubClass(Uri)
Removes a sub-class for this class.
Public methodRemoveSubClass(INode)
Removes a sub-class for this class.
Public methodRemoveSubClass(OntologyClass)
Removes a sub-class for this class.
Public methodRemoveSubClass(OntologyResource)
Removes a sub-class for this class.
Public methodRemoveSuperClass(Uri)
Removes a super-class for this class.
Public methodRemoveSuperClass(INode)
Removes a super-class for this class.
Public methodRemoveSuperClass(OntologyClass)
Removes a super-class for this class.
Public methodRemoveSuperClass(OntologyResource)
Removes a super-class for this class.
Public methodRemoveType(Uri)
Removes a rdf:type triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveType(INode)
Removes a rdf:type triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveType(OntologyResource)
Removes a rdf:type triple for the resource.
(Inherited from OntologyResource.)
Public methodRemoveVersionInfo(String)
Remove version information for the resource.
(Inherited from OntologyResource.)
Public methodRemoveVersionInfo(ILiteralNode)
Remove version information for the resource.
(Inherited from OntologyResource.)
Public methodToString
Gets the String representation of the Resource.
(Inherited from OntologyResource.)
Top
Fields
  NameDescription
Protected field_graph
The Graph from which this Resource originates.
(Inherited from OntologyResource.)
Protected field_literalProperties
Storage of Literal Properties.
(Inherited from OntologyResource.)
Protected field_resource
The Node which this Resource is a wrapper around.
(Inherited from OntologyResource.)
Protected field_resourceProperties
Storage of Resource Properties.
(Inherited from OntologyResource.)
Top
Remarks

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

See Also