OntologyResource Class |
Namespace: VDS.RDF.Ontology
The OntologyResource type exposes the following members.
| Name | Description | |
|---|---|---|
| OntologyResource(Uri, IGraph) |
Creates a new Ontology Resource for the given Resource in the given Graph.
| |
| OntologyResource(INode, IGraph) |
Creates a new Ontology Resource for the given Resource in the given Graph.
|
| Name | Description | |
|---|---|---|
| Comment |
Gets the Comment(s) for the Resource.
| |
| DifferentFrom |
Gets the Different From(s) for the Resource.
| |
| Graph |
Gets the Graph that this Ontology Resource is from.
| |
| IsDefinedBy |
Gets the Is Defined By(s) for the Resource.
| |
| Label |
Gets the Label(s) for the Resource.
| |
| Resource |
Gets the Resource that this Ontology Resource refers to.
| |
| SameAs |
Gets the Same As('s) for the Resource.
| |
| SeeAlso |
Gets the See Also(s) for the Resource.
| |
| Triples |
Gets all the Triples where the Resource occurs in any position.
| |
| TriplesWithObject |
Gets all the Triples from the Graph where the Resource occurs as the Object.
| |
| TriplesWithPredicate |
Gets all the Triples from the Graph where the Resource occurs as the Predicate.
| |
| TriplesWithSubject |
Gets all the Triples from the Graph where the Resource occurs as the Subject.
| |
| Types |
Gets the rdf:type's for the Resource.
| |
| VersionInfo |
Gets the Version Information for the Resource.
|
| Name | Description | |
|---|---|---|
| AddComment(String) |
Adds a comment for this resource.
| |
| AddComment(String, String) |
Adds a comment in a specific language for this resource.
| |
| AddDifferentFrom(Uri) |
Adds a new owl:differentFrom triple for the resource.
| |
| AddDifferentFrom(INode) |
Adds a new owl:differentFrom triple for the resource.
| |
| AddDifferentFrom(OntologyResource) |
Adds a new owl:differentFrom triple for the resource.
| |
| AddIsDefinedBy(Uri) |
Adds a new rdfs:isDefinedBy triple for the resource.
| |
| AddIsDefinedBy(INode) |
Adds a new rdfs:isDefinedBy triple for the resource.
| |
| AddIsDefinedBy(OntologyResource) |
Adds a new rdfs:isDefinedBy triple for the resource.
| |
| AddLabel(String) |
Adds a label for the resource.
| |
| AddLabel(String, String) |
Adds a label in a specific language for a resource.
| |
| AddLiteralProperty(String, ILiteralNode, Boolean) |
Adds a new literal value for a property.
| |
| AddLiteralProperty(Uri, ILiteralNode, Boolean) |
Adds a new literal value for a property.
| |
| AddResourceProperty(String, INode, Boolean) |
Adds a new value for a property.
| |
| AddResourceProperty(Uri, INode, Boolean) |
Adds a new value for a property.
| |
| AddSameAs(Uri) |
Adds a new owl:sameAs triple for the resource.
| |
| AddSameAs(INode) |
Adds a new owl:sameAs triple for the resource.
| |
| AddSameAs(OntologyResource) |
Adds a new owl:sameAs triple for the resource.
| |
| AddSeeAlso(Uri) |
Adds a new rdfs:seeAlso triple for the resource.
| |
| AddSeeAlso(INode) |
Adds a new rdfs:seeAlso triple for the resource.
| |
| AddSeeAlso(OntologyResource) |
Adds a new rdfs:seeAlso triple for the resource.
| |
| AddType(Uri) |
Adds a new rdf:type triple for the resource.
| |
| AddType(INode) |
Adds a new rdf:type triple for the resource.
| |
| AddType(OntologyResource) |
Adds a new rdf:type triple for the resource.
| |
| AddVersionInfo |
Adds version information for the resource.
| |
| AsClass |
Casts a Resource into an Ontology Class.
| |
| AsProperty |
Casts a Resource into an Ontology Property.
| |
| ClearComments |
Removes all comments for this resource.
| |
| ClearDifferentFrom |
Clears all owl:differentFrom triples for the resource.
| |
| ClearIsDefinedBy |
Removes all rdfs:isDefinedBy triples for the resource.
| |
| ClearLabels |
Clears all labels for a resource.
| |
| ClearLiteralProperty(String, Boolean) |
Clears all values for a Literal Property.
| |
| ClearLiteralProperty(Uri, Boolean) |
Clears all values for a Literal Property.
| |
| ClearResourceProperty(String, Boolean) |
Clears all values for a Resource Property.
| |
| ClearResourceProperty(Uri, Boolean) |
Clears all values for a Resource Property.
| |
| ClearSameAs |
Removes all owl:sameAs triples for the resource.
| |
| ClearSeeAlso |
Removes all rdfs:seeAlso triples for the resource.
| |
| ClearTypes |
Removes all rdf:type triples for the resource.
| |
| ClearVersionInfo |
Clears version information for the resource.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetLiteralProperty(String) |
Gets the values for a property which is restricted to literals.
| |
| GetLiteralProperty(Uri) |
Gets the values for a property which is restricted to literals.
| |
| GetResourceProperty(String) |
Gets the values for a property which can be any node type.
| |
| GetResourceProperty(Uri) |
Gets the values for a property which can be any node type.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IntialiseProperty |
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.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RemoveComment(String) |
Removes a comment for this resource.
| |
| RemoveComment(ILiteralNode) |
Removes a comment for this resource.
| |
| RemoveComment(String, String) |
Removes a comment in a specific language for this resource.
| |
| RemoveDifferentFrom(Uri) |
Removes a owl:differentFrom triple for the resource.
| |
| RemoveDifferentFrom(INode) |
Removes a owl:differentFrom triple for the resource.
| |
| RemoveDifferentFrom(OntologyResource) |
Removes a owl:differentFrom triple for the resource.
| |
| RemoveIsDefinedBy(Uri) |
Removes a rdfs:isDefinedBy triple for the resource.
| |
| RemoveIsDefinedBy(INode) |
Removes a rdfs:isDefinedBy triple for the resource.
| |
| RemoveIsDefinedBy(OntologyResource) |
Removes a rdfs:isDefinedBy triple for the resource.
| |
| RemoveLabel(String) |
Removes a label for a resource.
| |
| RemoveLabel(ILiteralNode) |
Removes a specific label for a resource.
| |
| RemoveLabel(String, String) |
Removes a label in a specific language for a resource.
| |
| RemoveLiteralProperty(String, ILiteralNode, Boolean) |
Removes a literal value for a property.
| |
| RemoveLiteralProperty(Uri, ILiteralNode, Boolean) |
Removes a literal value for a property.
| |
| RemoveResourceProperty(String, INode, Boolean) |
Removes a value for a property.
| |
| RemoveResourceProperty(Uri, INode, Boolean) |
Removes a value for a property.
| |
| RemoveSameAs(Uri) |
Removes a owl:sameAs triple for the resource.
| |
| RemoveSameAs(INode) |
Removes a owl:sameAs triple for the resource.
| |
| RemoveSameAs(OntologyResource) |
Removes a owl:sameAs triple for the resource.
| |
| RemoveSeeAlso(Uri) |
Removes a rdfs:seeAlso triple for the resource.
| |
| RemoveSeeAlso(INode) |
Removes a rdfs:seeAlso triple for the resource.
| |
| RemoveSeeAlso(OntologyResource) |
Removes a rdfs:seeAlso triple for the resource.
| |
| RemoveType(Uri) |
Removes a rdf:type triple for the resource.
| |
| RemoveType(INode) |
Removes a rdf:type triple for the resource.
| |
| RemoveType(OntologyResource) |
Removes a rdf:type triple for the resource.
| |
| RemoveVersionInfo(String) |
Remove version information for the resource.
| |
| RemoveVersionInfo(ILiteralNode) |
Remove version information for the resource.
| |
| ToString |
Gets the String representation of the Resource.
(Overrides ObjectToString.) |
| Name | Description | |
|---|---|---|
| (OntologyResource to Graph) |
Casts a Resource into a Graph.
|
| Name | Description | |
|---|---|---|
| _graph |
The Graph from which this Resource originates.
| |
| _literalProperties |
Storage of Literal Properties.
| |
| _resource |
The Node which this Resource is a wrapper around.
| |
| _resourceProperties |
Storage of Resource Properties.
|
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.