Skip to content

Commit

Permalink
properties are added
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Nov 15, 2024
1 parent 1018819 commit 0f03020
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions owlapy/owl_axiom.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ def __init__(self, class_expressions: List[OWLClassExpression],
annotations: Optional[Iterable['OWLAnnotation']] = None):
super().__init__(class_expressions=class_expressions, annotations=annotations)

def __iter__(self):
yield from self._class_expressions

def contains_named_equivalent_class(self) -> bool:
return any(isinstance(ce, OWLClass) for ce in self._class_expressions)

Expand Down Expand Up @@ -1259,6 +1262,14 @@ def __init__(self, property_: _P, range_: _R, annotations: Optional[Iterable[OWL
self._range = range_
super().__init__(property_=property_, annotations=annotations)

@property
def prop(self):
return self._property

@property
def range(self):
return self._range

def get_range(self) -> _R:
return self._range

Expand Down Expand Up @@ -1290,6 +1301,10 @@ def __init__(self, property_: OWLObjectPropertyExpression, domain: OWLClassExpre
annotations: Optional[Iterable[OWLAnnotation]] = None):
super().__init__(property_=property_, domain=domain, annotations=annotations)

@property
def prop(self):
return self._property


class OWLDataPropertyDomainAxiom(OWLPropertyDomainAxiom[OWLDataPropertyExpression]):
""" A data property domain axiom DataPropertyDomain( DPE CE ) states that the domain of the
Expand Down

0 comments on commit 0f03020

Please sign in to comment.