AnnotationPropertyRange
- class AnnotationPropertyRange(annotation_property, value, *, annotations=None)[source]
Bases:
AnnotationPropertyTypingAxiomAn annotation axiom defined in 10.2.4 Annotation Property Range.
For example, the range of all
rdfs:labelshould be a string. This can be represented as with the functional OWLAnnotationPropertyRange( rdfs:label xsd:string ), or in Python like the following:Using
rdflibnamespaces:>>> from rdflib import RDFS, XSD >>> AnnotationPropertyRange(RDFS.label, XSD.string)
Using a string:
>>> AnnotationPropertyRange("rdfs:label", "xsd:string")
Initialize an annotation property range or domain axiom.
Attributes Summary
Attributes Documentation
- Parameters:
annotation_property (AnnotationProperty)
value (LiteralBox | IdentifierBox)
annotations (list[Annotation])