owlapy.model.OWLAnnotation¶
-
class
owlapy.model.
OWLAnnotation
(property: owlapy.model.OWLAnnotationProperty, value: owlapy.model.OWLAnnotationValue)[source]¶ Bases:
owlapy.model.OWLObject
Annotations are used in the various types of annotation axioms, which bind annotations to their subjects (i.e. axioms or declarations).
Gets an annotation
- Parameters:
property – the annotation property.
value – The annotation value.
Methods
Gets the property that this annotation acts along.
Gets the annotation value.
-
get_property
() → owlapy.model.OWLAnnotationProperty[source]¶ Gets the property that this annotation acts along.
- Returns:
The annotation property
-
get_value
() → owlapy.model.OWLAnnotationValue[source]¶ Gets the annotation value. The type of value will depend upon the type of the annotation e.g. whether the annotation is an OWLLiteral, an IRI or an OWLAnonymousIndividual.
- Returns:
The annotation value.
-
is_anonymous
() → bool¶