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

Export DH record to InvenioRDM record #752

Closed
15 tasks done
fenekku opened this issue Jul 31, 2020 · 2 comments
Closed
15 tasks done

Export DH record to InvenioRDM record #752

fenekku opened this issue Jul 31, 2020 · 2 comments
Labels
Epic invenioRDM Migration/switch related work Migration Issues for DH to InvenioRDM migration

Comments

@fenekku
Copy link
Collaborator

fenekku commented Jul 31, 2020

Task

Edited Feb 10 2021

This is the epic for the export of a DH record as a whole to an InvenioRDM importable record.

Concretely, it means

1- generating the JSON for creation of a draft:

2- generating the separate JSON for upload of the file associated with the record. In DH each record has a single file.

3- Connecting those 2 JSONs with the actual binary file.

  • possible avenues include: nested folders (beware of filesystem limitations) or additional ersatz JSON connecting them together,
  • At end of day, importer must be able to connect content of 1- and 2- with appropriate file path. That's what is important.

Subtasks:

1- Subtasks

2- Subtasks

Additional helpful context

Example shape of full record metadata in here: https://github.com/inveniosoftware/invenio-rdm-records/blob/master/tests/conftest.py

metadata field schema: https://github.com/inveniosoftware/invenio-rdm-records/blob/master/invenio_rdm_records/marshmallow/json.py

Some of the data input are obviously impossible to generate yet (e.g. user id, which is something we have to solve on our side anyway). Adding a field:

"imported_owners": [
  {
    "netid": "...",
    "email": "...",
  },
  ...
]

in the "tie-ing up together JSON" or other should be enough. And is marked as subtask: #753

@saragon02
Copy link
Collaborator

For reference: InvenioRDM metadata fields mapped to DigitalHub fields: https://northwestern.box.com/s/1e1ogwnz4vrh7upmrlfuf3nk4vw1ap64

@sharpattack
Copy link
Collaborator

Depends on #764

@sharpattack sharpattack added the invenioRDM Migration/switch related work label Aug 14, 2020
@fenekku fenekku changed the title Convert each DH file record into InvenioRDM compatible JSON Export DH record to InvenioRDM record Feb 10, 2021
@fenekku fenekku added the Epic label Feb 10, 2021
@sharpattack sharpattack added the Migration Issues for DH to InvenioRDM migration label Nov 3, 2021
@fenekku fenekku closed this as completed Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic invenioRDM Migration/switch related work Migration Issues for DH to InvenioRDM migration
Projects
None yet
Development

No branches or pull requests

3 participants