Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill Zenodo Metadata from e.g. yaml file #96

Open
rkrug opened this issue Aug 16, 2022 · 2 comments
Open

Fill Zenodo Metadata from e.g. yaml file #96

rkrug opened this issue Aug 16, 2022 · 2 comments

Comments

@rkrug
Copy link

rkrug commented Aug 16, 2022

I can export the Zenodo Metadata into different formats using myrec$exportAs("BibTeX", filename = "myfilename"), but I did not find the opposite, i.e. import the Zenodo Metadata from a file and load it into the record, i.e. myrec$importFrom( filename = "myfilename").

  1. it would be great to have the possibility to import metadata stored in a file, e.g. one can create a template containing specific info, and add additional metadata afterwards.
  2. this would also make it possible, to edit the metadata outside R with a text editor
  3. would it be possible to add yaml as an export (and import) format, as yaml is very easy to read and edit

Thanks,

Rainer

@eblondel
Copy link
Owner

@rkrug just to clarify, the exportAs function is an extended feature from zen4R, but that is not based on the Zenodo API methods, but partly exploits the Zenodo web-site resources. Hence, the business logic used to export is not handled by zen4R, but done by Zenodo itself. Similarly, zen4R doesn't have any importing business logic to map an input format (eg. BibTeX, Dublin core XML, etc) to the Zenodo Record model. This goes a bit beyond the scope of zen4R but indeed would be a very nice feature for the future.

@eblondel eblondel added help wanted Extra attention is needed funding required labels Sep 29, 2022
@ThierryO
Copy link

Maybe the citation class from our checklist package might be relevant. Currently it reads citation meta data from bookdown yaml, a package DESCRIPTION or a README.md (assuming it follows some rules about the format). We could add a method to handle text files with as yaml format.

You can export the citation class to a .Zenodo.json file. Or use checklist::bookdown_zenodo() to upload a bookdown to Zenodo. The function is currently defunct as it was based on the old Zenodo API. I'm working on an updated version based on zen4R 0.10. I'll present it at useR!2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants