This repository contains the functionality to standardize the management actions by Province West Flanders to a Darwin Core occurrence dataset that can be harvested by a GBIF IPT.
Update data GitHub Action
- Triggers every Monday (or manually).
- Get the latest data using src/get_data.R and creates an issue on failure.
- On success, writes the output to interim data and stops if no changes were detected.
- Transforms the data to Darwin Core using src/dwc_mapping.R and creates an issue on failure.
- On success, writes the output to processed data.
- Runs tests using test/test-dwc_mapping.R and creates an issue on failure.
- On success, creates a PR with the changes.
- Merges PR.
- Periodically reads data from this repository and auto-publish.
The repository structure is based on Cookiecutter Data Science and the Checklist recipe. Files and directories indicated with GENERATED should not be edited manually.
├── README.md
├── LICENSE
├── wfl-occurrences.Rproj
├── DESCRIPTION: R dependencies
├── .gitignore
│
├── .github
│ ├── PULL_REQUEST_TEMPLATE_AUTO.md : PR template used by get-data.yaml
│ └── workflows
│ ├── update-data.yaml
│ └── run-tests.yaml
│
├── src
│ ├── update_data.R
│ └── dwc_mapping.R
│
├── tests
│ └── test-dwc_mapping.R
│
└── data
├── reference: Reference data to be used in mapping
├── interim: GENERATED
└── processed: GENERATED