inveniosoftware / invenio-vocabularies

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

fix: awards full OpenAIRE project transformer #325

Closed ptamarit closed 1 month ago

ptamarit commented 1 month ago

:heart: Thank you for your contribution!

Description

Partially fixes #324

What does it fix

The pull request fixes two problems when processing the projects from the full OpenAIRE Graph Dataset:

  1. The identifiers do no have the 40| prefix and cause an IndexError: list index out of range
  2. Some projects do not have a title and cause a KeyError: 'title'

How to reproduce the problem

  1. Go to the "OpenAIRE Graph Dataset" record: https://zenodo.org/records/10488385
  2. Download project.tar
  3. On an InvenioRDM instance, run:
    invenio-cli shell
    invenio vocabularies convert -v awards -o project.tar -t awards.yaml

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.