forked from marco-bolo/csv-to-json-ld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.schema.json
More file actions
273 lines (273 loc) · 9.57 KB
/
Copy pathAction.schema.json
File metadata and controls
273 lines (273 loc) · 9.57 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
{
"@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": "agentId",
"titles": {
"en": [
"Agent (mPID)*"
]
},
"dc:description": {
"en": [
"This identifier must be defined in the CSV file Person.csv or Organization.csv"
]
},
"required": true,
"propertyUrl": "https://schema.org/agent",
"valueUrl": "https://w3id.org/marco-bolo/{+agentId}"
},
{
"name": "abstract",
"titles": {
"en": [
"Abstract"
]
},
"dc:description": {
"en": [
"A brief summary that captures the essence of this entity in ~ 1-5 sentences. \nThink of this as what would appear in search results or catalog listings,\nit should quickly convey the main purpose or key points without technical details."
]
},
"propertyUrl": "https://schema.org/abstract",
"datatype": {
"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": "howToPerformActionMboId",
"titles": {
"en": [
"How To (mPID)"
]
},
"dc:description": {
"en": [
"This identifier must be defined in the CSV file HowTo.csv"
]
},
"propertyUrl": "https://schema.org/actionProcess",
"valueUrl": "https://w3id.org/marco-bolo/{+howToPerformActionMboId}"
},
{
"name": "participantIds",
"titles": {
"en": [
"Participants (mPIDs)"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of either Person.csv or Organization.csv\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/participant",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "actionInputPids",
"titles": {
"en": [
"Inputs (URL PIDs)"
]
},
"dc:description": {
"en": [
"This should be a URL to a digital object (dataset, publication, etc)\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/object",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertIriToNode",
"base": "string"
}
},
{
"name": "resultingDatasetMboIds",
"titles": {
"en": [
"Resulting Datasets (mPIDs)"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of Dataset.csv\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/result",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "childActionMboIds",
"titles": {
"en": [
"Child Actions (mPIDs)"
]
},
"dc:description": {
"en": [
"This child action must be defined in the CSV file Action.csv. \nWhat defines a child action vs a subsequent action is up to you: \nfor example, if you are creating your own datasets from published data, \nfor 2 different parameters, the parent action could be \n`collating physical parameters` and the child actions could be, `...for CO2`, `...for Chla`\n\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/result",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"virtual": true,
"propertyUrl": "rdf:type",
"valueUrl": "https://schema.org/CreateAction"
},
{
"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_0000004#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"
}
},
{
"columnReference": "agentId",
"reference": {
"resource": "../out/validation/person-or-organization.csv",
"columnReference": "id"
}
}
]
}