Class OntologyProperty
Class for representing a property in an Ontology.
Inherited Members
Namespace: VDS.RDF.Ontology
Assembly: dotNetRdf.Ontology.dll
Syntax
public class OntologyProperty : OntologyResource
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Constructors
| Improve this Doc View SourceOntologyProperty(Uri, IGraph)
Creates a new RDFS Ontology Property for the given resource in the given Graph.
Declaration
public OntologyProperty(Uri resource, IGraph graph)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
IGraph | graph | Graph. |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
OntologyProperty(INode, IGraph)
Creates a new Ontology Property for the given resource in the given Graph.
Declaration
public OntologyProperty(INode resource, IGraph graph)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
IGraph | graph | Graph. |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Properties
| Improve this Doc View SourceDirectSubProperties
Gets the direct sub-classes of this class.
Declaration
public IEnumerable<OntologyProperty> DirectSubProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
DirectSuperProperties
Gets the direct super-properties of this property.
Declaration
public IEnumerable<OntologyProperty> DirectSuperProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Domains
Gets all the Classes which are in the properties Domain.
Declaration
public IEnumerable<OntologyClass> Domains { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyClass> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
EquivalentProperties
Gets all the equivalent properties of this property.
Declaration
public IEnumerable<OntologyProperty> EquivalentProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
IndirectSubProperties
Gets the indirect sub-classes of this class.
Declaration
public IEnumerable<OntologyProperty> IndirectSubProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
IndirectSuperProperty
Gets the indirect super-properties of this property.
Declaration
public IEnumerable<OntologyProperty> IndirectSuperProperty { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
InverseProperties
Gets all the inverse properties of this property.
Declaration
public IEnumerable<OntologyProperty> InverseProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
IsBottomProperty
Gets whether this is a btoom property i.e. has no sub properties defined.
Declaration
public bool IsBottomProperty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
IsTopProperty
Gets whether this is a top property i.e. has no super properties defined.
Declaration
public bool IsTopProperty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Ranges
Gets all the Classes which are in this properties Range.
Declaration
public IEnumerable<OntologyClass> Ranges { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyClass> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Siblings
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.
Declaration
public IEnumerable<OntologyProperty> Siblings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
SubProperties
Gets the sub-properties of this property (both direct and indirect).
Declaration
public IEnumerable<OntologyProperty> SubProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
SuperProperties
Gets the super-properties of this property (both direct and indirect).
Declaration
public IEnumerable<OntologyProperty> SuperProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyProperty> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
UsedBy
Gets all the resources that use this property.
Declaration
public IEnumerable<OntologyResource> UsedBy { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OntologyResource> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Methods
| Improve this Doc View SourceAddDomain(Uri)
Adds a new domain for the property.
Declaration
public bool AddDomain(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddDomain(INode)
Adds a new domain for the property.
Declaration
public bool AddDomain(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddDomain(OntologyResource)
Adds a new domain for the property.
Declaration
public bool AddDomain(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddEquivalentProperty(Uri)
Adds a new equivalent property for the property.
Declaration
public bool AddEquivalentProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddEquivalentProperty(INode)
Adds a new equivalent property for the property.
Declaration
public bool AddEquivalentProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddEquivalentProperty(OntologyProperty)
Adds a new equivalent property for the property.
Declaration
public bool AddEquivalentProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also adds this property as an equivalent property of the given property.
AddEquivalentProperty(OntologyResource)
Adds a new equivalent property for the property.
Declaration
public bool AddEquivalentProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddInverseProperty(Uri)
Adds an inverse property for the property.
Declaration
public bool AddInverseProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddInverseProperty(INode)
Adds an inverse property for the property.
Declaration
public bool AddInverseProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddInverseProperty(OntologyProperty)
Adds an inverse property for the property.
Declaration
public bool AddInverseProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also adds this property as an inverse property of the given property.
AddInverseProperty(OntologyResource)
Adds an inverse property for the property.
Declaration
public bool AddInverseProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddRange(Uri)
Adds a new range for the property.
Declaration
public bool AddRange(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddRange(INode)
Adds a new range for the property.
Declaration
public bool AddRange(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddRange(OntologyResource)
Adds a new range for the property.
Declaration
public bool AddRange(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddSubProperty(Uri)
Adds a sub-property for the property.
Declaration
public bool AddSubProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddSubProperty(INode)
Adds a sub-property for the property.
Declaration
public bool AddSubProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddSubProperty(OntologyProperty)
Adds a sub-property for the property.
Declaration
public bool AddSubProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also adds this property as a super-property of the given property.
AddSubProperty(OntologyResource)
Adds a sub-property for the property.
Declaration
public bool AddSubProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddSuperProperty(Uri)
Adds a super-property for the property.
Declaration
public bool AddSuperProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddSuperProperty(INode)
Adds a super-property for the property.
Declaration
public bool AddSuperProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddSuperProperty(OntologyProperty)
Adds a super-property for the property.
Declaration
public bool AddSuperProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also adds this property as a sub-property of the given property.
AddSuperProperty(OntologyResource)
Adds a super-property for the property.
Declaration
public bool AddSuperProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearDomains()
Clears all domains for the property.
Declaration
public bool ClearDomains()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearEquivalentProperties()
Clears all equivalent properties for this property.
Declaration
public bool ClearEquivalentProperties()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearInverseProperties()
Removes all inverse properties for this property.
Declaration
public bool ClearInverseProperties()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearRanges()
Clears all ranges for the property.
Declaration
public bool ClearRanges()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearSubProperties()
Clears all sub-properties of this property.
Declaration
public bool ClearSubProperties()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearSuperProperties()
Removes all super-properties of this property.
Declaration
public bool ClearSuperProperties()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveDomain(Uri)
Removes a domain for the property.
Declaration
public bool RemoveDomain(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveDomain(INode)
Removes a domain for the property.
Declaration
public bool RemoveDomain(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveDomain(OntologyResource)
Removes a domain for the property.
Declaration
public bool RemoveDomain(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveEquivalentProperty(Uri)
Removes an equivalent property for the property.
Declaration
public bool RemoveEquivalentProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveEquivalentProperty(INode)
Removes an equivalent property for the property.
Declaration
public bool RemoveEquivalentProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveEquivalentProperty(OntologyProperty)
Removes an equivalent property for the property.
Declaration
public bool RemoveEquivalentProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also removes this property as an equivalent property of the given property.
RemoveEquivalentProperty(OntologyResource)
Removes an equivalent property for the property.
Declaration
public bool RemoveEquivalentProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveInverseProperty(Uri)
Removes an inverse property for the property.
Declaration
public bool RemoveInverseProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveInverseProperty(INode)
Removes an inverse property for the property.
Declaration
public bool RemoveInverseProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveInverseProperty(OntologyProperty)
Removes an inverse property for the property.
Declaration
public bool RemoveInverseProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also removes this property as an inverse property of the given property.
RemoveInverseProperty(OntologyResource)
Removes an inverse property for the property.
Declaration
public bool RemoveInverseProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveRange(Uri)
Removes a range for the property.
Declaration
public bool RemoveRange(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveRange(INode)
Removes a range for the property.
Declaration
public bool RemoveRange(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveRange(OntologyResource)
Removes a range for the property.
Declaration
public bool RemoveRange(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveSubProperty(Uri)
Removes a sub-property for the property.
Declaration
public bool RemoveSubProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveSubProperty(INode)
Removes a sub-property for the property.
Declaration
public bool RemoveSubProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveSubProperty(OntologyProperty)
Removes a sub-property for the property.
Declaration
public bool RemoveSubProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also removes this property as a super-property of the given property.
RemoveSubProperty(OntologyResource)
Removes a sub-property for the property.
Declaration
public bool RemoveSubProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveSuperProperty(Uri)
Removes a super-property for the property.
Declaration
public bool RemoveSuperProperty(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveSuperProperty(INode)
Removes a super-property for the property.
Declaration
public bool RemoveSuperProperty(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveSuperProperty(OntologyProperty)
Removes a super-property for the property.
Declaration
public bool RemoveSuperProperty(OntologyProperty property)
Parameters
Type | Name | Description |
---|---|---|
OntologyProperty | property | Property. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This overload also removes this property as a sub-property of the given property.
RemoveSuperProperty(OntologyResource)
Removes a super-property for the property.
Declaration
public bool RemoveSuperProperty(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.