-
Notifications
You must be signed in to change notification settings - Fork 136
Description
PyLD contains implementations for a couple of RDF dataset canonicalization algorithms from back when this was part of the JSON-LD work, as pointed out by @davidlehn in #190. Since then, this standardization work has moved to the Credentials Community Group, which then evolved into the rdf-canon Working Group. Eventually, this led to the RDF Dataset Canonicalization w3c recommendation.
All of this produced three algorithms:
- URDNA2012 implemented at
Line 6073 in 58ea0ea
class URGNA2012(URDNA2015): - URDNA2015 implmented at
Line 5649 in 58ea0ea
class URDNA2015(object): - RDFC-1.0 which is still to be implemented, but only deviates slightly from
URDNA2015.
There have been some discussions/efforts (#182) on whether this should move elsewhere. RDF Dataset Canonicalization has a broader use and could therefore benefit from being a repository of its own; the PyLD code would be more focused. Digitalbazaar actually already did this for its JS counterpart. This would also highly benefit RDFLib, which does not have a RDFC-1.0 implementation, but already provides methods to compare graphs.
In light of this library eventually moving to the RDFlib ecosystem, I propose that maybe this functionality moves first?
A possible path forward would be:
- Preparing a PR isolating the implementation and tests in a separate module (I can do this)
- Adding the RDFC-1.0 implementation and test-suite (I can try this, but maybe with help of the broader RDFLib community)
- Copying this part of the code to a RDFLib based repo and publish the package on pypi
- Replacing the code with the new dependency
(CC @davidlehn @BigBlueHat @nicholascar @edmondchuc @anatoly-scherbakov )