Skip to content

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.

  1. Check:

    Fenêtre de terminal
    madbot-cli plan depot.yaml

    The plan only announces writing your three values, and ends with:

    1 submission is sent to its repository by apply --submit only.
    Nothing written.
  2. Write the values and send, in one command:

    Fenêtre de terminal
    madbot-cli apply depot.yaml --submit

    madbot-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 read
    submission 'Stream water quality': sent (submitted), doi:10.82233/…
  3. Follow the submission, now or later:

    Fenêtre de terminal
    madbot-cli status depot.yaml
    node 'Stream water quality'
    source zenodo: 3 active
    submission 'Stream water quality': submitted, 3 data
    = DOI: doi:10.82233/… https://demo.recherche.data.gouv.fr/dataset.xhtml?persistentId=doi:10.82233/…
  4. Open the dataset on the demo, at the address status gives. 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.

  • “not ready (draft) … mandatory metadata values missing”: a mandatory value is still missing. Run the fields … --level mandatory command 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.yaml gives the reason. Fix the file, then run apply --submit again.
  • Access to the tp collection 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 --submit returns before the end: the answer of the repository may take time. madbot-cli status depot.yaml says where the submission stands; running apply --submit again does not send twice a submission already gone.