As part of the LD4L Labs project we want a continuous integration environment for conversion of MARC21 bibliographic records into BIBFRAME or LD4L Ontology RDF data. To test against hand-crafted test cases we want an RDF comparison that will handle isomorphism of graphs both with bnodes and with certain other URIs that may be generated in conversion where the exact URI isn't known. It thus seems best to treat some generated URIs like bnodes for testing. This problem could be handled using a two stage process: URI -> bnode conversion for certain patterns, then graph comparison accounting for bnodes (isomorphism). Combining these two stages to keep track of id changes has the promise of more useful debugging information.
- [https://www.w3.org/2001/sw/wiki/How_to_diff_RDF]
- [https://groups.google.com/forum/#!topic/thosch/SR902daW0LI]
- [https://sourceforge.net/projects/knobot/files/rdf-utils/]
- [http://rdflib3.readthedocs.io/en/latest/apidocs/rdflib.html#module-rdflib.compare]
- LD4L RDF
diff
Use Case in detail with examples usingrdfdiffb.py
- Beware old versions of rdflib (<4.2.0) -- upgrade!