forked from marco-bolo/csv-to-json-ld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataset.schema.json
More file actions
531 lines (531 loc) · 18.3 KB
/
Copy pathDataset.schema.json
File metadata and controls
531 lines (531 loc) · 18.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
{
"@context": "http://www.w3.org/ns/csvw",
"columns": [
{
"name": "id",
"titles": {
"en": [
"MBO Permanent Identifier*"
]
},
"dc:description": {
"en": [
"Note that when inputting into CSV files this should not be the full URI, \nbut just the last part, e.g. `mbo_0000001`.\nThis is the identifier (mPID) for this row of the spreadsheet \nand for whatever information is being described in this row. \nIt should be unique in this column."
]
},
"required": true,
"suppressOutput": true,
"datatype": {
"base": "string",
"format": "^mbo_[_0-9a-z]+$"
}
},
{
"name": "metadataPublisherId",
"titles": {
"en": [
"Data Entry Person (mPID - you)*"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of Person.csv"
]
},
"required": true,
"propertyUrl": "https://schema.org/creator",
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"valueUrl": "https://w3id.org/marco-bolo/{+metadataPublisherId}"
},
{
"name": "metadataDescribedForActionId",
"titles": {
"en": [
"Data Entered for Action (mPID)*"
]
},
"dc:description": {
"en": [
"The mPID from the first column of the Action.csv. \nNote that you can reference the same mPID in multiple rows.\n\nUses the <https://w3id.org/marco-bolo/isResultOf> predicate but ultimately ends up being \nrepresented as a triple in the form `<action> schema:result <this-entity>`."
]
},
"required": true,
"propertyUrl": "https://w3id.org/marco-bolo/isResultOf",
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"valueUrl": "https://w3id.org/marco-bolo/{+metadataDescribedForActionId}"
},
{
"name": "name",
"titles": {
"en": [
"Name*"
]
},
"dc:description": {
"en": [
"The commonly used name. \nFor example: `MBA` for Marine Biological Association"
]
},
"required": true,
"propertyUrl": "https://schema.org/name",
"datatype": {
"base": "string"
}
},
{
"name": "containsVariablesMboIds",
"titles": {
"en": [
"Contains Variables (PropertyValue mPIDs)*"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of the PropertyValue.csv\nPipe-delimited when there are multiple values"
]
},
"required": true,
"propertyUrl": "https://schema.org/variableMeasured",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "description",
"titles": {
"en": [
"Description"
]
},
"dc:description": {
"en": [
"A concise one-sentence summary of the main point or purpose."
]
},
"propertyUrl": "https://schema.org/description",
"datatype": {
"base": "string"
}
},
{
"name": "landingPage",
"titles": {
"en": [
"Landing Pages (URLs)"
]
},
"dc:description": {
"en": [
"For example: `https://example.com`, `http://example.com`, \n`ftp://ftp.example.org/data`, `doi:10.1000/example123`\n\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/url",
"separator": "|",
"datatype": {
"@id": "https://schema.org/URL",
"base": "string"
}
},
{
"name": "aboutTaxonMboIds",
"titles": {
"en": [
"Taxa (mPIDs)"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of the Taxon.csv\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/about",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "spatialCoveragePlaceMboId",
"titles": {
"en": [
"Spatial Coverage (Place - mPID)"
]
},
"propertyUrl": "https://schema.org/spatialCoverage",
"valueUrl": "https://w3id.org/marco-bolo/{+spatialCoveragePlaceMboId}"
},
{
"name": "temporalCoverage",
"titles": {
"en": [
"Temporal Coverage"
]
},
"dc:description": {
"en": [
"For example: `2012-01/2013-02`.\n\nMust conform to the [ISO8601 time interal specification](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals).\nThe MBO project only currently supports the start&end variety."
]
},
"propertyUrl": "https://schema.org/temporalCoverage",
"datatype": {
"base": "string",
"format": "^([+-]?\\d{4}((-?(-?(W[0-5][0-9]|[0-1][0-9])|([0-3][0-9][0-9])|((W[0-5][0-9]-?[0-7]|[0-3][0-9][0-9]|[0-1][0-9]-?[0-3][0-9])(T[0-2][0-9](:?[0-5][0-9](:?[0-5][0-9](\\.\\d+)?)?)?(Z|([+-][0-2][0-9](:?[0-5][0-9])?))?)?)))?)?)/(\\.\\.|[+-]?\\d{4}((-?(-?(W[0-5][0-9]|[0-1][0-9])|([0-3][0-9][0-9])|((W[0-5][0-9]-?[0-7]|[0-3][0-9][0-9]|[0-1][0-9]-?[0-3][0-9])(T[0-2][0-9](:?[0-5][0-9](:?[0-5][0-9](\\.\\d+)?)?)?(Z|([+-][0-2][0-9](:?[0-5][0-9])?))?)?)))?)?)$"
}
},
{
"name": "dataDownloadMboIds",
"titles": {
"en": [
"Data Downloads (mPIDs)"
]
},
"dc:description": {
"en": [
"a list of Pipe-delimited mPIDs from the first column of DataDownload.csv"
]
},
"propertyUrl": "https://schema.org/distribution",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "authorId",
"titles": {
"en": [
"Author (mPID)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of either Person.csv or Organization.csv"
]
},
"propertyUrl": "https://schema.org/author",
"valueUrl": "https://w3id.org/marco-bolo/{+authorId}"
},
{
"name": "contributorIds",
"titles": {
"en": [
"Contributors (mPIDs)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of either Person.csv or Organization.csv\nPipe-delimited when there are multiple values."
]
},
"propertyUrl": "https://schema.org/contributor",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "ownerId",
"titles": {
"en": [
"Owner (mPID)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of either Person.csv or Organization.csv"
]
},
"propertyUrl": "https://schema.org/copyrightHolder",
"valueUrl": "https://w3id.org/marco-bolo/{+ownerId}"
},
{
"name": "maintainerId",
"titles": {
"en": [
"Maintainer (mPID)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of either Person.csv or Organization.csv"
]
},
"propertyUrl": "https://schema.org/maintainer",
"valueUrl": "https://w3id.org/marco-bolo/{+maintainerId}"
},
{
"name": "publisherId",
"titles": {
"en": [
"Publisher (mPID)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of either Person.csv or Organization.csv"
]
},
"propertyUrl": "https://schema.org/publisher",
"valueUrl": "https://w3id.org/marco-bolo/{+publisherId}"
},
{
"name": "basedOnIds",
"titles": {
"en": [
"Based On (URL PIDs)"
]
},
"dc:description": {
"en": [
"WARNING: There are no foreign key checks.\n\nFor example: `https://example.com`, `http://example.com`, \n`ftp://ftp.example.org/data`, `doi:10.1000/example123`\n\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/isBasedOn",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertIriToNode",
"base": "string"
}
},
{
"name": "hasPartIds",
"titles": {
"en": [
"Has Parts (URL PIDs)"
]
},
"dc:description": {
"en": [
"WARNING: There are no foreign key checks.\nYou are required to use the full URI here to reference pre-existing Datasets.\n\nFor example: `https://example.com`, `http://example.com`, \n`ftp://ftp.example.org/data`, `doi:10.1000/example123`\n\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/hasPart",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertIriToNode",
"base": "string"
}
},
{
"name": "publishingStatusMboId",
"titles": {
"en": [
"Publishing Status (mPID)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of PublishingStatusDefinedTerm.csv"
]
},
"propertyUrl": "https://schema.org/creativeWorkStatus",
"valueUrl": "https://w3id.org/marco-bolo/{+publishingStatusMboId}"
},
{
"name": "embargoStatementMboId",
"titles": {
"en": [
"Embargo Statement (mPID)"
]
},
"propertyUrl": "https://schema.org/usageInfo",
"valueUrl": "https://w3id.org/marco-bolo/{+embargoStatementMboId}"
},
{
"name": "dateCreated",
"titles": {
"en": [
"Date Created"
]
},
"dc:description": {
"en": [
"A date in ISO8601, YYYY, YYYY-MM, or YYYY-MM-DD format\nFor example: `2025`\n`2025-12`\n`2025-12-31`"
]
},
"propertyUrl": "https://schema.org/dateCreated",
"datatype": {
"base": "string",
"format": "^(\\d{4}(-\\d{2}(-\\d{2})?)?)$"
}
},
{
"name": "dateModified",
"titles": {
"en": [
"Dates Modified"
]
},
"dc:description": {
"en": [
"A date in ISO8601, YYYY, YYYY-MM, or YYYY-MM-DD format\nFor example: `2025`\n`2025-12`\n`2025-12-31`\n\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/dateModified",
"separator": "|",
"datatype": {
"base": "string",
"format": "^(\\d{4}(-\\d{2}(-\\d{2})?)?)$"
}
},
{
"name": "datePublished",
"titles": {
"en": [
"Date Published"
]
},
"dc:description": {
"en": [
"A date in ISO8601, YYYY, YYYY-MM, or YYYY-MM-DD format\nFor example: `2025`\n`2025-12`\n`2025-12-31`"
]
},
"propertyUrl": "https://schema.org/datePublished",
"datatype": {
"base": "string",
"format": "^(\\d{4}(-\\d{2}(-\\d{2})?)?)$"
}
},
{
"name": "inProgressDate",
"titles": {
"en": [
"In Progress Date"
]
},
"dc:description": {
"en": [
"A date in ISO8601, YYYY, YYYY-MM, or YYYY-MM-DD format\nFor example: `2025`\n`2025-12`\n`2025-12-31`"
]
},
"propertyUrl": "https://w3id.org/marco-bolo/inProgressDate",
"datatype": {
"base": "string",
"format": "^(\\d{4}(-\\d{2}(-\\d{2})?)?)$"
}
},
{
"name": "licenseMboId",
"titles": {
"en": [
"License (mPID)"
]
},
"dc:description": {
"en": [
"If you are unsure, please use 'undefined' as a placeholder until\nyou can update it.\nIf restriction is needed, please use 'Restricted. Please contact product owner.'"
]
},
"propertyUrl": "https://schema.org/license",
"valueUrl": "https://w3id.org/marco-bolo/{+licenseMboId}"
},
{
"name": "conditionsOfAccess",
"titles": {
"en": [
"Conditions of Access"
]
},
"dc:description": {
"en": [
"For example: `Access controlled by [Country] Fisheries Management Authority due to commercial sensitivity \nand resource management considerations. Contact [specific office/person] at [contact details]`"
]
},
"propertyUrl": "https://schema.org/conditionsOfAccess",
"datatype": {
"base": "string"
}
},
{
"name": "keywords",
"titles": {
"en": [
"Keywords"
]
},
"dc:description": {
"en": [
"Separate multiple keyword with a '|'.\ne.g. Whales|Population Genetics"
]
},
"propertyUrl": "https://schema.org/keywords",
"separator": "|",
"datatype": {
"base": "string"
}
},
{
"name": "audienceMboIds",
"titles": {
"en": [
"Audiences (mPIDs)"
]
},
"dc:description": {
"en": [
"Should be an mPID from the first column of Audience.csv"
]
},
"propertyUrl": "https://schema.org/audience",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"virtual": true,
"propertyUrl": "rdf:type",
"valueUrl": "https://schema.org/Dataset"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "rdf:type",
"valueUrl": "https://schema.org/DataDownload"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "rdf:type",
"valueUrl": "https://w3id.org/marco-bolo/InputMetadataDescription"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "https://schema.org/about",
"valueUrl": "https://w3id.org/marco-bolo/{+id}"
},
{
"virtual": true,
"aboutUrl": "https://w3id.org/marco-bolo/{+id}#input-metadata",
"propertyUrl": "https://schema.org/contentUrl",
"valueUrl": "https://w3id.org/marco-bolo/mbo_0000009#row={_row}"
}
],
"aboutUrl": "https://w3id.org/marco-bolo/{+id}",
"primaryKey": [
"id"
],
"foreignKeys": [
{
"columnReference": "metadataPublisherId",
"reference": {
"resource": "../out/validation/person-or-organization.csv",
"columnReference": "id"
}
},
{
"columnReference": "metadataDescribedForActionId",
"reference": {
"resource": "../data/Action.csv",
"columnReference": "id"
}
}
]
}