inveniosoftware / invenio-vocabularies

Invenio module for managing vocabularies.
https://invenio-vocabularies.readthedocs.io
MIT License
2 stars 40 forks source link

Subjects to datastreams #332

Open karkraeg opened 1 month ago

karkraeg commented 1 month ago

:heart: Thank you for your contribution!

Description

I started with what I was thinking were essential in porting subjects to datastreams. There already has been a YamlReader and a CSVReader which we will use to keep backwards compatibility to the current way of loading subjects from files. I added a SubjectsYAMLTransformer that is somehow redundant because the dict returned by the YAML reader is basically the same as what the reader returns. But it might me useful at some point I guess?

I thinks whats missing is the implementation of a writer method similar to VocabularyEntryWithSchemes in invenio-rdm-records (https://github.com/inveniosoftware/invenio-rdm-records/blob/master/invenio_rdm_records/fixtures/vocabularies.py#L383)