Skip to content

Answer key

The depot.yaml file expected at the end of each block. A participant who falls behind takes the one of the block the room is at: apply creates what is missing, without creating anything twice.

In the contact, each participant puts their own name, institution and address. The author comes from their madbot profile: it is not in the file.

version: 1
workspace: madbot CLI workshop
sources:
zenodo:
plugin: zenodo
shared_params:
url: https://zenodo.org/
nodes:
- title: Stream water quality
description: A year of water quality measurements in a stream, read on Zenodo.
data:
- source: zenodo
browse:
path: [24343971]
names: [README.md, stations.csv, mesures.csv]

Before the first plan, a browse … --connect created the workspace and the connection to Zenodo. Without it, plan announces their creation, and apply creates them.

The block “Plan and apply” does not change the file.

End of the block “Describe the submission”

Section titled “End of the block “Describe the submission””

With, in the terminal:

Fenêtre de terminal
export RECHERCHE_DATA_GOUV_CREDENTIALS='{"token": "<token of the demo>"}'
version: 1
workspace: madbot CLI workshop
sources:
zenodo:
plugin: zenodo
shared_params:
url: https://zenodo.org/
nodes:
- title: Stream water quality
description: A year of water quality measurements in a stream, read on Zenodo.
data:
- source: zenodo
browse:
path: [24343971]
names: [README.md, stations.csv, mesures.csv]
submissions:
- title: Stream water quality
repository:
plugin: recherche_data_gouv
shared_params:
url: https://demo.recherche.data.gouv.fr
credentials_env: RECHERCHE_DATA_GOUV_CREDENTIALS
settings:
target_collection: tp
metadata_language: en
access_condition: {"access_condition": "open", "license": {"name": "etalab 2.0", "uri": "https://spdx.org/licenses/etalab-2.0.html"}}
data:
all: true
metadata:
general:
recherche_data_gouv__general__contact:
- name: Formation, Camille
affiliation: IFB
email: camille.formation@example.org
recherche_data_gouv__general__kind_of_data:
kind_of_data: [Dataset]
recherche_data_gouv__general__subject: [Earth and Environmental Sciences]

The block “Submit” does not change the file: it adds --submit to apply.

Recherche Data Gouv field Value Where it comes from
Title Stream water quality Title of the submission
Author The participant Their madbot profile
Description A year of water quality measurements in a stream, read on Zenodo. Description of the node
Point of contact The participant, their institution, their address The file
Data type Dataset The file
Subject Earth and Environmental Sciences The file

Only the names line of the node changes:

names: [README.md, stations.csv, mesures.csv, dictionnaire.csv]

plan announces a link to create, and points out that dictionnaire.csv is not in the deposit already sent; apply makes a single change.