From a platform, on the command line
A platform that produces data (an imaging facility, a sequencing core, a network of sensors…) can hand them to madbot, then to a repository, without anyone opening the web interface. In this track you do it with madbot-cli, the command-line client of madbot. You describe a deposit in a file: plan shows what madbot is missing, apply creates it, then sends the deposit to the repository.
| For whom | Duration | Prerequisites |
|---|---|---|
| Developers and data managers of a platform that produces data | 2h20, optional blocks included | A madbot account, an account on the Recherche Data Gouv demo, a terminal |
The scenario
Section titled “The scenario”A dataset is already published on Zenodo: a year of water quality measurements in a stream, in three CSV files and a README. It is what your platform “produced”. You will:
- install madbot-cli and link it to your madbot account;
- find out what the instance can read and where it can deposit;
- describe in a file the project and its data, read on Zenodo without copying them;
- create all of it in madbot, with one command you can run again safely;
- describe the deposit for the repository, then send it to the Recherche Data Gouv demo and get its DOI.
At the end, you leave with a file and commands that work, and you know what is left to do to plug them into your own platform.
Before you come
Section titled “Before you come”- A madbot account, created on the sign-up page of the instance. You will be asked for the ROR of your institution, its identifier in the ROR registry.
- An account on the demo instance of Recherche Data Gouv, and an API token created on that instance: menu with your name, then API Token.
- A computer with a terminal: macOS, Linux, or Windows with WSL. Install uv beforehand: it will install madbot-cli, and Python with it if needed.
- A text editor to write a YAML file.
The outline
Section titled “The outline”| Block | Duration | What you do |
|---|---|---|
| Install madbot-cli | 15 min | Install the client, create your token, check the address and the token |
| Explore the instance | 10 min | Read the plugins of the instance and what the repository asks for |
| Connect the source | 20 min | Write the deposit file, find the dataset on Zenodo, choose the files |
| Plan and apply | 15 min | See what will change, create it, and run again without creating anything twice |
| Describe the submission | 25 min | Add the submission, read the mandatory fields of the repository and fill them |
| Submit | 15 min | Check, send to the repository and get the DOI |
| Optional | 10 min | Add a file, run again, see what changes and what can no longer change |
| From your Python code, optional | 20 min | Make the same deposit with a Python script, without a deposit file, and run it again |
| Plug it into your platform | 10 min | What changes for your own data, a real repository and your tools |

