Informasjonsforvaltning / datacatalogtordf

A library that will map a data catalog (inkl dataset, dataservices and other dcat resources) to rdf
Apache License 2.0
5 stars 0 forks source link

Implement method for comparing equality for relevant classes #16

Closed stigbd closed 1 year ago

stigbd commented 3 years ago

e.g.

def __eq__(self, other):
    self._to_graph().isomorphic(other._to_graph())

https://rdflib.readthedocs.io/en/stable/_modules/rdflib/compare.html#isomorphic