opencitations / oc_ocdm

Object mapping library for manipulating RDF graphs that are compliant with the OpenCitations datamodel.
https://opencitations.net/
ISC License
3 stars 2 forks source link

sync_with_triplestore and sync_with_rdf_file #1

Open iosonopersia opened 3 years ago

iosonopersia commented 3 years ago

A sync_with_triplestore method is contained inside the GraphSet class, but it's missing from MetadataSet. Moreover, a sync_with_rdf_file variant should be added to both classes, enabling the user to synchronize both a triplestore and an RDF file with the user's GraphSet/MetadataSet: these methods should be able to import the entities that contain a reference to an entity which is going to be deleted and should also remove those references.

_Maybe these methods should be called something like propagate_deletions_to_triplestore and propagate_deletions_to_rdf_file._

These methods should not be present inside ProvSet, since provenance entities cannot be deleted!

iosonopersia commented 3 years ago

Method sync_with_triplestore was renamed to remove_orphans_from_triplestore within the commit https://github.com/opencitations/oc_ocdm/commit/be911220810fdb8737ade1255895e6214d6d571b .