owlapy.owl_individual

OWL Individuals

Module Contents

Classes

OWLIndividual

Represents a named or anonymous individual.

OWLNamedIndividual

Named individuals are identified using an IRI. Since they are given an IRI, named individuals are entities.

class owlapy.owl_individual.OWLIndividual[source]

Bases: owlapy.owl_object.OWLObject

Represents a named or anonymous individual.

__slots__ = ()
class owlapy.owl_individual.OWLNamedIndividual(iri: owlapy.iri.IRI | str)[source]

Bases: OWLIndividual, owlapy.owl_object.OWLEntity

Named individuals are identified using an IRI. Since they are given an IRI, named individuals are entities. IRIs from the reserved vocabulary must not be used to identify named individuals in an OWL 2 DL ontology.

(https://www.w3.org/TR/owl2-syntax/#Named_Individuals)

property iri: owlapy.iri.IRI

Gets the IRI of this object.

Returns:

The IRI of this object.

property str

Gets the string representation of this object

Returns:

The IRI as string

__slots__ = '_iri'
type_index: Final = 1005