Show / Hide Table of Contents

Class Ontology

Represents the meta-information about an Ontology.

Inheritance
object
OntologyResource
Ontology
Inherited Members
OntologyResource._literalProperties
OntologyResource._resourceProperties
OntologyResource._resource
OntologyResource._graph
OntologyResource.Resource
OntologyResource.Graph
OntologyResource.IntialiseProperty(string, bool)
OntologyResource.AddLiteralProperty(string, ILiteralNode, bool)
OntologyResource.AddLiteralProperty(Uri, ILiteralNode, bool)
OntologyResource.AddResourceProperty(string, INode, bool)
OntologyResource.AddResourceProperty(Uri, INode, bool)
OntologyResource.ClearLiteralProperty(string, bool)
OntologyResource.ClearLiteralProperty(Uri, bool)
OntologyResource.ClearResourceProperty(string, bool)
OntologyResource.ClearResourceProperty(Uri, bool)
OntologyResource.RemoveLiteralProperty(string, ILiteralNode, bool)
OntologyResource.RemoveLiteralProperty(Uri, ILiteralNode, bool)
OntologyResource.RemoveResourceProperty(string, INode, bool)
OntologyResource.RemoveResourceProperty(Uri, INode, bool)
OntologyResource.AddComment(string)
OntologyResource.AddComment(string, string)
OntologyResource.ClearComments()
OntologyResource.RemoveComment(ILiteralNode)
OntologyResource.RemoveComment(string)
OntologyResource.RemoveComment(string, string)
OntologyResource.AddDifferentFrom(INode)
OntologyResource.AddDifferentFrom(Uri)
OntologyResource.AddDifferentFrom(OntologyResource)
OntologyResource.ClearDifferentFrom()
OntologyResource.RemoveDifferentFrom(INode)
OntologyResource.RemoveDifferentFrom(Uri)
OntologyResource.RemoveDifferentFrom(OntologyResource)
OntologyResource.AddIsDefinedBy(INode)
OntologyResource.AddIsDefinedBy(Uri)
OntologyResource.AddIsDefinedBy(OntologyResource)
OntologyResource.ClearIsDefinedBy()
OntologyResource.RemoveIsDefinedBy(INode)
OntologyResource.RemoveIsDefinedBy(Uri)
OntologyResource.RemoveIsDefinedBy(OntologyResource)
OntologyResource.AddLabel(string)
OntologyResource.AddLabel(string, string)
OntologyResource.ClearLabels()
OntologyResource.RemoveLabel(ILiteralNode)
OntologyResource.RemoveLabel(string)
OntologyResource.RemoveLabel(string, string)
OntologyResource.AddSameAs(INode)
OntologyResource.AddSameAs(Uri)
OntologyResource.AddSameAs(OntologyResource)
OntologyResource.ClearSameAs()
OntologyResource.RemoveSameAs(INode)
OntologyResource.RemoveSameAs(Uri)
OntologyResource.RemoveSameAs(OntologyResource)
OntologyResource.AddSeeAlso(INode)
OntologyResource.AddSeeAlso(Uri)
OntologyResource.AddSeeAlso(OntologyResource)
OntologyResource.ClearSeeAlso()
OntologyResource.RemoveSeeAlso(INode)
OntologyResource.RemoveSeeAlso(Uri)
OntologyResource.RemoveSeeAlso(OntologyResource)
OntologyResource.AddType(INode)
OntologyResource.AddType(Uri)
OntologyResource.AddType(OntologyResource)
OntologyResource.ClearTypes()
OntologyResource.RemoveType(INode)
OntologyResource.RemoveType(Uri)
OntologyResource.RemoveType(OntologyResource)
OntologyResource.AddVersionInfo(string)
OntologyResource.ClearVersionInfo()
OntologyResource.RemoveVersionInfo(ILiteralNode)
OntologyResource.RemoveVersionInfo(string)
OntologyResource.GetLiteralProperty(string)
OntologyResource.GetLiteralProperty(Uri)
OntologyResource.GetResourceProperty(string)
OntologyResource.GetResourceProperty(Uri)
OntologyResource.VersionInfo
OntologyResource.Comment
OntologyResource.Label
OntologyResource.SeeAlso
OntologyResource.SameAs
OntologyResource.IsDefinedBy
OntologyResource.DifferentFrom
OntologyResource.Types
OntologyResource.TriplesWithSubject
OntologyResource.TriplesWithObject
OntologyResource.TriplesWithPredicate
OntologyResource.Triples
OntologyResource.ToString()
OntologyResource.AsClass()
OntologyResource.AsProperty()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 Source

Ontology(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 Source

BackwardsCompatibleWith

Gets all the Ontologies that this Ontology is backwards compatible with.

Declaration
public IEnumerable<Ontology> BackwardsCompatibleWith { get; }
Property Value
Type Description
IEnumerable<Ontology>
| Edit this page View Source

Imports

Gets all the Ontologies that this Ontology imports.

Declaration
public IEnumerable<Ontology> Imports { get; }
Property Value
Type Description
IEnumerable<Ontology>
| Edit this page View Source

IncompatibleWith

Gets all the Ontologies that this Ontology is incompatible with.

Declaration
public IEnumerable<Ontology> IncompatibleWith { get; }
Property Value
Type Description
IEnumerable<Ontology>
| Edit this page View Source

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 Source

AddBackwardsCompatibleWith(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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

ClearBackwardsCompatibleWith()

Removes all owl:backwardsCompatibleWith triples for this Ontology.

Declaration
public bool ClearBackwardsCompatibleWith()
Returns
Type Description
bool
| Edit this page View Source

ClearImports()

Removes all owl:imports triples for this Ontology.

Declaration
public bool ClearImports()
Returns
Type Description
bool
| Edit this page View Source

ClearIncompatibleWith()

Removes all owl:incompatibleWith triples for this Ontology.

Declaration
public bool ClearIncompatibleWith()
Returns
Type Description
bool
| Edit this page View Source

ClearPriorVersions()

Removes all owl:priorVersion triples for this Ontology.

Declaration
public bool ClearPriorVersions()
Returns
Type Description
bool
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Ontology(INode, IGraph)
  • Properties
    • BackwardsCompatibleWith
    • Imports
    • IncompatibleWith
    • PriorVersions
  • Methods
    • AddBackwardsCompatibleWith(Uri)
    • AddBackwardsCompatibleWith(INode)
    • AddBackwardsCompatibleWith(OntologyResource)
    • AddImports(Uri)
    • AddImports(INode)
    • AddImports(OntologyResource)
    • AddIncompatibleWith(Uri)
    • AddIncompatibleWith(INode)
    • AddIncompatibleWith(OntologyResource)
    • AddPriorVersion(Uri)
    • AddPriorVersion(INode)
    • AddPriorVersion(OntologyResource)
    • ClearBackwardsCompatibleWith()
    • ClearImports()
    • ClearIncompatibleWith()
    • ClearPriorVersions()
    • RemoveBackwardsCompatibleWith(Uri)
    • RemoveBackwardsCompatibleWith(INode)
    • RemoveBackwardsCompatibleWith(OntologyResource)
    • RemoveImports(Uri)
    • RemoveImports(INode)
    • RemoveImports(OntologyResource)
    • RemoveIncompatibleWith(Uri)
    • RemoveIncompatibleWith(INode)
    • RemoveIncompatibleWith(OntologyResource)
    • RemovePriorVersion(Uri)
    • RemovePriorVersion(INode)
    • RemovePriorVersion(OntologyResource)
  • Extension Methods
Back to top Generated by DocFX