owlapy.owl_annotation

OWL Annotations

Module Contents

Classes

OWLAnnotationObject

A marker interface for the values (objects) of annotations.

OWLAnnotationSubject

A marker interface for annotation subjects, which can either be IRIs or anonymous individuals

OWLAnnotationValue

A marker interface for annotation values, which can either be an IRI (URI), Literal or Anonymous Individual.

class owlapy.owl_annotation.OWLAnnotationObject[source]

Bases: owlapy.owl_object.OWLObject

A marker interface for the values (objects) of annotations.

__slots__ = ()
as_iri() IRI | None[source]
Returns:

if the value is an IRI, return it. Return Mone otherwise.

as_anonymous_individual()[source]
Returns:

if the value is an anonymous, return it. Return None otherwise.

class owlapy.owl_annotation.OWLAnnotationSubject[source]

Bases: OWLAnnotationObject

A marker interface for annotation subjects, which can either be IRIs or anonymous individuals

__slots__ = ()
class owlapy.owl_annotation.OWLAnnotationValue[source]

Bases: OWLAnnotationObject

A marker interface for annotation values, which can either be an IRI (URI), Literal or Anonymous Individual.

__slots__ = ()
is_literal() bool[source]
Returns:

true if the annotation value is a literal

as_literal() OWLLiteral | None[source]
Returns:

if the value is a literal, returns it. Return None otherwise