owlapy.util.combine_nary_expressions¶
-
owlapy.util.
combine_nary_expressions
(ce: owlapy.model.OWLClassExpression) → owlapy.model.OWLClassExpression[source]¶ -
owlapy.util.
combine_nary_expressions
(ce: owlapy.model.OWLDataRange) → owlapy.model.OWLDataRange Shortens an OWLClassExpression or OWLDataRange by combining all nested nary expressions of the same type. Operands will be sorted.
E.g. OWLObjectUnionOf(A, OWLObjectUnionOf(C, B)) -> OWLObjectUnionOf(A, B, C)