ObjectUnionOf
- class ObjectUnionOf(class_expressions: Sequence[ClassExpression | URIRef | Reference | Referenced | str | IdentifierBox])[source]
Bases:
_ObjectList
A 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:Man
ora:Woman
; furthermore, botha:Peter
anda:Lois
are classified as its instances:>>> ObjectUnionOf(["a:Man", "a:Woman"])
Initialize the model with a list of class expressions.
Attributes Summary
Attributes Documentation