Click or drag to resize

OntologyProperty Class

Class for representing a property in an Ontology.
Inheritance Hierarchy

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

The OntologyProperty type exposes the following members.

Constructors
  NameDescription
Public methodOntologyProperty(Uri, IGraph)
Creates a new RDFS Ontology Property for the given resource in the given Graph.
Public methodOntologyProperty(INode, IGraph)
Creates a new Ontology Property for the given resource in the given Graph.
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 propertyDirectSubProperties
Gets the direct sub-classes of this class.
Public propertyDirectSuperProperties
Gets the direct super-properties of this property.
Public propertyDomains
Gets all the Classes which are in the properties Domain.
Public propertyEquivalentProperties
Gets all the equivalent properties of this property.
Public propertyGraph
Gets the Graph that this Ontology Resource is from.
(Inherited from OntologyResource.)
Public propertyIndirectSubProperties
Gets the indirect sub-classes of this class.
Public propertyIndirectSuperProperty
Gets the indirect super-properties of this property.
Public propertyInverseProperties
Gets all the inverse properties of this property.
Public propertyIsBottomProperty
Gets whether this is a btoom property i.e. has no sub properties defined.
Public propertyIsDefinedBy
Gets the Is Defined By(s) for the Resource.
(Inherited from OntologyResource.)
Public propertyIsTopProperty
Gets whether this is a top property i.e. has no super properties defined.
Public propertyLabel
Gets the Label(s) for the Resource.
(Inherited from OntologyResource.)
Public propertyRanges
Gets all the Classes which are in this properties Range.
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 properties of this property, if this property is the root of the ontology nothing is returned even if there are multiple root properties.
Public propertySubProperties
Gets the sub-properties of this property (both direct and indirect).
Public propertySuperProperties
Gets the super-properties of this property (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 propertyUsedBy
Gets all the resources that use this property.
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 methodAddDomain(Uri)
Adds a new domain for the property.
Public methodAddDomain(INode)
Adds a new domain for the property.
Public methodAddDomain(OntologyResource)
Adds a new domain for the property.
Public methodAddEquivalentProperty(Uri)
Adds a new equivalent property for the property.
Public methodAddEquivalentProperty(INode)
Adds a new equivalent property for the property.
Public methodAddEquivalentProperty(OntologyProperty)
Adds a new equivalent property for the property.
Public methodAddEquivalentProperty(OntologyResource)
Adds a new equivalent property for the property.
Public methodAddInverseProperty(Uri)
Adds an inverse property for the property.
Public methodAddInverseProperty(INode)
Adds an inverse property for the property.
Public methodAddInverseProperty(OntologyProperty)
Adds an inverse property for the property.
Public methodAddInverseProperty(OntologyResource)
Adds an inverse property for the property.
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 methodAddRange(Uri)
Adds a new range for the property.
Public methodAddRange(INode)
Adds a new range for the property.
Public methodAddRange(OntologyResource)
Adds a new range for the property.
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 methodAddSubProperty(Uri)
Adds a sub-property for the property.
Public methodAddSubProperty(INode)
Adds a sub-property for the property.
Public methodAddSubProperty(OntologyProperty)
Adds a sub-property for the property.
Public methodAddSubProperty(OntologyResource)
Adds a sub-property for the property.
Public methodAddSuperProperty(Uri)
Adds a super-property for the property.
Public methodAddSuperProperty(INode)
Adds a super-property for the property.
Public methodAddSuperProperty(OntologyProperty)
Adds a super-property for the property.
Public methodAddSuperProperty(OntologyResource)
Adds a super-property for the property.
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 methodClearDomains
Clears all domains for the property.
Public methodClearEquivalentProperties
Clears all equivalent properties for this property.
Public methodClearInverseProperties
Removes all inverse properties for this property.
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 methodClearRanges
Clears all ranges for the property.
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 methodClearSubProperties
Clears all sub-properties of this property.
Public methodClearSuperProperties
Removes all super-properties of this property.
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 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.
(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 methodRemoveDomain(Uri)
Removes a domain for the property.
Public methodRemoveDomain(INode)
Removes a domain for the property.
Public methodRemoveDomain(OntologyResource)
Removes a domain for the property.
Public methodRemoveEquivalentProperty(Uri)
Removes an equivalent property for the property.
Public methodRemoveEquivalentProperty(INode)
Removes an equivalent property for the property.
Public methodRemoveEquivalentProperty(OntologyProperty)
Removes an equivalent property for the property.
Public methodRemoveEquivalentProperty(OntologyResource)
Removes an equivalent property for the property.
Public methodRemoveInverseProperty(Uri)
Removes an inverse property for the property.
Public methodRemoveInverseProperty(INode)
Removes an inverse property for the property.
Public methodRemoveInverseProperty(OntologyProperty)
Removes an inverse property for the property.
Public methodRemoveInverseProperty(OntologyResource)
Removes an inverse property for the property.
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 methodRemoveRange(Uri)
Removes a range for the property.
Public methodRemoveRange(INode)
Removes a range for the property.
Public methodRemoveRange(OntologyResource)
Removes a range for the property.
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 methodRemoveSubProperty(Uri)
Removes a sub-property for the property.
Public methodRemoveSubProperty(INode)
Removes a sub-property for the property.
Public methodRemoveSubProperty(OntologyProperty)
Removes a sub-property for the property.
Public methodRemoveSubProperty(OntologyResource)
Removes a sub-property for the property.
Public methodRemoveSuperProperty(Uri)
Removes a super-property for the property.
Public methodRemoveSuperProperty(INode)
Removes a super-property for the property.
Public methodRemoveSuperProperty(OntologyProperty)
Removes a super-property for the property.
Public methodRemoveSuperProperty(OntologyResource)
Removes a super-property for the property.
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