Show / Hide Table of Contents

Class Individual

Represents an Individual i.e. an instance of some class in an ontology.

Inheritance
System.Object
OntologyResource
Individual
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 Individual : OntologyResource
Remarks

See Using the Ontology API for some informal documentation on the use of the Ontology namespace.

Constructors

| Improve this Doc View Source

Individual(INode, IGraph)

Gets an Individual from the Graph.

Declaration
public Individual(INode resource, IGraph graph)
Parameters
Type Name Description
INode resource

Resource that represents the Individual.

IGraph graph

Graph the Individual is in.

Remarks

Requires that an individual (a resource which is the subject of at least one triple where the predicate is rdf:type) is already present in the Graph.

| Improve this Doc View Source

Individual(INode, INode, IGraph)

Gets/Creates an Individual from the Graph.

Declaration
public Individual(INode resource, INode resourceClass, IGraph graph)
Parameters
Type Name Description
INode resource

Resource that represents the Individual.

INode resourceClass

Class to create/add the Individual to.

IGraph graph

Graph the Individual is in.

Remarks

Allows for creating new Individuals in the Graph or adding existing resources to another Class. If the resource for the Individual or the given Class are new then they will be added to the Graph.

Properties

| Improve this Doc View Source

Classes

Gets all the Classes that this resource belongs to.

Declaration
public IEnumerable<OntologyClass> Classes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><OntologyClass>
Remarks

See Using the Ontology API for some informal documentation on the use of the Ontology namespace.

Methods

| Improve this Doc View Source

HasClass(Uri)

Gets whether the Individual belongs to a class identified by the given URI.

Declaration
public bool HasClass(Uri @class)
Parameters
Type Name Description
System.Uri class

Class URI.

Returns
Type Description
System.Boolean
Remarks

See Using the Ontology API for some informal documentation on the use of the Ontology namespace.

| Improve this Doc View Source

HasClass(INode)

Gets whether the Individual belongs to a class identified by the given resource.

Declaration
public bool HasClass(INode @class)
Parameters
Type Name Description
INode class

Class.

Returns
Type Description
System.Boolean
Remarks

See Using the Ontology API for some informal documentation on the use of the Ontology namespace.

| Improve this Doc View Source

HasClass(OntologyClass)

Gets whether the Individual belongs to a specific class.

Declaration
public bool HasClass(OntologyClass @class)
Parameters
Type Name Description
OntologyClass class

Class.

Returns
Type Description
System.Boolean
Remarks

See Using the Ontology API for some informal documentation on the use of the Ontology namespace.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • Individual(INode, IGraph)
    • Individual(INode, INode, IGraph)
  • Properties
    • Classes
  • Methods
    • HasClass(Uri)
    • HasClass(INode)
    • HasClass(OntologyClass)
  • Extension Methods
Back to top Generated by DocFX