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
| Improve this Doc 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. |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Properties
| Improve this Doc View SourceBackwardsCompatibleWith
Gets all the Ontologies that this Ontology is backwards compatible with.
Declaration
public IEnumerable<Ontology> BackwardsCompatibleWith { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><Ontology> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Imports
Gets all the Ontologies that this Ontology imports.
Declaration
public IEnumerable<Ontology> Imports { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><Ontology> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
IncompatibleWith
Gets all the Ontologies that this Ontology is incompatible with.
Declaration
public IEnumerable<Ontology> IncompatibleWith { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><Ontology> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
PriorVersions
Gets all the Ontologies that are prior versions of this Ontology.
Declaration
public IEnumerable<Ontology> PriorVersions { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><Ontology> |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
Methods
| Improve this Doc View SourceAddBackwardsCompatibleWith(Uri)
Adds a new owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool AddBackwardsCompatibleWith(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddImports(Uri)
Adds a new owl:imports triple for this Ontology.
Declaration
public bool AddImports(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddIncompatibleWith(Uri)
Adds a new owl:incompatibleWith triple for this Ontology.
Declaration
public bool AddIncompatibleWith(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
AddPriorVersion(Uri)
Adds a new owl:priorVersion triple for this Ontology.
Declaration
public bool AddPriorVersion(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearBackwardsCompatibleWith()
Removes all owl:backwardsCompatibleWith triples for this Ontology.
Declaration
public bool ClearBackwardsCompatibleWith()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearImports()
Removes all owl:imports triples for this Ontology.
Declaration
public bool ClearImports()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearIncompatibleWith()
Removes all owl:incompatibleWith triples for this Ontology.
Declaration
public bool ClearIncompatibleWith()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
ClearPriorVersions()
Removes all owl:priorVersion triples for this Ontology.
Declaration
public bool ClearPriorVersions()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveBackwardsCompatibleWith(Uri)
Removes a owl:backwardsCompatibleWith triple for this Ontology.
Declaration
public bool RemoveBackwardsCompatibleWith(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveImports(Uri)
Removes a owl:imports triple for this Ontology.
Declaration
public bool RemoveImports(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemoveIncompatibleWith(Uri)
Removes a owl:incompatibleWith triple for this Ontology.
Declaration
public bool RemoveIncompatibleWith(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
RemovePriorVersion(Uri)
Removes a owl:priorVersion triple for this Ontology.
Declaration
public bool RemovePriorVersion(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.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.
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 |
|---|---|
| System.Boolean |
Remarks
See Using the Ontology API for some informal documentation on the use of the Ontology namespace.