o2r-project / o2r-meta

Metadata toolsuite for an extract-map-validate workflow supporting reproducible research
Apache License 2.0
2 stars 3 forks source link

Extract licenses from erc.yml #90

Closed nuest closed 6 years ago

nuest commented 6 years ago

When loading a complete ERC in the reproducibility service, the licenses (our own structure, see ERC spec) must be extracted from erc.yml.

See also https://github.com/o2r-project/o2r-muncher/issues/91

@7048730 I'd be grateful if you could outline the steps to add another parser in the README, I'd be happy to give it a go to implement it.

ghost commented 6 years ago

@nuest good idea, I will describe how to do it soon

edit: although there is already a yaml parser, you might want to add a new one, ready to deal with the erc.yml or every kind of license information. Note that the current yml parser parse_yaml.py has no given formats. That means it will ignore .yml or .yaml files that the extractor encounters. This is because we currently only need to process the yaml header in the .rmd files. So in order to have a clean seperation, just add a new parser. I can also do it, if you don't want to continue at some point.