Skip to content

Explore the instance

madbot reads and deposits nothing by itself: its plugins do. A source plugin reads data where they are (a file server, a code forge, Zenodo…); a repository plugin deposits a submission there. Each instance has its own. So before writing a deposit file, you look at what the instance offers.

  1. List the plugins of the instance:

    Fenêtre de terminal
    madbot-cli plugins

    Each line gives the slug of the plugin (the name to write in the file), its name, and what it does: data source for a source, repository for a repository. Zenodo is both.

  2. Read what the Zenodo source asks for:

    Fenêtre de terminal
    madbot-cli plugins zenodo

    Note the shared parameter url: it names the Zenodo server, here https://zenodo.org/. Under the name of the plugin, a line says it reads public data without credentials: the token is only needed to deposit or to read private data.

  3. Read what the Recherche Data Gouv repository asks for:

    Fenêtre de terminal
    madbot-cli plugins recherche_data_gouv

    The command gives, in order:

    • the shared parameters (shared_params): the server, here the demo, https://demo.recherche.data.gouv.fr;
    • the credentials, a JSON object to put in an environment variable, never in the file: here your token of the demo;
    • the settings of a submission (settings): the collection to deposit into, the language of the metadata, the access conditions;
    • a block to paste in the file, and the export line of the credentials.

    Keep this output at hand: you will paste its block in the “Describe the submission” block.

Optional What the command does, on the API side

madbot-cli plugins reads GET /api/plugins. With a slug, it also reads the JSON schemas the plugin publishes (shared parameters, credentials, settings) and turns them into text. None of these commands writes to madbot, and none needs a deposit file.

  • A plugin is missing from the list: the instance did not install it. Tell the trainer.
  • “The instance has no plugin …”: the slug is written as the first column of madbot-cli plugins gives it, with its underscores: recherche_data_gouv, not recherche-data-gouv. The message lists the slugs of the instance.
  • The output scrolls by too fast: send it to a file, madbot-cli plugins recherche_data_gouv > rdg.txt, and open it in your editor.