This repository provides usage documentation and basic, unfinished Bash scripts to help eLTER data stewards and curators automate querying and downloading of unpublished dataset drafts from the eLTER Digital Asset Registry (DAR).
The USAGE.md document provides examples of queries that use curl
to create table-based reports. It also offers tips on authenticating with
session cookies or DAR access tokens.
elter-dar-query.sh is a small script to query
unpublished draft datasets using the DAR API. It has to be fed by a list
of draft dataset IDs in a file called eLTER-Data-Call-2025-Uploads.md
stored next to the script. Currently you have to edit the script to
adjust the json fields to query.
elter-dar-query.sh is a short script that queries
unpublished draft records using the DAR API. It requires a list of
draft dataset IDs in a file called eLTER-Data-Call-2025-Uploads.md,
which is stored alongside the script. Currently, the script must be edited
to adjust the JSON fields to be queried.
The elter-dar-download.sh script is designed to download multiple data files from DAR records. Currently, you must edit the script to include a list of dataset IDs at the beginning.
Add a table of contents at the beginning of the README.md file.
- Create a DAR access token and save it to .elter-dar-access-token
- Create a list of draft dataset IDs like described in USAGE.md and save it to a file
called
eLTER-Data-Call-2025-Uploads.mdin this directory. - Run elter-dar-query.sh:
$ ./elter-dar-query.sh > output.csv - Edit elter-dar-download.sh and add some data set IDs you want to download.
- Run elter-dar-download.sh:
$ ./elter-dar-download.sh
To be continued...
| Author | Affiliation | ORCID | |
|---|---|---|---|
| Martin Abbrent | Helmholtz Centre for Environmental Research - UFZ | 0000-0003-1252-9107 | martin.abbrent@ufz.de |
This project is licensed under the EUPL License - see the LICENSE file for details.
This project uses the
eLTER boilerplate README.