ObjectUnionOf
- class ObjectUnionOf(class_expressions)[source]
Bases:
_ObjectListA class expression defined in 8.1.2 Union of Class Expressions.
Consider the ontology consisting of the following axioms.
>>> ClassAssertion("a:Man", "a:Peter") # Peter is a man. >>> ClassAssertion("a:Woman", "a:Lois") # Lois is a woman.
The following class expression describes all individuals that are instances of either
a:Manora:Woman; furthermore, botha:Peteranda:Loisare classified as its instances:>>> ObjectUnionOf(["a:Man", "a:Woman"])
Initialize the model with a list of class expressions.
Attributes Summary
Attributes Documentation
- Parameters:
class_expressions (Sequence[ClassExpression])