Skip to content

Commit 18e3842

Browse files
committed
license as array
1 parent 6443a73 commit 18e3842

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

data/b3data_package/datapackage.json

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@
1111
"encoding": "utf-8",
1212
"title": "Occurrence cube for birds in Belgium (MGRS 10 km)",
1313
"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. Only grid cells that fall within the 10 km MGRS reference grid for mainland Belgium (see b3data: `mgrs10_refgrid_belgium.geojson`) are included.",
14-
"sources": {
15-
"title": "GBIF Occurrence Download",
16-
"path": "https://doi.org/10.15468/dl.y3wpwk"
17-
},
18-
"licenses": {
19-
"name": "CC BY-NC 4.0",
20-
"path": "https://creativecommons.org/licenses/by-nc/4.0/",
21-
"title": "Creative Commons Attribution-NonCommercial 4.0 International"
22-
},
14+
"sources": [
15+
{
16+
"title": "GBIF Occurrence Download",
17+
"path": "https://doi.org/10.15468/dl.y3wpwk"
18+
}
19+
],
20+
"licenses": [
21+
{
22+
"name": "CC BY-NC 4.0",
23+
"path": "https://creativecommons.org/licenses/by-nc/4.0/",
24+
"title": "Creative Commons Attribution-NonCommercial 4.0 International"
25+
}
26+
],
2327
"schema": {
2428
"fields": [
2529
{
@@ -60,15 +64,16 @@
6064
{
6165
"name": "mgrs10_refgrid_belgium",
6266
"path": "mgrs10_refgrid_belgium.geojson",
63-
"profile": "spatial-data-resource",
6467
"format": "geojson",
6568
"title": "MGRS 10 Km reference grid Belgium",
6669
"description": "MGRS 10 Km reference grid for the mainland of Belgium.",
67-
"licenses": {
68-
"name": "CC0 1.0",
69-
"path": "https://creativecommons.org/publicdomain/zero/1.0/",
70-
"title": "Creative Commons Zero v1.0 Universal"
71-
}
70+
"licenses": [
71+
{
72+
"name": "CC0 1.0",
73+
"path": "https://creativecommons.org/publicdomain/zero/1.0/",
74+
"title": "Creative Commons Zero v1.0 Universal"
75+
}
76+
]
7277
}
7378
],
7479
"title": "b3data: Data resources for the b3verse",

source/add_spatial_resources.Rmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ Example:
5757

5858
Each dataset includes the following metadata (see: [Frictionless resource spec](https://docs.ropensci.org/frictionless/articles/data-resource.html#properties-implementation)):
5959

60-
- **profile**: `spatial-data-resource`
6160
- **format**: e.g. `geojson`
6261
- **title**: e.g. `"MGRS 10 km reference grid for Belgium"`
6362
- **description**: concise explanation of content
@@ -103,15 +102,14 @@ b3data_package <- read_package(file.path(package_path, "datapackage.json"))
103102
mgrs10_resource <- list(
104103
name = "mgrs10_refgrid_belgium",
105104
path = "mgrs10_refgrid_belgium.geojson",
106-
profile = "spatial-data-resource",
107105
format = "geojson",
108106
title = "MGRS 10 Km reference grid Belgium",
109107
description = "MGRS 10 Km reference grid for the mainland of Belgium.",
110-
licenses = list(
108+
licenses = list(list(
111109
name = "CC0 1.0",
112110
path = "https://creativecommons.org/publicdomain/zero/1.0/",
113111
title = "Creative Commons Zero v1.0 Universal"
114-
)
112+
))
115113
)
116114
117115
b3data_package <- add_manual_resource(

source/create_b3data_package.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ b3data_package <- create_package() %>%
171171
"Only grid cells that fall within the 10 km MGRS reference grid for",
172172
"mainland Belgium (see b3data: `mgrs10_refgrid_belgium.geojson`) are",
173173
"included."),
174-
sources = list(
174+
sources = list(list(
175175
title = "GBIF Occurrence Download",
176176
path = "https://doi.org/10.15468/dl.y3wpwk"
177-
),
178-
licenses = list(
177+
)),
178+
licenses = list(list(
179179
name = "CC BY-NC 4.0",
180180
path = "https://creativecommons.org/licenses/by-nc/4.0/",
181181
title = "Creative Commons Attribution-NonCommercial 4.0 International"
182-
)
182+
))
183183
)
184184
```
185185

0 commit comments

Comments
 (0)