AnnotationPropertyRange
- class AnnotationPropertyRange(annotation_property: URIRef | Reference | Referenced | str | IdentifierBox, value: URIRef | Reference | Referenced | str | IdentifierBox | LiteralBox | Literal | int | float | bool | date | datetime | OBOLiteral, *, annotations: list[Annotation] | None = None)[source]
Bases:
AnnotationPropertyTypingAxiom
An annotation axiom defined in 10.2.4 Annotation Property Range.
For example, the range of all
rdfs:label
should be a string. This can be represented as with the functional OWLAnnotationPropertyRange( rdfs:label xsd:string )
, or in Python like the following:Using
rdflib
namespaces:>>> 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