ObjectIntersectionOf
- class ObjectIntersectionOf(class_expressions)[source]
Bases:
_ObjectListA class expression defined in 8.1.1 Intersection of Class Expressions.
Consider the ontology consisting of the following axioms.
>>> ClassAssertion("a:Dog", "a:Brian") # Brian is a dog. >>> ClassAssertion("a:CanTalk", "a:Brian") # Brian can talk.
The following class expression describes all dogs that can talk; furthermore,
a:Brianis classified as its instance.>>> ObjectIntersectionOf(["a:Dog", "a:CanTalk"])
Initialize the model with a list of class expressions.
Attributes Summary
Attributes Documentation
- Parameters:
class_expressions (Sequence[ClassExpression])