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 OWL AnnotationPropertyRange( 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

property_type

Attributes Documentation

property_type: ClassVar[URIRef] = rdflib.term.URIRef('http://www.w3.org/2000/01/rdf-schema#range')