ghdgfxzfdz commited on
Commit
8a1e39f
·
verified ·
1 Parent(s): a2d1ad3

Refresh Croissant metadata and frozen archive

Browse files

Update Croissant core and minimal RAI metadata, refresh release validator, and replace the frozen archive with the matching validated artifact.

README.md CHANGED
@@ -130,7 +130,7 @@ The exact frozen v1 archive uploaded to Zenodo is also included under
130
  `archive/`:
131
 
132
  ```text
133
- 701ad48d75ff34fabce82ee27271579f2ad83345a74a13468891beb0c6dc8f36 cb_telemetry_v1_expert_aligned.tar.gz
134
  ```
135
 
136
  The Zenodo DOI for the immutable v1 artifact is:
 
130
  `archive/`:
131
 
132
  ```text
133
+ db1d5a74484f7feebecc59f9321b9fdbac93542e97fbb91ed00f729bc61c1c67 cb_telemetry_v1_expert_aligned.tar.gz
134
  ```
135
 
136
  The Zenodo DOI for the immutable v1 artifact is:
archive/cb_telemetry_v1_expert_aligned.tar.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:701ad48d75ff34fabce82ee27271579f2ad83345a74a13468891beb0c6dc8f36
3
- size 48368883
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db1d5a74484f7feebecc59f9321b9fdbac93542e97fbb91ed00f729bc61c1c67
3
+ size 48366596
archive/cb_telemetry_v1_expert_aligned.tar.gz.sha256 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4e7027fda93a0d3e5aabcc87de8aab7a7e9857aaa6cd980a2ebe1e9ef110f896
3
  size 104
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0438c6a0fef03f5bb6cf216bb67bf75a045e963cfbc692a9935c585001dd8160
3
  size 104
croissant.json CHANGED
@@ -2,18 +2,61 @@
2
  "@context": {
3
  "@language": "en",
4
  "@vocab": "https://schema.org/",
 
 
 
5
  "cr": "http://mlcommons.org/croissant/",
6
  "rai": "http://mlcommons.org/croissant/RAI/",
7
- "sc": "https://schema.org/"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  },
9
- "@type": "Dataset",
10
- "name": "CB-Telemetry: A Cyberforest Bird Acoustic Monitoring Benchmark",
11
  "description": "A license-aware Cyberforest bird acoustic monitoring benchmark package with J-STAGE DOI-backed expert listening records, Cyberforest audio provenance, audio clips, scored split manifests, feature tables, and baseline snapshots.",
12
  "url": "https://doi.org/10.5281/zenodo.19951359",
13
  "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
14
- "version": "v1",
 
15
  "datePublished": "2026-05-01",
16
  "citation": "https://doi.org/10.5281/zenodo.19951359",
 
17
  "identifier": [
18
  {
19
  "@type": "PropertyValue",
@@ -31,80 +74,210 @@
31
  "rai:personalSensitiveInformation": "The intended domain is bird acoustic monitoring audio. Because live acoustic streams can contain incidental non-target sounds, audio reuse should follow the source license and local ethical requirements.",
32
  "rai:dataUseCases": "Long-term bird acoustic monitoring evaluation, representation fidelity diagnostics, retrieval controls, and compression benchmark smoke tests.",
33
  "rai:dataSocialImpact": "The package supports reproducible and license-aware bird acoustic monitoring evaluation while documenting scope limits and non-commercial/share-alike constraints.",
 
 
 
 
 
 
34
  "distribution": [
35
  {
36
- "@type": "DataDownload",
 
37
  "name": "normalized_annotations",
38
  "contentUrl": "annotations/cb_telemetry_annotations.csv.gz",
39
- "encodingFormat": "text/csv"
 
40
  },
41
  {
42
- "@type": "DataDownload",
 
43
  "name": "scored_snapshot_manifest",
44
  "contentUrl": "manifests/scored_snapshot_manifest.csv",
45
- "encodingFormat": "text/csv"
 
46
  },
47
  {
48
- "@type": "DataDownload",
 
49
  "name": "audio_manifest",
50
  "contentUrl": "manifests/audio_manifest.csv",
51
- "encodingFormat": "text/csv"
 
52
  },
53
  {
54
- "@type": "DataDownload",
 
55
  "name": "audio_sample_manifest",
56
  "contentUrl": "manifests/audio_sample_manifest.csv",
57
- "encodingFormat": "text/csv"
 
58
  },
59
  {
60
- "@type": "DataDownload",
 
61
  "name": "audio_sample_metadata",
62
  "contentUrl": "audio_sample/metadata.csv",
63
- "encodingFormat": "text/csv"
 
64
  },
65
  {
66
- "@type": "DataDownload",
 
67
  "name": "default_feature_table",
68
  "contentUrl": "features/feature_table_default.csv.gz",
69
- "encodingFormat": "text/csv"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  },
71
  {
72
- "@type": "DataDownload",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  "name": "audio_download_script",
74
  "contentUrl": "scripts/download_audio_recordings.py",
75
- "encodingFormat": "text/x-python"
 
 
 
 
 
 
 
 
 
76
  }
77
  ],
78
  "recordSet": [
79
  {
80
  "@type": "cr:RecordSet",
 
81
  "name": "cb_telemetry_scored_recordings",
82
  "description": "Frozen CB-Telemetry v1 scored recording rows.",
83
  "field": [
84
  {
 
85
  "@type": "cr:Field",
86
  "name": "recording_id",
87
- "dataType": "sc:Text"
 
 
 
 
 
 
 
 
88
  },
89
  {
 
90
  "@type": "cr:Field",
91
  "name": "site_en",
92
- "dataType": "sc:Text"
 
 
 
 
 
 
 
 
93
  },
94
  {
 
95
  "@type": "cr:Field",
96
  "name": "date",
97
- "dataType": "sc:Text"
 
 
 
 
 
 
 
 
98
  },
99
  {
 
100
  "@type": "cr:Field",
101
  "name": "behavior_types",
102
- "dataType": "sc:Text"
 
 
 
 
 
 
 
 
103
  },
104
  {
 
105
  "@type": "cr:Field",
106
  "name": "jstage_event_count",
107
- "dataType": "sc:Integer"
 
 
 
 
 
 
 
 
108
  }
109
  ]
110
  }
 
2
  "@context": {
3
  "@language": "en",
4
  "@vocab": "https://schema.org/",
5
+ "citeAs": "cr:citeAs",
6
+ "column": "cr:column",
7
+ "conformsTo": "dct:conformsTo",
8
  "cr": "http://mlcommons.org/croissant/",
9
  "rai": "http://mlcommons.org/croissant/RAI/",
10
+ "data": {
11
+ "@id": "cr:data",
12
+ "@type": "@json"
13
+ },
14
+ "dataType": {
15
+ "@id": "cr:dataType",
16
+ "@type": "@vocab"
17
+ },
18
+ "dct": "http://purl.org/dc/terms/",
19
+ "equivalentProperty": "cr:equivalentProperty",
20
+ "examples": {
21
+ "@id": "cr:examples",
22
+ "@type": "@json"
23
+ },
24
+ "extract": "cr:extract",
25
+ "field": "cr:field",
26
+ "fileObject": "cr:fileObject",
27
+ "fileProperty": "cr:fileProperty",
28
+ "fileSet": "cr:fileSet",
29
+ "format": "cr:format",
30
+ "includes": "cr:includes",
31
+ "isLiveDataset": "cr:isLiveDataset",
32
+ "jsonPath": "cr:jsonPath",
33
+ "key": "cr:key",
34
+ "md5": "cr:md5",
35
+ "parentField": "cr:parentField",
36
+ "path": "cr:path",
37
+ "prov": "http://www.w3.org/ns/prov#",
38
+ "recordSet": "cr:recordSet",
39
+ "references": "cr:references",
40
+ "regex": "cr:regex",
41
+ "repeated": "cr:repeated",
42
+ "replace": "cr:replace",
43
+ "samplingRate": "cr:samplingRate",
44
+ "sc": "https://schema.org/",
45
+ "separator": "cr:separator",
46
+ "source": "cr:source",
47
+ "subField": "cr:subField",
48
+ "transform": "cr:transform"
49
  },
50
+ "@type": "sc:Dataset",
51
+ "name": "CB-Telemetry Cyberforest Bird Acoustic Monitoring Benchmark",
52
  "description": "A license-aware Cyberforest bird acoustic monitoring benchmark package with J-STAGE DOI-backed expert listening records, Cyberforest audio provenance, audio clips, scored split manifests, feature tables, and baseline snapshots.",
53
  "url": "https://doi.org/10.5281/zenodo.19951359",
54
  "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
55
+ "conformsTo": "http://mlcommons.org/croissant/1.0",
56
+ "version": "1.0.0",
57
  "datePublished": "2026-05-01",
58
  "citation": "https://doi.org/10.5281/zenodo.19951359",
59
+ "citeAs": "https://doi.org/10.5281/zenodo.19951359",
60
  "identifier": [
61
  {
62
  "@type": "PropertyValue",
 
74
  "rai:personalSensitiveInformation": "The intended domain is bird acoustic monitoring audio. Because live acoustic streams can contain incidental non-target sounds, audio reuse should follow the source license and local ethical requirements.",
75
  "rai:dataUseCases": "Long-term bird acoustic monitoring evaluation, representation fidelity diagnostics, retrieval controls, and compression benchmark smoke tests.",
76
  "rai:dataSocialImpact": "The package supports reproducible and license-aware bird acoustic monitoring evaluation while documenting scope limits and non-commercial/share-alike constraints.",
77
+ "rai:hasSyntheticData": false,
78
+ "prov:wasDerivedFrom": [
79
+ "https://doi.org/10.57368/data.birdresearch.26499895",
80
+ "http://cyberforest.nenv.k.u-tokyo.ac.jp/"
81
+ ],
82
+ "prov:wasGeneratedBy": "CB-Telemetry v1 was generated by normalizing the J-STAGE expert listening records, aligning them to Cyberforest source-audio URLs, filtering the frozen expert-overlap scored snapshot, exporting Default and Strict-Clean feature tables, and packaging reviewer audio clips, manifests, baselines, and validation scripts.",
83
  "distribution": [
84
  {
85
+ "@id": "normalized_annotations",
86
+ "@type": "cr:FileObject",
87
  "name": "normalized_annotations",
88
  "contentUrl": "annotations/cb_telemetry_annotations.csv.gz",
89
+ "encodingFormat": "text/csv",
90
+ "sha256": "c5af1159f4cc3a0438c635213cecb59b5f74ee7deb49be341efa4eede204f92d"
91
  },
92
  {
93
+ "@id": "scored_snapshot_manifest",
94
+ "@type": "cr:FileObject",
95
  "name": "scored_snapshot_manifest",
96
  "contentUrl": "manifests/scored_snapshot_manifest.csv",
97
+ "encodingFormat": "text/csv",
98
+ "sha256": "f2ac8239fac60cdee4ca05ca7eebcc67067e6185e10c486b2984d9b9367bbf0b"
99
  },
100
  {
101
+ "@id": "audio_manifest",
102
+ "@type": "cr:FileObject",
103
  "name": "audio_manifest",
104
  "contentUrl": "manifests/audio_manifest.csv",
105
+ "encodingFormat": "text/csv",
106
+ "sha256": "088f877d2a019edcb1001b51f9035570a58530e7db12cee3b06b33dd45291071"
107
  },
108
  {
109
+ "@id": "audio_sample_manifest",
110
+ "@type": "cr:FileObject",
111
  "name": "audio_sample_manifest",
112
  "contentUrl": "manifests/audio_sample_manifest.csv",
113
+ "encodingFormat": "text/csv",
114
+ "sha256": "332ebbfd97a08b5684cc45219e9554709fecc548ad5b9cd090633fc8a10952fe"
115
  },
116
  {
117
+ "@id": "audio_sample_metadata",
118
+ "@type": "cr:FileObject",
119
  "name": "audio_sample_metadata",
120
  "contentUrl": "audio_sample/metadata.csv",
121
+ "encodingFormat": "text/csv",
122
+ "sha256": "5b581ec06546267ea5180a0d0bb3d725b695920fffcfc0788dd8dcdea41c7d71"
123
  },
124
  {
125
+ "@id": "default_feature_table",
126
+ "@type": "cr:FileObject",
127
  "name": "default_feature_table",
128
  "contentUrl": "features/feature_table_default.csv.gz",
129
+ "encodingFormat": "text/csv",
130
+ "sha256": "39abc682d0f9b57cc2aa359ee3e79a0aa5c8fbec61b096199043e20b47499275"
131
+ },
132
+ {
133
+ "@id": "strict_clean_feature_table",
134
+ "@type": "cr:FileObject",
135
+ "name": "strict_clean_feature_table",
136
+ "contentUrl": "features/feature_table_strict_clean.csv.gz",
137
+ "encodingFormat": "text/csv",
138
+ "sha256": "78390d00005352929979eed359b3bacdfd092fbcc829846df3a4b2fb41e49143"
139
+ },
140
+ {
141
+ "@id": "default_standard_rvq_8bit",
142
+ "@type": "cr:FileObject",
143
+ "name": "default_standard_rvq_8bit",
144
+ "contentUrl": "features/bottlenecks/default/standard_rvq_8bit_feature_table.csv.gz",
145
+ "encodingFormat": "text/csv",
146
+ "sha256": "64b0dbcd1a47de6f3f41e3de4746552bb7f8646b0491329069a6175c155774be"
147
+ },
148
+ {
149
+ "@id": "default_pq_8bit",
150
+ "@type": "cr:FileObject",
151
+ "name": "default_pq_8bit",
152
+ "contentUrl": "features/bottlenecks/default/pq_8bit_feature_table.csv.gz",
153
+ "encodingFormat": "text/csv",
154
+ "sha256": "123a32f3b67a2f3ef96fac7199c521731c6a1f9441a6e9d91826e1a94281eca7"
155
  },
156
  {
157
+ "@id": "default_opq_8bit",
158
+ "@type": "cr:FileObject",
159
+ "name": "default_opq_8bit",
160
+ "contentUrl": "features/bottlenecks/default/opq_8bit_feature_table.csv.gz",
161
+ "encodingFormat": "text/csv",
162
+ "sha256": "755f7c2a2d587b5dccf6f6c78a692f4b8b9a76201c2856f6b92c693749c5d1d8"
163
+ },
164
+ {
165
+ "@id": "strict_clean_standard_rvq_8bit",
166
+ "@type": "cr:FileObject",
167
+ "name": "strict_clean_standard_rvq_8bit",
168
+ "contentUrl": "features/bottlenecks/strict_clean/standard_rvq_8bit_feature_table.csv.gz",
169
+ "encodingFormat": "text/csv",
170
+ "sha256": "f03e6efebffcb36d61e2152e073899f918f3fd97df976f942926bf8272eabbb8"
171
+ },
172
+ {
173
+ "@id": "strict_clean_pq_8bit",
174
+ "@type": "cr:FileObject",
175
+ "name": "strict_clean_pq_8bit",
176
+ "contentUrl": "features/bottlenecks/strict_clean/pq_8bit_feature_table.csv.gz",
177
+ "encodingFormat": "text/csv",
178
+ "sha256": "478f1afb7c900bd5540e626a124224a96179c994a18e8dc42975939cf6c4e7d9"
179
+ },
180
+ {
181
+ "@id": "strict_clean_opq_8bit",
182
+ "@type": "cr:FileObject",
183
+ "name": "strict_clean_opq_8bit",
184
+ "contentUrl": "features/bottlenecks/strict_clean/opq_8bit_feature_table.csv.gz",
185
+ "encodingFormat": "text/csv",
186
+ "sha256": "f85cdd1baa6f6b5677027ab260bfe6cc00bc406552bca507406a37fe41a9fb7e"
187
+ },
188
+ {
189
+ "@id": "audio_download_script",
190
+ "@type": "cr:FileObject",
191
  "name": "audio_download_script",
192
  "contentUrl": "scripts/download_audio_recordings.py",
193
+ "encodingFormat": "text/x-python",
194
+ "sha256": "954f7ab5ca251bbea689c1f89267025c3c7a50c23f1ae281e9107656dc364a0b"
195
+ },
196
+ {
197
+ "@id": "release_evaluation_script",
198
+ "@type": "cr:FileObject",
199
+ "name": "release_evaluation_script",
200
+ "contentUrl": "scripts/run_release_evaluation.py",
201
+ "encodingFormat": "text/x-python",
202
+ "sha256": "2db7cb99ed3416c4ae493a1c02726f69ab5ea68b685bfae16d0c56542c2f75bf"
203
  }
204
  ],
205
  "recordSet": [
206
  {
207
  "@type": "cr:RecordSet",
208
+ "@id": "cb_telemetry_scored_recordings",
209
  "name": "cb_telemetry_scored_recordings",
210
  "description": "Frozen CB-Telemetry v1 scored recording rows.",
211
  "field": [
212
  {
213
+ "@id": "recording_id",
214
  "@type": "cr:Field",
215
  "name": "recording_id",
216
+ "dataType": "sc:Text",
217
+ "source": {
218
+ "fileObject": {
219
+ "@id": "scored_snapshot_manifest"
220
+ },
221
+ "extract": {
222
+ "column": "recording_id"
223
+ }
224
+ }
225
  },
226
  {
227
+ "@id": "site_en",
228
  "@type": "cr:Field",
229
  "name": "site_en",
230
+ "dataType": "sc:Text",
231
+ "source": {
232
+ "fileObject": {
233
+ "@id": "scored_snapshot_manifest"
234
+ },
235
+ "extract": {
236
+ "column": "site_en"
237
+ }
238
+ }
239
  },
240
  {
241
+ "@id": "date",
242
  "@type": "cr:Field",
243
  "name": "date",
244
+ "dataType": "sc:Text",
245
+ "source": {
246
+ "fileObject": {
247
+ "@id": "scored_snapshot_manifest"
248
+ },
249
+ "extract": {
250
+ "column": "date"
251
+ }
252
+ }
253
  },
254
  {
255
+ "@id": "behavior_types",
256
  "@type": "cr:Field",
257
  "name": "behavior_types",
258
+ "dataType": "sc:Text",
259
+ "source": {
260
+ "fileObject": {
261
+ "@id": "scored_snapshot_manifest"
262
+ },
263
+ "extract": {
264
+ "column": "behavior_types"
265
+ }
266
+ }
267
  },
268
  {
269
+ "@id": "jstage_event_count",
270
  "@type": "cr:Field",
271
  "name": "jstage_event_count",
272
+ "dataType": "sc:Integer",
273
+ "source": {
274
+ "fileObject": {
275
+ "@id": "scored_snapshot_manifest"
276
+ },
277
+ "extract": {
278
+ "column": "jstage_event_count"
279
+ }
280
+ }
281
  }
282
  ]
283
  }
features/bottlenecks/default/opq_8bit_feature_table.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c3359d5af297ab7cee9fab04aa0a9327e0f6370dcb89322d6ae04bbda6f1f265
3
  size 4456952
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:755f7c2a2d587b5dccf6f6c78a692f4b8b9a76201c2856f6b92c693749c5d1d8
3
  size 4456952
features/bottlenecks/default/pq_8bit_feature_table.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:57ed5dbe3466c44db6b9b64d25401666d80c97ad875cdc5cf510a4e9e2007e36
3
  size 3474233
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:123a32f3b67a2f3ef96fac7199c521731c6a1f9441a6e9d91826e1a94281eca7
3
  size 3474233
features/bottlenecks/default/standard_rvq_8bit_feature_table.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:47cb104bcdfe52a3b3117777d7bf81519cf21945d0c6e8aaa4459f81a0ec4d5b
3
  size 4684598
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64b0dbcd1a47de6f3f41e3de4746552bb7f8646b0491329069a6175c155774be
3
  size 4684598
features/bottlenecks/strict_clean/opq_8bit_feature_table.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c1dffda743db376217bd27cdd394a25bb04c5b2634ff96c1d779676afae5fb05
3
  size 2484906
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f85cdd1baa6f6b5677027ab260bfe6cc00bc406552bca507406a37fe41a9fb7e
3
  size 2484906
features/bottlenecks/strict_clean/pq_8bit_feature_table.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:22c3cbd4c1e19dd145aa89d17a32a955a259a257297403220c79065204a702eb
3
  size 1908955
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:478f1afb7c900bd5540e626a124224a96179c994a18e8dc42975939cf6c4e7d9
3
  size 1908955
features/bottlenecks/strict_clean/standard_rvq_8bit_feature_table.csv.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c41b83e8fabe004886e55e05451882514b79292112b1e026e9e3e35dd92fdb21
3
  size 2760058
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f03e6efebffcb36d61e2152e073899f918f3fd97df976f942926bf8272eabbb8
3
  size 2760058
hf_staging_validation.json CHANGED
@@ -15,7 +15,7 @@
15
  "S"
16
  ],
17
  "zenodo_doi": "10.5281/zenodo.19951359",
18
- "archive_sha256": "701ad48d75ff34fabce82ee27271579f2ad83345a74a13468891beb0c6dc8f36",
19
  "archive_stats": {
20
  "members": 99,
21
  "ds_store": 0,
 
15
  "S"
16
  ],
17
  "zenodo_doi": "10.5281/zenodo.19951359",
18
+ "archive_sha256": "db1d5a74484f7feebecc59f9321b9fdbac93542e97fbb91ed00f729bc61c1c67",
19
  "archive_stats": {
20
  "members": 99,
21
  "ds_store": 0,
scripts/validate_cb_telemetry.py CHANGED
@@ -275,12 +275,50 @@ def validate_croissant(root: Path, errors: list[dict[str, str]]) -> None:
275
  except json.JSONDecodeError as exc:
276
  add_issue(errors, "croissant_json", f"croissant.json is invalid JSON: {exc}")
277
  return
278
- required = ["@context", "@type", "name", "description", "license", "distribution", "recordSet"]
 
 
 
 
 
 
 
 
 
 
279
  for key in required:
280
  if key not in data:
281
  add_issue(errors, "croissant_required_key", f"croissant.json missing required key: {key}")
 
 
282
  if "by-nc-sa" not in str(data.get("license", "")).lower():
283
  add_issue(errors, "croissant_license", "croissant.json license should identify CC BY-NC-SA 4.0.")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
 
285
 
286
  def write_report(root: Path, report: dict[str, object]) -> None:
 
275
  except json.JSONDecodeError as exc:
276
  add_issue(errors, "croissant_json", f"croissant.json is invalid JSON: {exc}")
277
  return
278
+ required = [
279
+ "@context",
280
+ "@type",
281
+ "name",
282
+ "description",
283
+ "url",
284
+ "license",
285
+ "conformsTo",
286
+ "distribution",
287
+ "recordSet",
288
+ ]
289
  for key in required:
290
  if key not in data:
291
  add_issue(errors, "croissant_required_key", f"croissant.json missing required key: {key}")
292
+ if data.get("@type") != "sc:Dataset":
293
+ add_issue(errors, "croissant_dataset_type", 'croissant.json @type should be "sc:Dataset".')
294
  if "by-nc-sa" not in str(data.get("license", "")).lower():
295
  add_issue(errors, "croissant_license", "croissant.json license should identify CC BY-NC-SA 4.0.")
296
+ rai_required = [
297
+ "rai:dataLimitations",
298
+ "rai:dataBiases",
299
+ "rai:personalSensitiveInformation",
300
+ "rai:dataUseCases",
301
+ "rai:dataSocialImpact",
302
+ "rai:hasSyntheticData",
303
+ "prov:wasDerivedFrom",
304
+ "prov:wasGeneratedBy",
305
+ ]
306
+ for key in rai_required:
307
+ value = data.get(key)
308
+ if key not in data or value is None or value == "" or value == []:
309
+ add_issue(errors, "croissant_rai_required_key", f"croissant.json missing required RAI/provenance key: {key}")
310
+ for item in data.get("distribution", []):
311
+ if item.get("@type") not in {"cr:FileObject", "sc:FileObject", "FileObject"}:
312
+ add_issue(errors, "croissant_distribution_type", f"croissant distribution {item.get('@id', item.get('name'))} is not a FileObject.")
313
+ for key in ["@id", "contentUrl", "encodingFormat"]:
314
+ if key not in item:
315
+ add_issue(errors, "croissant_distribution_required_key", f"croissant distribution missing {key}: {item}")
316
+ for record_set in data.get("recordSet", []):
317
+ if not record_set.get("@id"):
318
+ add_issue(errors, "croissant_recordset_id", f"croissant recordSet missing @id: {record_set.get('name')}")
319
+ for field in record_set.get("field", []):
320
+ if not (field.get("source") or "value" in field):
321
+ add_issue(errors, "croissant_field_source", f"croissant field missing source/value: {field.get('name')}")
322
 
323
 
324
  def write_report(root: Path, report: dict[str, object]) -> None: