We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a98ed commit 69e5990Copy full SHA for 69e5990
rdflib/term.py
@@ -269,6 +269,14 @@ class IdentifiedNode(Identifier):
269
270
__slots__ = ()
271
272
+ def __hash__(self) -> int:
273
+ return super().__hash__()
274
+
275
+ def __eq__(self, other: Any) -> bool:
276
+ if isinstance(other, IdentifiedNode):
277
+ return self.n3() == other.n3() # compare the N3 notation and not the string representation
278
+ return super().__eq__(other)
279
280
def n3(self, namespace_manager: NamespaceManager | None = None) -> str:
281
raise NotImplementedError()
282
0 commit comments