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

Function find_paths only considers files with extension '.json' and '.ttl' #12

Closed iosonopersia closed 3 years ago

iosonopersia commented 3 years ago

Function find_paths only considers files with extension '.json' and '.ttl'. See the code for reference here: https://github.com/opencitations/oc_ocdm/blob/33e4c6e24286c194058dd52aa61f1eaec03ce75f/oc_ocdm/support/support.py#L272-L275

This approach is not solid at all, since the Storer is able to export RDF files with a variety of different file extensions. Those files couldn't be found through the current implementation of find_paths. A noteworthy example is the '.nquads' extension of the provenance files.

Either another approach should be applied or the current one should be extended.