Class Ontology
Represents the meta-information about an Ontology.
Inherited Members
Namespace: VDS.RDF.Ontology
Assembly: dotNetRdf.Ontology.dll
Syntax
public class Ontology : OntologyResource
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Constructors
| Edit this page View SourceOntology(INode, IGraph)
Creates a new Ontology for the given resource.
Declaration
public Ontology(INode resource, IGraph graph)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
IGraph | graph | Graph. |
Properties
| Edit this page View SourceBackwardsCompatibleWith
Gets all the Ontologies that this Ontology is backwards compatible with.
Declaration
public IEnumerable<Ontology> BackwardsCompatibleWith { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Ontology> |
Imports
Gets all the Ontologies that this Ontology imports.
Declaration
public IEnumerable<Ontology> Imports { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Ontology> |
IncompatibleWith
Gets all the Ontologies that this Ontology is incompatible with.
Declaration
public IEnumerable<Ontology> IncompatibleWith { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Ontology> |
PriorVersions
Gets all the Ontologies that are prior versions of this Ontology.
Declaration
public IEnumerable<Ontology> PriorVersions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Ontology> |
Methods
| Edit this page View SourceAddBackwardsCompatibleWith(Uri)
Adds a new owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool AddBackwardsCompatibleWith(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddBackwardsCompatibleWith(INode)
Adds a new owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool AddBackwardsCompatibleWith(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddBackwardsCompatibleWith(OntologyResource)
Adds a new owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool AddBackwardsCompatibleWith(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddImports(Uri)
Adds a new owl:imports triple for this Ontology.
Declaration
public bool AddImports(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddImports(INode)
Adds a new owl:imports triple for this Ontology.
Declaration
public bool AddImports(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddImports(OntologyResource)
Adds a new owl:imports triple for this Ontology.
Declaration
public bool AddImports(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddIncompatibleWith(Uri)
Adds a new owl:incompatibleWith triple for this Ontology.
Declaration
public bool AddIncompatibleWith(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddIncompatibleWith(INode)
Adds a new owl:incompatibleWith triple for this Ontology.
Declaration
public bool AddIncompatibleWith(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddIncompatibleWith(OntologyResource)
Adds a new owl:incompatibleWith triple for this Ontology.
Declaration
public bool AddIncompatibleWith(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddPriorVersion(Uri)
Adds a new owl:priorVersion triple for this Ontology.
Declaration
public bool AddPriorVersion(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddPriorVersion(INode)
Adds a new owl:priorVersion triple for this Ontology.
Declaration
public bool AddPriorVersion(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
AddPriorVersion(OntologyResource)
Adds a new owl:priorVersion triple for this Ontology.
Declaration
public bool AddPriorVersion(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
ClearBackwardsCompatibleWith()
Removes all owl:backwardsCompatibleWith triples for this Ontology.
Declaration
public bool ClearBackwardsCompatibleWith()
Returns
Type | Description |
---|---|
bool |
ClearImports()
Removes all owl:imports triples for this Ontology.
Declaration
public bool ClearImports()
Returns
Type | Description |
---|---|
bool |
ClearIncompatibleWith()
Removes all owl:incompatibleWith triples for this Ontology.
Declaration
public bool ClearIncompatibleWith()
Returns
Type | Description |
---|---|
bool |
ClearPriorVersions()
Removes all owl:priorVersion triples for this Ontology.
Declaration
public bool ClearPriorVersions()
Returns
Type | Description |
---|---|
bool |
RemoveBackwardsCompatibleWith(Uri)
Removes a owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool RemoveBackwardsCompatibleWith(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveBackwardsCompatibleWith(INode)
Removes a owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool RemoveBackwardsCompatibleWith(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveBackwardsCompatibleWith(OntologyResource)
Removes a owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool RemoveBackwardsCompatibleWith(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveImports(Uri)
Removes a owl:imports triple for this Ontology.
Declaration
public bool RemoveImports(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveImports(INode)
Removes a owl:imports triple for this Ontology.
Declaration
public bool RemoveImports(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveImports(OntologyResource)
Removes a owl:imports triple for this Ontology.
Declaration
public bool RemoveImports(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveIncompatibleWith(Uri)
Removes a owl:incompatibleWith triple for this Ontology.
Declaration
public bool RemoveIncompatibleWith(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveIncompatibleWith(INode)
Removes a owl:incompatibleWith triple for this Ontology.
Declaration
public bool RemoveIncompatibleWith(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemoveIncompatibleWith(OntologyResource)
Removes a owl:incompatibleWith triple for this Ontology.
Declaration
public bool RemoveIncompatibleWith(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemovePriorVersion(Uri)
Removes a owl:priorVersion triple for this Ontology.
Declaration
public bool RemovePriorVersion(Uri resource)
Parameters
Type | Name | Description |
---|---|---|
Uri | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemovePriorVersion(INode)
Removes a owl:priorVersion triple for this Ontology.
Declaration
public bool RemovePriorVersion(INode resource)
Parameters
Type | Name | Description |
---|---|---|
INode | resource | Resource. |
Returns
Type | Description |
---|---|
bool |
RemovePriorVersion(OntologyResource)
Removes a owl:priorVersion triple for this Ontology.
Declaration
public bool RemovePriorVersion(OntologyResource resource)
Parameters
Type | Name | Description |
---|---|---|
OntologyResource | resource | Resource. |
Returns
Type | Description |
---|---|
bool |