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?
: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 aCSVReader
which we will use to keep backwards compatibility to the current way of loading subjects from files. I added aSubjectsYAMLTransformer
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)