ObjectPropertyRange
- class ObjectPropertyRange(left, right, *, annotations=None)[source]
Bases:
_ObjectPropertyTypingAn object property axiom defined in 9.2.5 “Object Property Range”.
Consider the ontology consisting of the following axioms.
>>> # The range of the a:hasDog property is the class a:Dog. >>> ObjectPropertyRange("a:hasDog", "a:Dog") >>> ObjectPropertyAssertion("a:hasDog", "a:Peter", "a:Brian") # Brian is a dog of Peter.
By the first axiom, each individual that has an incoming
a:hasDogconnection must be an instance ofa:Dog. Therefore,a:Briancan be classified as an instance ofa:Dog; that is, this ontology entails the following assertion:>>> ClassAssertion("a:Dog", "a:Brian")
Initialize a object property domain or range.
Attributes Summary
Attributes Documentation
- Parameters:
left (ObjectPropertyExpression | IdentifierBoxOrHint)
right (ClassExpression | IdentifierBoxOrHint)
annotations (list[Annotation])