iRODS-Dataverse
This is an implementation for programmatically creating a draft dataset publication from data stored in iRODS into a configured Dataverse installation. The final submission of the dataset takes place in the Dataverse installation itself, since additional steps may be required (e.g. submit dataset to review).
Prerequisites
-
Being an iRODS user with data in an iRODS zone.
-
Have a Dataverse account, in one of the configured installations (currently Demo, RDR or RDR-pilot).
- Sign up with individual account.
- Get the API Token which is valid for a certain amount of time (e.g. in Demo the API Token is valid for one year)
-
Set up the virtual environment:
python -m venv venv source venv/bin/activate pip install irods2dataverse
When the process is finished, deactivate the virtual environment:
deactivate
User script
After installing the package in the virtual environment start the process:
python -m irods2dataverse.userScript
This will trigger an interactive terminal that will take you through the following steps:
-
Authenticate to iRODS. For KU Leuven users this happens automatically by reading your local
irods_environment.json. -
Identify the data object(s) to send to Dataverse. There are two possibilities:
- Tag the data objects with metadata attribute
dv.publicationand valueinitiated. - Provide the absolute path(s) of the data object(s) to be sent to Dataverse. The input paths refer either to a single data object
/zone/home/collection/file, or a list of objects["/zone/home/collection/file_1", "/zone/home/collection/file_2"].
-
Identify the target Dataverse installation. The script goes through the selected data object(s) and retrieves the metadata field
dv.installation. If it is not valid or missing, input it from a selection. -
Authenticate to the Dataverse installation. The script will ask you to input your API Token.
-
Gather the metadata needed to create a draft in the selected Dataverse installation. There are three possibilities:
-
(For ManGO users) Use a metadata schema: The schema can be used to add the metadata to any object of the list. One object suffices.
-
Provide the metadata via the CLI: The script asks to provide the value for each required metadata field.
-
Fill in a JSON and provide the path to the file: Copy the metadata template of the selected Dataverse installation, e.g. Demo template and fill it in. Alternatively, create a shorter JSON file with the minimal metadata. For example, the text below shows the contents of the short JSON file, with metadata for the Demo installation:
{ "author": { "authorAffiliation": "My university", "authorName": "Surname, Given Name" }, "datasetContact": { "datasetContactEmail": "username@domain.edu", "datasetContactName": "Surname, Given Name" }, "dsDescription": [ { "dsDescriptionValue": "This is the first dataset I send from iRODS" } ], "subject": [ "Demo Only" ], "title": "My dataset" }
For RDR, the short JSON file would have, for example, the following contents:
{ "access": { "accessRights": "open", "dateAvailable": "", "legitimateOptout": "other" }, "author": [ { "authorAffiliation": "My university", "authorName": "Surname, Given Name" } ], "datasetContact": [ { "datasetContactEmail": "username@domain.edu", "datasetContactName": "Surname, Given Name" } ], "dsDescription": [ { "dsDescriptionValue": "This is the first dataset I send from iRODS" } ], "keyword": [ { "keywordValue": "required-keyword" } ], "technicalFormat": "json", "title": "My dataset" }
To work with the short JSON file, copy the text above and adapt the values into a text file.
Note: For the RDR long template, when the access rights are open, omit the fields regarding available date and legitimate opt-out.
-
The script validates the metadata.
-
The script deposits the draft with its metadata in the selected Dataverse installation. The data objects are directly uploaded to S3 without download.
-
The script updates the metadata of the data objects send to Dataverse with the DOI provided by Dataverse.
Configuring another Dataverse installation
If you want to configure this script to work with other Dataverse installations, look at the custom classes or contact us.
Metadata
Release files for irods2dataverse 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| irods2dataverse-0.0.4.tar.gz | 23.4 kB | With provenance | Details for irods2dataverse-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| irods2dataverse-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for irods2dataverse-0.0.4-py3-none-any.whl |
Total release size: 46.4 kB
Release files / irods2dataverse-0.0.4.tar.gz
| Download URL | irods2dataverse-0.0.4.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
262b26549e07b14316ea501a1d50d49267de2f0c781b974d07182b63d6d12350
|
|
BLAKE2b-256 checksum How to use checksums |
33d218711c25812bdd424ffedf6298a14926d18ed0ce4c83cc80f84303f0e3d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 6, 2025.
Transparency logRelease files / irods2dataverse-0.0.4-py3-none-any.whl
| Download URL | irods2dataverse-0.0.4-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
913e32f610162b21b267e3793fbeebb23fce063686241341262bd20bdb9ea148
|
|
BLAKE2b-256 checksum How to use checksums |
7d4eb78b876c725cc7c9dcef4fd769ff1a80e325f9625feccda909f301ec3d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 6, 2025.
Transparency logSecurity for irods2dataverse 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for irods2dataverse-0.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 6, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.