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

Reader class #3

Open iosonopersia opened 3 years ago

iosonopersia commented 3 years ago

In the Reader class, the method graph_validation only validates "graph" entities: it should validate also "prov" and "metadata" entities.

It's also missing the possibility to import not only "graph" entities but also "prov" and "metadata" entities inside a ProvSet and a MetadataSet respectively.

The Reader class should also contain methods to import entities directly from a triplestore/RDF file, instead of requiring an rdflib.Graph from the user.