Skip to content

Commit 94e27bd

Browse files
committed
fix list indentation descriptor file
1 parent a7b3510 commit 94e27bd

File tree

3 files changed

+56
-36
lines changed

3 files changed

+56
-36
lines changed

data/b3data_package/datapackage.json

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
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": ["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"],
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+
},
1623
"schema": {
1724
"fields": [
1825
{
@@ -57,28 +64,39 @@
5764
"format": "geojson",
5865
"title": "MGRS 10 Km reference grid Belgium",
5966
"description": "MGRS 10 Km reference grid for the mainland of Belgium.",
60-
"licenses": ["CC0 1.0", "https://creativecommons.org/publicdomain/zero/1.0/", "Creative Commons Zero v1.0 Universal"]
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+
}
6172
}
6273
],
6374
"title": "b3data: Data resources for the b3verse",
6475
"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.",
65-
"keywords1": "data cubes",
66-
"licenses.name": "CC BY-NC 4.0",
76+
"keywords": ["data cubes", "b3verse", "frictionless", "biodiversity"],
77+
"licenses": {
78+
"name": "CC BY-NC 4.0",
79+
"path": "https://creativecommons.org/licenses/by-nc/4.0/",
80+
"title": "Creative Commons Attribution-NonCommercial 4.0 International"
81+
},
6782
"version": "0.1.0",
68-
"sources.title": "b3data-scripts",
69-
"contributors.title": "Ward Langeraert",
70-
"contributors.path": "https://orcid.org/0000-0002-5900-8109",
71-
"contributors.email": "[email protected]",
72-
"contributors.role": "author",
73-
"contributors.organization": "Research Institute for Nature and Forest (INBO)",
74-
"contributors.title.1": "Toon Van Daele",
75-
"contributors.path.1": "https://orcid.org/0000-0002-1362-853X",
76-
"contributors.role.1": "contributor",
77-
"contributors.organization.1": "Research Institute for Nature and Forest (INBO)",
78-
"sources.path": "https://github.com/b-cubed-eu/b3data-scripts",
79-
"licenses.path": "https://creativecommons.org/licenses/by-nc/4.0/",
80-
"licenses.title": "Creative Commons Attribution-NonCommercial 4.0 International",
81-
"keywords2": "b3verse",
82-
"keywords3": "frictionless",
83-
"keywords4": "biodiversity"
83+
"sources": {
84+
"title": "b3data-scripts",
85+
"path": "https://github.com/b-cubed-eu/b3data-scripts"
86+
},
87+
"contributors": [
88+
{
89+
"title": "Ward Langeraert",
90+
"path": "https://orcid.org/0000-0002-5900-8109",
91+
"email": "[email protected]",
92+
"role": "author",
93+
"organization": "Research Institute for Nature and Forest (INBO)"
94+
},
95+
{
96+
"title": "Toon Van Daele",
97+
"path": "https://orcid.org/0000-0002-1362-853X",
98+
"role": "contributor",
99+
"organization": "Research Institute for Nature and Forest (INBO)"
100+
}
101+
]
84102
}

source/add_spatial_resources.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ mgrs10_resource <- list(
107107
format = "geojson",
108108
title = "MGRS 10 Km reference grid Belgium",
109109
description = "MGRS 10 Km reference grid for the mainland of Belgium.",
110-
licenses = c(
110+
licenses = list(
111111
name = "CC0 1.0",
112112
path = "https://creativecommons.org/publicdomain/zero/1.0/",
113113
title = "Creative Commons Zero v1.0 Universal"

source/create_b3data_package.Rmd

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ 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 = c(
174+
sources = list(
175175
title = "GBIF Occurrence Download",
176176
path = "https://doi.org/10.15468/dl.y3wpwk"
177177
),
178-
licenses = c(
178+
licenses = 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"
@@ -210,45 +210,47 @@ b3data_package <- append(
210210
"resources like reference grids or raster data."
211211
)),
212212
after = 4)
213-
b3data_package <- append(b3data_package,
214-
c(keywords = c("data cubes", "b3verse", "frictionless",
215-
"biodiversity")),
216-
after = 5)
217213
b3data_package <- append(
218214
b3data_package,
219-
c(licenses = c(
215+
c(keywords = list(list(
216+
"data cubes", "b3verse", "frictionless", "biodiversity"
217+
))),
218+
after = 5)
219+
b3data_package <- append(
220+
b3data_package,
221+
c(licenses = list(list(
220222
name = "CC BY-NC 4.0",
221223
path = "https://creativecommons.org/licenses/by-nc/4.0/",
222224
title = "Creative Commons Attribution-NonCommercial 4.0 International"
223-
)),
225+
))),
224226
after = 6)
225227
b3data_package <- append(b3data_package,
226228
c(version = "0.1.0"),
227229
after = 7)
228230
b3data_package <- append(
229231
b3data_package,
230-
c(sources = c(
232+
c(sources = list(list(
231233
title = "b3data-scripts",
232234
path = "https://github.com/b-cubed-eu/b3data-scripts"
233-
)),
235+
))),
234236
after = 8)
235237
b3data_package <- append(
236238
b3data_package,
237-
c(contributors = c(
238-
c(
239+
c(contributors = list(list(
240+
list(
239241
title = "Ward Langeraert",
240242
path = "https://orcid.org/0000-0002-5900-8109",
241243
email = "[email protected]",
242244
role = "author",
243245
organization = "Research Institute for Nature and Forest (INBO)"
244246
),
245-
c(
247+
list(
246248
title = "Toon Van Daele",
247249
path = "https://orcid.org/0000-0002-1362-853X",
248250
role = "contributor",
249251
organization = "Research Institute for Nature and Forest (INBO)"
250252
)
251-
)),
253+
))),
252254
after = 9)
253255
254256
# Warning: append() drops the custom datapackage class.

0 commit comments

Comments
 (0)