Skip to content

Commit

Permalink
add overloading for terms
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Nov 9, 2023
1 parent db48d51 commit b24b2af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyscal_rdf/network/term.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def namespace_with_prefix(self):
return namespace
else:
return self.uri

@property
def namespace_object(self):
uri_split = self.uri.split(self.delimiter)
Expand All @@ -76,4 +76,8 @@ def namespace_object(self):
return self.uri

def __repr__(self):
return str(self.name)
return str(self.name)

#overloading operators
def __eq__(self, val):
print(f'Tried eq {val}')

0 comments on commit b24b2af

Please sign in to comment.