Class OntologyResource
Base class for representing a resource in an Ontology.
Inheritance
System.Object
OntologyResource
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 OntologyResource
Constructors
|
Improve this Doc
View Source
OntologyResource(Uri, IGraph)
Creates a new Ontology Resource for the given Resource in the given Graph.
Declaration
protected OntologyResource(Uri resource, IGraph graph)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
IGraph |
graph |
Graph. |
|
Improve this Doc
View Source
OntologyResource(INode, IGraph)
Creates a new Ontology Resource for the given Resource in the given Graph.
Declaration
protected OntologyResource(INode resource, IGraph graph)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
IGraph |
graph |
Graph. |
Fields
|
Improve this Doc
View Source
_graph
The Graph from which this Resource originates.
Declaration
Field Value
|
Improve this Doc
View Source
_literalProperties
Storage of Literal Properties.
Declaration
protected Dictionary<string, List<ILiteralNode>> _literalProperties
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<ILiteralNode>> |
|
|
Improve this Doc
View Source
_resource
The Node which this Resource is a wrapper around.
Declaration
protected INode _resource
Field Value
|
Improve this Doc
View Source
_resourceProperties
Storage of Resource Properties.
Declaration
protected Dictionary<string, HashSet<INode>> _resourceProperties
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.HashSet<INode>> |
|
Properties
|
Improve this Doc
View Source
Gets the Comment(s) for the Resource.
Declaration
public IEnumerable<ILiteralNode> Comment { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ILiteralNode> |
|
|
Improve this Doc
View Source
DifferentFrom
Gets the Different From(s) for the Resource.
Declaration
public IEnumerable<INode> DifferentFrom { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
Graph
Gets the Graph that this Ontology Resource is from.
Declaration
public IGraph Graph { get; }
Property Value
|
Improve this Doc
View Source
IsDefinedBy
Gets the Is Defined By(s) for the Resource.
Declaration
public IEnumerable<INode> IsDefinedBy { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
Label
Gets the Label(s) for the Resource.
Declaration
public IEnumerable<ILiteralNode> Label { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ILiteralNode> |
|
|
Improve this Doc
View Source
Resource
Gets the Resource that this Ontology Resource refers to.
Declaration
public INode Resource { get; }
Property Value
|
Improve this Doc
View Source
SameAs
Gets the Same As('s) for the Resource.
Declaration
public IEnumerable<INode> SameAs { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
SeeAlso
Gets the See Also(s) for the Resource.
Declaration
public IEnumerable<INode> SeeAlso { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
Triples
Gets all the Triples where the Resource occurs in any position.
Declaration
public IEnumerable<Triple> Triples { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
TriplesWithObject
Gets all the Triples from the Graph where the Resource occurs as the Object.
Declaration
public IEnumerable<Triple> TriplesWithObject { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
TriplesWithPredicate
Gets all the Triples from the Graph where the Resource occurs as the Predicate.
Declaration
public IEnumerable<Triple> TriplesWithPredicate { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
TriplesWithSubject
Gets all the Triples from the Graph where the Resource occurs as the Subject.
Declaration
public IEnumerable<Triple> TriplesWithSubject { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Triple> |
|
|
Improve this Doc
View Source
Types
Gets the rdf:type's for the Resource.
Declaration
public IEnumerable<INode> Types { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
VersionInfo
Gets the Version Information for the Resource.
Declaration
public IEnumerable<ILiteralNode> VersionInfo { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ILiteralNode> |
|
Methods
|
Improve this Doc
View Source
Adds a comment for this resource.
Declaration
public bool AddComment(string comment)
Parameters
Type |
Name |
Description |
System.String |
comment |
Comment. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Adds a comment in a specific language for this resource.
Declaration
public bool AddComment(string comment, string lang)
Parameters
Type |
Name |
Description |
System.String |
comment |
Comment. |
System.String |
lang |
Language. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddDifferentFrom(Uri)
Adds a new owl:differentFrom triple for the resource.
Declaration
public bool AddDifferentFrom(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddDifferentFrom(INode)
Adds a new owl:differentFrom triple for the resource.
Declaration
public bool AddDifferentFrom(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddDifferentFrom(OntologyResource)
Adds a new owl:differentFrom triple for the resource.
Declaration
public bool AddDifferentFrom(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddIsDefinedBy(Uri)
Adds a new rdfs:isDefinedBy triple for the resource.
Declaration
public bool AddIsDefinedBy(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddIsDefinedBy(INode)
Adds a new rdfs:isDefinedBy triple for the resource.
Declaration
public bool AddIsDefinedBy(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddIsDefinedBy(OntologyResource)
Adds a new rdfs:isDefinedBy triple for the resource.
Declaration
public bool AddIsDefinedBy(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddLabel(String)
Adds a label for the resource.
Declaration
public bool AddLabel(string label)
Parameters
Type |
Name |
Description |
System.String |
label |
Label. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddLabel(String, String)
Adds a label in a specific language for a resource.
Declaration
public bool AddLabel(string label, string lang)
Parameters
Type |
Name |
Description |
System.String |
label |
Label. |
System.String |
lang |
Language. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddLiteralProperty(String, ILiteralNode, Boolean)
Adds a new literal value for a property.
Declaration
public bool AddLiteralProperty(string propertyUri, ILiteralNode value, bool persist)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
ILiteralNode |
value |
Literal Value. |
System.Boolean |
persist |
Whether the new value should be added to the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddLiteralProperty(Uri, ILiteralNode, Boolean)
Adds a new literal value for a property.
Declaration
public bool AddLiteralProperty(Uri propertyUri, ILiteralNode value, bool persist)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
ILiteralNode |
value |
Literal Value. |
System.Boolean |
persist |
Whether the new value should be added to the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddResourceProperty(String, INode, Boolean)
Adds a new value for a property.
Declaration
public bool AddResourceProperty(string propertyUri, INode value, bool persist)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
INode |
value |
Literal Value. |
System.Boolean |
persist |
Whether the new value should be added to the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddResourceProperty(Uri, INode, Boolean)
Adds a new value for a property.
Declaration
public bool AddResourceProperty(Uri propertyUri, INode value, bool persist)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
INode |
value |
Literal Value. |
System.Boolean |
persist |
Whether the new value should be added to the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSameAs(Uri)
Adds a new owl:sameAs triple for the resource.
Declaration
public bool AddSameAs(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSameAs(INode)
Adds a new owl:sameAs triple for the resource.
Declaration
public bool AddSameAs(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSameAs(OntologyResource)
Adds a new owl:sameAs triple for the resource.
Declaration
public bool AddSameAs(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSeeAlso(Uri)
Adds a new rdfs:seeAlso triple for the resource.
Declaration
public bool AddSeeAlso(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSeeAlso(INode)
Adds a new rdfs:seeAlso triple for the resource.
Declaration
public bool AddSeeAlso(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddSeeAlso(OntologyResource)
Adds a new rdfs:seeAlso triple for the resource.
Declaration
public bool AddSeeAlso(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddType(Uri)
Adds a new rdf:type triple for the resource.
Declaration
public bool AddType(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddType(INode)
Adds a new rdf:type triple for the resource.
Declaration
public bool AddType(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddType(OntologyResource)
Adds a new rdf:type triple for the resource.
Declaration
public bool AddType(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AddVersionInfo(String)
Adds version information for the resource.
Declaration
public bool AddVersionInfo(string info)
Parameters
Type |
Name |
Description |
System.String |
info |
Version Information. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
AsClass()
Casts a Resource into an Ontology Class.
Declaration
public OntologyClass AsClass()
Returns
|
Improve this Doc
View Source
AsProperty()
Casts a Resource into an Ontology Property.
Declaration
public OntologyProperty AsProperty()
Returns
|
Improve this Doc
View Source
Removes all comments for this resource.
Declaration
public bool ClearComments()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearDifferentFrom()
Clears all owl:differentFrom triples for the resource.
Declaration
public bool ClearDifferentFrom()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearIsDefinedBy()
Removes all rdfs:isDefinedBy triples for the resource.
Declaration
public bool ClearIsDefinedBy()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearLabels()
Clears all labels for a resource.
Declaration
public bool ClearLabels()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearLiteralProperty(String, Boolean)
Clears all values for a Literal Property.
Declaration
public bool ClearLiteralProperty(string propertyUri, bool persist)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
System.Boolean |
persist |
Whether the removed values are removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearLiteralProperty(Uri, Boolean)
Clears all values for a Literal Property.
Declaration
public bool ClearLiteralProperty(Uri propertyUri, bool persist)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
System.Boolean |
persist |
Whether the removed values are removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearResourceProperty(String, Boolean)
Clears all values for a Resource Property.
Declaration
public bool ClearResourceProperty(string propertyUri, bool persist)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
System.Boolean |
persist |
Whether the removed values are removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearResourceProperty(Uri, Boolean)
Clears all values for a Resource Property.
Declaration
public bool ClearResourceProperty(Uri propertyUri, bool persist)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
System.Boolean |
persist |
Whether the removed values are removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearSameAs()
Removes all owl:sameAs triples for the resource.
Declaration
public bool ClearSameAs()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearSeeAlso()
Removes all rdfs:seeAlso triples for the resource.
Declaration
public bool ClearSeeAlso()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearTypes()
Removes all rdf:type triples for the resource.
Declaration
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClearVersionInfo()
Clears version information for the resource.
Declaration
public bool ClearVersionInfo()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetLiteralProperty(String)
Gets the values for a property which is restricted to literals.
Declaration
public IEnumerable<ILiteralNode> GetLiteralProperty(string propertyUri)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ILiteralNode> |
|
|
Improve this Doc
View Source
GetLiteralProperty(Uri)
Gets the values for a property which is restricted to literals.
Declaration
public IEnumerable<ILiteralNode> GetLiteralProperty(Uri propertyUri)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ILiteralNode> |
|
|
Improve this Doc
View Source
GetResourceProperty(String)
Gets the values for a property which can be any node type.
Declaration
public IEnumerable<INode> GetResourceProperty(string propertyUri)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
GetResourceProperty(Uri)
Gets the values for a property which can be any node type.
Declaration
public IEnumerable<INode> GetResourceProperty(Uri propertyUri)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<INode> |
|
|
Improve this Doc
View Source
IntialiseProperty(String, Boolean)
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.
Declaration
protected void IntialiseProperty(string propertyUri, bool requireLiteral)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
System.Boolean |
requireLiteral |
Whether only Literal values are acceptable. |
|
Improve this Doc
View Source
Removes a comment for this resource.
Declaration
public bool RemoveComment(string comment)
Parameters
Type |
Name |
Description |
System.String |
comment |
Comment. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Removes a comment in a specific language for this resource.
Declaration
public bool RemoveComment(string comment, string lang)
Parameters
Type |
Name |
Description |
System.String |
comment |
Comment. |
System.String |
lang |
Language. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Removes a comment for this resource.
Declaration
public bool RemoveComment(ILiteralNode comment)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveDifferentFrom(Uri)
Removes a owl:differentFrom triple for the resource.
Declaration
public bool RemoveDifferentFrom(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveDifferentFrom(INode)
Removes a owl:differentFrom triple for the resource.
Declaration
public bool RemoveDifferentFrom(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveDifferentFrom(OntologyResource)
Removes a owl:differentFrom triple for the resource.
Declaration
public bool RemoveDifferentFrom(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveIsDefinedBy(Uri)
Removes a rdfs:isDefinedBy triple for the resource.
Declaration
public bool RemoveIsDefinedBy(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveIsDefinedBy(INode)
Removes a rdfs:isDefinedBy triple for the resource.
Declaration
public bool RemoveIsDefinedBy(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveIsDefinedBy(OntologyResource)
Removes a rdfs:isDefinedBy triple for the resource.
Declaration
public bool RemoveIsDefinedBy(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveLabel(String)
Removes a label for a resource.
Declaration
public bool RemoveLabel(string label)
Parameters
Type |
Name |
Description |
System.String |
label |
Label. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveLabel(String, String)
Removes a label in a specific language for a resource.
Declaration
public bool RemoveLabel(string label, string lang)
Parameters
Type |
Name |
Description |
System.String |
label |
Label. |
System.String |
lang |
Language. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveLabel(ILiteralNode)
Removes a specific label for a resource.
Declaration
public bool RemoveLabel(ILiteralNode label)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveLiteralProperty(String, ILiteralNode, Boolean)
Removes a literal value for a property.
Declaration
public bool RemoveLiteralProperty(string propertyUri, ILiteralNode value, bool persist)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
ILiteralNode |
value |
Value to remove. |
System.Boolean |
persist |
Whether the removed value is removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveLiteralProperty(Uri, ILiteralNode, Boolean)
Removes a literal value for a property.
Declaration
public bool RemoveLiteralProperty(Uri propertyUri, ILiteralNode value, bool persist)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
ILiteralNode |
value |
Value to remove. |
System.Boolean |
persist |
Whether the removed value is removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveResourceProperty(String, INode, Boolean)
Removes a value for a property.
Declaration
public bool RemoveResourceProperty(string propertyUri, INode value, bool persist)
Parameters
Type |
Name |
Description |
System.String |
propertyUri |
Property URI. |
INode |
value |
Value to remove. |
System.Boolean |
persist |
Whether the removed value is removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveResourceProperty(Uri, INode, Boolean)
Removes a value for a property.
Declaration
public bool RemoveResourceProperty(Uri propertyUri, INode value, bool persist)
Parameters
Type |
Name |
Description |
System.Uri |
propertyUri |
Property URI. |
INode |
value |
Value to remove. |
System.Boolean |
persist |
Whether the removed value is removed from the Graph. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSameAs(Uri)
Removes a owl:sameAs triple for the resource.
Declaration
public bool RemoveSameAs(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSameAs(INode)
Removes a owl:sameAs triple for the resource.
Declaration
public bool RemoveSameAs(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSameAs(OntologyResource)
Removes a owl:sameAs triple for the resource.
Declaration
public bool RemoveSameAs(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSeeAlso(Uri)
Removes a rdfs:seeAlso triple for the resource.
Declaration
public bool RemoveSeeAlso(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSeeAlso(INode)
Removes a rdfs:seeAlso triple for the resource.
Declaration
public bool RemoveSeeAlso(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveSeeAlso(OntologyResource)
Removes a rdfs:seeAlso triple for the resource.
Declaration
public bool RemoveSeeAlso(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveType(Uri)
Removes a rdf:type triple for the resource.
Declaration
public bool RemoveType(Uri resource)
Parameters
Type |
Name |
Description |
System.Uri |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveType(INode)
Removes a rdf:type triple for the resource.
Declaration
public bool RemoveType(INode resource)
Parameters
Type |
Name |
Description |
INode |
resource |
Resource. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveType(OntologyResource)
Removes a rdf:type triple for the resource.
Declaration
public bool RemoveType(OntologyResource resource)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveVersionInfo(String)
Remove version information for the resource.
Declaration
public bool RemoveVersionInfo(string info)
Parameters
Type |
Name |
Description |
System.String |
info |
Version Information. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveVersionInfo(ILiteralNode)
Remove version information for the resource.
Declaration
public bool RemoveVersionInfo(ILiteralNode info)
Parameters
Type |
Name |
Description |
ILiteralNode |
info |
Version Information. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToString()
Gets the String representation of the Resource.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
|
Improve this Doc
View Source
Explicit(OntologyResource to Graph)
Casts a Resource into a Graph.
Declaration
public static explicit operator Graph(OntologyResource resource)
Parameters
Returns
Extension Methods