owlapy.model.OWLAnnotationValue

class owlapy.model.OWLAnnotationValue

Bases: owlapy.model.OWLAnnotationObject

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

Methods

as_anonymous_individual

returns:

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

as_iri

returns:

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

as_literal

returns:

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

is_anonymous

is_literal

returns:

true if the annotation value is a literal

as_anonymous_individual()
Returns:

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

as_iri() → Optional[IRI]
Returns:

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

as_literal() → Optional[OWLLiteral][source]
Returns:

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

is_anonymous() → bool
is_literal() → bool[source]
Returns:

true if the annotation value is a literal