owlapy.model.OWLAnnotationAssertionAxiom

class owlapy.model.OWLAnnotationAssertionAxiom(subject: owlapy.model.OWLAnnotationSubject, annotation: owlapy.model.OWLAnnotation)[source]

Bases: owlapy.model.OWLAnnotationAxiom

Represents AnnotationAssertion axioms in the OWL 2 specification.

Get an annotation assertion axiom - with annotations

Parameters:
  • subject – subject

  • annotation – annotation

Methods

annotations

get_property

Gets the property.

get_subject

Gets the subject of this object.

get_value

Gets the annotation value.

is_annotated

is_annotation_axiom

is_anonymous

is_logical_axiom

annotations()Optional[List[owlapy.model.OWLAnnotation]]
get_property()owlapy.model.OWLAnnotationProperty[source]

Gets the property.

Returns:

The property.

get_subject()owlapy.model.OWLAnnotationSubject[source]

Gets the subject of this object.

Returns:

The subject

get_value()owlapy.model.OWLAnnotationValue[source]

Gets the annotation value. This is either an IRI, an OWLAnonymousIndividual or an OWLLiteral.

Returns:

The annotation value.

is_annotated()bool
is_annotation_axiom()bool
is_anonymous()bool
is_logical_axiom()bool