Skip to content

Commit 84fef6c

Browse files
authored
Merge pull request #2 from b-cubed-eu/add-occ-cubes
Create data package of cube datasets
2 parents 53f1703 + c1882ec commit 84fef6c

File tree

6 files changed

+349
-10
lines changed

6 files changed

+349
-10
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*.shx
1717
*.xls*
1818
*_files
19+
*.csv
20+
*.gz
21+
*.zip
1922
docs
2023
libs
2124
output

README.Rmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ This code is developed in context of **T5.5** of the [B-Cubed project](https://b
4848

4949
## 📦 The `b3data` data package
5050

51-
Once published, the data package will be available here:
51+
- **Name**: `b3data`
52+
- **Published at**: [Zenodo](https://zenodo.org/) (DOI to be reserved)
53+
- **Used in**: [b3verse](https://docs.b-cubed.eu/guides/b3verse/)
54+
- **Importable in R via**: [frictionless](https://docs.ropensci.org/frictionless/) R package
5255

53-
> 🕐 *URL will be provided when available*
54-
55-
Datasets can be imported in R like this:
56+
Resources can be imported in R like this:
5657

5758
### Step 1 — Load the frictionless R package
5859

@@ -74,7 +75,7 @@ b3data_package <- read_package("https://zenodo.org/records/10053702/files/datapa
7475
b3data_package
7576
```
7677

77-
### Step 3 — Import a dataset
78+
### Step 3 — Import a resource (dataset)
7879

7980
Tabular datasets can be loaded using `read_resource()`.
8081

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ project](https://b-cubed.eu/).
3535

3636
## 📦 The `b3data` data package
3737

38-
Once published, the data package will be available here:
38+
- **Name**: `b3data`
39+
- **Published at**: [Zenodo](https://zenodo.org/) (DOI to be reserved)
40+
- **Used in**: [b3verse](https://docs.b-cubed.eu/guides/b3verse/)
41+
- **Importable in R via**:
42+
[frictionless](https://docs.ropensci.org/frictionless/) R package
3943

40-
> 🕐 *URL will be provided when available*
41-
42-
Datasets can be imported in R like this:
44+
Resources can be imported in R like this:
4345

4446
### Step 1 — Load the frictionless R package
4547

@@ -64,7 +66,7 @@ b3data_package
6466
#> Use `unclass()` to print the Data Package as a list.
6567
```
6668

67-
### Step 3 — Import a dataset
69+
### Step 3 — Import a resource (dataset)
6870

6971
Tabular datasets can be loaded using `read_resource()`.
7072

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"name": "b3data",
3+
"id": "https://doi.org/10.5281/zenodo.15181097",
4+
"resources": [
5+
{
6+
"name": "bird_cube_belgium_mgrs10",
7+
"path": "bird_cube_belgium_mgrs10.csv.gz",
8+
"profile": "tabular-data-resource",
9+
"format": "csv",
10+
"mediatype": "text/csv",
11+
"encoding": "utf-8",
12+
"title": "Occurrence cube for birds in Belgium (MGRS 10 km)",
13+
"description": "Occurrence cube for birds in Belgium between 2000 en 2024. The taxonomical resolution is 'species' and the temporal resolution is 'year' Spatial aggregation is done using the MGRS grid at 10 km scale.",
14+
"sources": ["GBIF Occurrence Download", "https://doi.org/10.15468/dl.y3wpwk"],
15+
"licenses": [" CC BY-NC 4.0", "https://creativecommons.org/licenses/by-nc/4.0/", "Creative Commons Attribution-NonCommercial 4.0 International"],
16+
"schema": {
17+
"fields": [
18+
{
19+
"name": "year",
20+
"type": "number"
21+
},
22+
{
23+
"name": "mgrscode",
24+
"type": "string"
25+
},
26+
{
27+
"name": "specieskey",
28+
"type": "number"
29+
},
30+
{
31+
"name": "species",
32+
"type": "string"
33+
},
34+
{
35+
"name": "family",
36+
"type": "string"
37+
},
38+
{
39+
"name": "n",
40+
"type": "number"
41+
},
42+
{
43+
"name": "mincoordinateuncertaintyinmeters",
44+
"type": "number"
45+
},
46+
{
47+
"name": "familycount",
48+
"type": "number"
49+
}
50+
]
51+
}
52+
}
53+
],
54+
"title": "b3data: Data resources for the b3verse",
55+
"description": "This data package contains data resources to be used across the b3verse (https://docs.b-cubed.eu/guides/b3verse/). This includes example datasets (occurrence cubes) as well as spatial resources like reference grids or raster data.",
56+
"keywords1": "data cubes",
57+
"licenses.name": " CC BY-NC 4.0",
58+
"version": "0.1.0",
59+
"sources.title": "b3data-scripts",
60+
"contributors.title": "Ward Langeraert",
61+
"contributors.path": "https://orcid.org/0000-0002-5900-8109",
62+
"contributors.email": "[email protected]",
63+
"contributors.role": "author",
64+
"contributors.organization": "Research Institute for Nature and Forest (INBO)",
65+
"contributors.title.1": "Toon Van Daele",
66+
"contributors.path.1": "https://orcid.org/0000-0002-1362-853X",
67+
"contributors.role.1": "contributor",
68+
"contributors.organization.1": "Research Institute for Nature and Forest (INBO)",
69+
"sources.path": "https://github.com/b-cubed-eu/b3data-scripts",
70+
"licenses.path": "https://creativecommons.org/licenses/by-nc/4.0/",
71+
"licenses.title": "Creative Commons Attribution-NonCommercial 4.0 International",
72+
"keywords2": "b3verse",
73+
"keywords3": "frictionless",
74+
"keywords4": "biodiversity"
75+
}

inst/en_gb.dic

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Daele
2+
EEA
3+
GeoJSON
24
Havenlaan
35
Langeraert
6+
MGRS
7+
NC
48
Rproj
59
Teirlinckgebouw
610
cff

0 commit comments

Comments
 (0)