b3data-scripts
Scripts used to create the frictionless b3data data package
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 10 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.8%) to scientific vocabulary
Keywords
Repository
Scripts used to create the frictionless b3data data package
Basic Info
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Scripts used to create the b3data frictionless data package
Langeraert, Ward
[^1][^2][^3]
Van Daele, Toon
[^4][^5]
Research Institute for Nature and Forest (INBO)[^6] European Union’s
Horizon Europe Research and Innovation Programme (ID No 101059592)^7
keywords: data package; b3verse; frictionless; data cubes
This repository contains scripts to create the b3data frictionless data package. This data package includes data resources used across the b3verse and is published on Zenodo. <!-- description: end -->
This code is developed in context of T5.5 of the B-Cubed project.
Order of execution
Follow the steps below to run the scripts in a logical order.
1. create_b3data_package.Rmd
- creates the data package
- adds tabular resources
- writes data package
2. add_spatial_resources.Rmd
- loads data package
- adds spatial resources
- writes data package
📦 The b3data data package
- Name:
b3data - Published at:
- Used in: b3verse
- Importable in R via: frictionless R package
Resources can be imported in R like this:
Step 1 — Load the frictionless R package
``` r
install.packages("frictionless")
library(frictionless) ```
Step 2 — Read the package descriptor from Zenodo
The content of the data package can be consulted using read_package().
``` r b3datapackage <- readpackage("https://zenodo.org/records/15211029/files/datapackage.json") b3data_package
> A Data Package with 2 resources:
> • birdcubebelgium_mgrs10
> • mgrs10refgridbelgium
> For more information, see https://doi.org/10.5281/zenodo.15211029.
> Use unclass() to print the Data Package as a list.
```
Step 3 — Import a resource (dataset)
Tabular datasets can be loaded using read_resource().
``` r birdcubebelgium <- readresource(b3datapackage, "birdcubebelgiummgrs10") head(birdcube_belgium)
> # A tibble: 6 × 8
> year mgrscode specieskey species family n mincoordinateuncerta…¹
>
> 1 2000 31UDS65 2473958 Perdix perdix Phasi… 1 3536
> 2 2000 31UDS65 2474156 Coturnix coturn… Phasi… 1 3536
> 3 2000 31UDS65 2474377 Fulica atra Ralli… 5 1000
> 4 2000 31UDS65 2475443 Merops apiaster Merop… 6 1000
> 5 2000 31UDS65 2480242 Vanellus vanell… Chara… 1 3536
> 6 2000 31UDS65 2480637 Accipiter nisus Accip… 1 3536
> # ℹ abbreviated name: ¹mincoordinateuncertaintyinmeters
> # ℹ 1 more variable: familycount
```
For non-tabular resources (e.g. spatial or raster data), use packages
like sf or terra directly.
``` r mgrs10belgium <- sf::stread( "https://zenodo.org/records/15211029/files/mgrs10refgridbelgium.gpkg", quiet = TRUE) head(mgrs10_belgium)
> Simple feature collection with 6 features and 1 field
> Geometry type: POLYGON
> Dimension: XY
> Bounding box: xmin: 460000.1 ymin: 5620000 xmax: 480000.1 ymax: 5670000
> Projected CRS: WGS 84 / UTM zone 31N
> mgrscode geom
> 1 31UDS65 POLYGON ((470000.1 5651000,...
> 2 31UDS66 POLYGON ((470000.1 5661000,...
> 3 31UDS72 POLYGON ((480000 5621000, 4...
> 4 31UDS73 POLYGON ((480000.1 5631000,...
> 5 31UDS74 POLYGON ((480000.1 5641000,...
> 6 31UDS75 POLYGON ((480000.1 5651000,...
```
📁 Repository structure
├── source ├ R markdown files
│ └── R ├ R scripts
├── data
│ ├── raw ├ create this folder and store raw data
│ ├── processed ├ store processed data
│ └── b3data_package ├ b3data frictionless data package
├── checklist.yml ├ options checklist package (https://github.com/inbo/checklist)
├── organisation.yml ├ organisation info (https://inbo.github.io/checklist/articles/organisation.html)
├── inst
│ └── en_gb.dic ├ dictionary with words that should not be checked by the checklist package
├── .github │
│ ├── workflows │
│ │ └── checklist_project.yml ├ GitHub action settings
│ ├── CODE_OF_CONDUCT.md │
│ └── CONTRIBUTING.md │
├── b3data-scripts.Rproj ├ R project
├── README.md ├ project description
├── LICENSE.md ├ license
├── CITATION.cff ├ citation info
├── .zenodo.json ├ zenodo metadata
└── .gitignore ├ files to ignore
[^2]: contact person
[^3]: Research Institute for Nature and Forest (INBO), Herman Teirlinckgebouw, Havenlaan 88 PO Box 73, B-1000 Brussels, Belgium
[^5]: Research Institute for Nature and Forest (INBO), Herman Teirlinckgebouw, Havenlaan 88 PO Box 73, B-1000 Brussels, Belgium
[^6]: copyright holder
Owner
- Name: B-Cubed
- Login: b-cubed-eu
- Kind: organization
- Website: https://b-cubed.eu
- Repositories: 1
- Profile: https://github.com/b-cubed-eu
Biodiversity Building Blocks for Policy
Citation (CITATION.cff)
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: "Scripts used to create the b3data frictionless data package"
authors:
- given-names: Ward
family-names: Langeraert
affiliation: Research Institute for Nature and Forest (INBO), Herman Teirlinckgebouw,
Havenlaan 88 PO Box 73, B-1000 Brussels, Belgium
orcid: 0000-0002-5900-8109
- given-names: Toon
family-names: Van Daele
affiliation: Research Institute for Nature and Forest (INBO), Herman Teirlinckgebouw,
Havenlaan 88 PO Box 73, B-1000 Brussels, Belgium
orcid: 0000-0002-1362-853X
keywords:
- data package
- b3verse
- frictionless
- data cubes
contact:
- given-names: Ward
family-names: Langeraert
affiliation: Research Institute for Nature and Forest (INBO), Herman Teirlinckgebouw,
Havenlaan 88 PO Box 73, B-1000 Brussels, Belgium
orcid: 0000-0002-5900-8109
doi: ~
license: MIT
repository-code: https://github.com/b-cubed-eu/b3data-scripts/
type: software
abstract: "This repository contains scripts to create the b3data [frictionless](https://docs.ropensci.org/frictionless/) data package. This data package includes data resources used across the [b3verse](https://docs.b-cubed.eu/guides/b3verse/) and is published on [Zenodo](https://doi.org/10.5281/zenodo.15181097)."
GitHub Events
Total
- Create event: 10
- Release event: 2
- Issues event: 2
- Delete event: 7
- Member event: 1
- Push event: 26
- Pull request event: 9
Last Year
- Create event: 10
- Release event: 2
- Issues event: 2
- Delete event: 7
- Member event: 1
- Push event: 26
- Pull request event: 9
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 1
- Total pull requests: 6
- Average time to close issues: about 23 hours
- Average time to close pull requests: about 4 hours
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 6
- Average time to close issues: about 23 hours
- Average time to close pull requests: about 4 hours
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- wlangera (1)
Pull Request Authors
- wlangera (11)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- inbo/actions/check_project main composite