Skip to content

Commit

Permalink
fixed complement issue
Browse files Browse the repository at this point in the history
`assert A.get_object_complement_of().get_object_complement_of() == A`
holds now
  • Loading branch information
LckyLke committed Nov 20, 2024
1 parent a82f76f commit 7bc6445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions owlapy/class_expression/class_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def is_owl_thing(self) -> bool:

def get_object_complement_of(self) -> 'OWLObjectComplementOf':
# documented in parent
if isinstance(self, OWLObjectComplementOf):
return self.get_operand()
return OWLObjectComplementOf(self)

def get_nnf(self) -> 'OWLClassExpression':
Expand Down

0 comments on commit 7bc6445

Please sign in to comment.