Submit
apply alone never sends anything to a repository: sending needs the --submit option. So a platform can prepare its deposits continuously, and send them only once reviewed, or as soon as they are complete.
-
Check:
Fenêtre de terminal madbot-cli plan depot.yamlThe plan only announces writing your three values, and ends with:
1 submission is sent to its repository by apply --submit only.Nothing written. -
Write the values and send, in one command:
Fenêtre de terminal madbot-cli apply depot.yaml --submitmadbot-cli writes the values, waits until madbot has checked the submission, sends it, then waits for the answer of the repository:
wrote 3 metadata values of submission 'Stream water quality'submission 'Stream water quality': madbot makes and checks its metadata…submission 'Stream water quality': the repository receives it…submitted submission 'Stream water quality': doi:10.82233/…Done: 4 changes, 0 failures, 1 submission sent.node 'Stream water quality': 3 data readsubmission 'Stream water quality': sent (submitted), doi:10.82233/… -
Follow the submission, now or later:
Fenêtre de terminal madbot-cli status depot.yamlnode 'Stream water quality'source zenodo: 3 activesubmission 'Stream water quality': submitted, 3 data= DOI: doi:10.82233/… https://demo.recherche.data.gouv.fr/dataset.xhtml?persistentId=doi:10.82233/… -
Open the dataset on the demo, at the address
statusgives. You find there the title, the description, your name, the three files, and the license you chose.
Optional What the command does, on the API side
--submit sends the submit action on the submission (POST /api/submissions/{id}/actions), then follows the madbot task (GET /api/tasks/{id}) until the answer of the repository. madbot transfers there the files read on Zenodo: they never go through your machine. status reads the submission again, and the identifiers the repository returned.
Checkpoint
Section titled “Checkpoint”If you are stuck
Section titled “If you are stuck”- “not ready (draft) … mandatory metadata values missing”: a mandatory value is still missing. Run the
fields … --level mandatorycommand the summary gives, and fill what is still empty. - The repository refuses the submission: the summary says so, nothing is deposited, and
madbot-cli status depot.yamlgives the reason. Fix the file, then runapply --submitagain. - Access to the
tpcollection is refused: your account on the demo is not allowed to deposit there. Tell the trainer. - Files “failed to read”: madbot could not read them on Zenodo at the time of the transfer. Wait a minute, then
madbot-cli apply depot.yaml --retry-failed --submit. apply --submitreturns before the end: the answer of the repository may take time.madbot-cli status depot.yamlsays where the submission stands; runningapply --submitagain does not send twice a submission already gone.

