This udata plugin provides an integration with schema.data.gouv.fr
- Adds a schema button to resources with a schema
- Displays a modal when clicking this button providing links to documentation and validation
Install the plugin package in your udata environment:
pip install udata-schema-gouvfr
Then activate it in your udata.cfg
:
PLUGINS = ['schema-gouvfr']
You can control this plugin behavior with the following udata.cfg
parameters:
SCHEMA_GOUVFR_VALIDATA_URL
: the URL to your Validata instance (without trailing slash). ex:https://validata.etalab.studio
SCHEMA_GOUVFR_IRVE_STABLE_RESOURCE_URL
: the permalink to the consolidated IRVE dataset's latest resource. ex:https://www.data.gouv.fr/fr/datasets/r/50625621-18bd-43cb-8fde-6b8c24bdabb3
This plugin declares jobs.
udata job run set-irve-schemas
: sets theschema
attribute of resources that are consolidated as part of the national IRVE dataset