Skip to content

Commit

Permalink
__repr__ of IRI updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Sep 16, 2024
1 parent b5fd7f1 commit d7cacf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owlapy/iri.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class IRI(OWLAnnotationSubject, OWLAnnotationValue, metaclass=_meta_IRI):
_namespace: str
_remainder: str

def __init__(self, namespace: Union[str, Namespaces], remainder: str):
def __init__(self, namespace: Union[str, Namespaces], remainder: str=""):
if isinstance(namespace, Namespaces):
namespace = namespace.ns
else:
Expand Down Expand Up @@ -89,7 +89,7 @@ def create(string, remainder=None) -> 'IRI':
return IRI(string[0:index], string[index:])

def __repr__(self):
return f"IRI(namespace:{repr(self._namespace)}, reminder:{repr(self._remainder)})"
return f"IRI({repr(self._namespace)}, {repr(self._remainder)})"

def __eq__(self, other):
if type(other) is type(self):
Expand Down

0 comments on commit d7cacf2

Please sign in to comment.