Class OntologyProperty
Class for representing a property in an Ontology.
Inheritance
System.Object
OntologyProperty
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: dotNetRDF.dll
Syntax
public class OntologyProperty : OntologyResource
Constructors
|
Improve this Doc
View Source
OntologyProperty(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. |
|
Improve this Doc
View Source
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. |
Properties
|
Improve this Doc
View Source
DirectSubProperties
Gets the direct sub-classes of this class.
Declaration
public IEnumerable<OntologyProperty> DirectSubProperties { get; }
Property Value
|
Improve this Doc
View Source
DirectSuperProperties
Gets the direct super-properties of this property.
Declaration
public IEnumerable<OntologyProperty> DirectSuperProperties { get; }
Property Value
|
Improve this Doc
View Source
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<OntologyClass> |
|
|
Improve this Doc
View Source
EquivalentProperties
Gets all the equivalent properties of this property.
Declaration
public IEnumerable<OntologyProperty> EquivalentProperties { get; }
Property Value
|
Improve this Doc
View Source
IndirectSubProperties
Gets the indirect sub-classes of this class.
Declaration
public IEnumerable<OntologyProperty> IndirectSubProperties { get; }
Property Value
|
Improve this Doc
View Source
IndirectSuperProperty
Gets the indirect super-properties of this property.
Declaration
public IEnumerable<OntologyProperty> IndirectSuperProperty { get; }
Property Value
|
Improve this Doc
View Source
InverseProperties
Gets all the inverse properties of this property.
Declaration
public IEnumerable<OntologyProperty> InverseProperties { get; }
Property Value
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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<OntologyClass> |
|
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
SubProperties
Gets the sub-properties of this property (both direct and indirect).
Declaration
public IEnumerable<OntologyProperty> SubProperties { get; }
Property Value
|
Improve this Doc
View Source
SuperProperties
Gets the super-properties of this property (both direct and indirect).
Declaration
public IEnumerable<OntologyProperty> SuperProperties { get; }
Property Value
|
Improve this Doc
View Source
UsedBy
Gets all the resources that use this property.
Declaration
public IEnumerable<OntologyResource> UsedBy { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddDomain(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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
AddDomain(OntologyResource)
Adds a new domain for the property.
Declaration
public bool AddDomain(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
AddEquivalentProperty(OntologyProperty)
Adds a new equivalent property for the property.
Declaration
public bool AddEquivalentProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddEquivalentProperty(OntologyResource)
Adds a new equivalent property for the property.
Declaration
public bool AddEquivalentProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
AddInverseProperty(OntologyProperty)
Adds an inverse property for the property.
Declaration
public bool AddInverseProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddInverseProperty(OntologyResource)
Adds an inverse property for the property.
Declaration
public bool AddInverseProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
AddRange(OntologyResource)
Adds a new range for the property.
Declaration
public bool AddRange(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
AddSubProperty(OntologyProperty)
Adds a sub-property for the property.
Declaration
public bool AddSubProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSubProperty(OntologyResource)
Adds a sub-property for the property.
Declaration
public bool AddSubProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
AddSuperProperty(OntologyProperty)
Adds a super-property for the property.
Declaration
public bool AddSuperProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSuperProperty(OntologyResource)
Adds a super-property for the property.
Declaration
public bool AddSuperProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearDomains()
Clears all domains for the property.
Declaration
public bool ClearDomains()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearEquivalentProperties()
Clears all equivalent properties for this property.
Declaration
public bool ClearEquivalentProperties()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearInverseProperties()
Removes all inverse properties for this property.
Declaration
public bool ClearInverseProperties()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearRanges()
Clears all ranges for the property.
Declaration
public bool ClearRanges()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearSubProperties()
Clears all sub-properties of this property.
Declaration
public bool ClearSubProperties()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearSuperProperties()
Removes all super-properties of this property.
Declaration
public bool ClearSuperProperties()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
RemoveDomain(OntologyResource)
Removes a domain for the property.
Declaration
public bool RemoveDomain(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
RemoveEquivalentProperty(OntologyProperty)
Removes an equivalent property for the property.
Declaration
public bool RemoveEquivalentProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveEquivalentProperty(OntologyResource)
Removes an equivalent property for the property.
Declaration
public bool RemoveEquivalentProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
RemoveInverseProperty(OntologyProperty)
Removes an inverse property for the property.
Declaration
public bool RemoveInverseProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveInverseProperty(OntologyResource)
Removes an inverse property for the property.
Declaration
public bool RemoveInverseProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
RemoveRange(OntologyResource)
Removes a range for the property.
Declaration
public bool RemoveRange(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
RemoveSubProperty(OntologyProperty)
Removes a sub-property for the property.
Declaration
public bool RemoveSubProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSubProperty(OntologyResource)
Removes a sub-property for the property.
Declaration
public bool RemoveSubProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
RemoveSuperProperty(OntologyProperty)
Removes a super-property for the property.
Declaration
public bool RemoveSuperProperty(OntologyProperty property)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSuperProperty(OntologyResource)
Removes a super-property for the property.
Declaration
public bool RemoveSuperProperty(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods