forked from marco-bolo/csv-to-json-ld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerson.schema.json
More file actions
208 lines (208 loc) · 6.94 KB
/
Copy pathPerson.schema.json
File metadata and controls
208 lines (208 loc) · 6.94 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
{
"@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": "givenName",
"titles": {
"en": [
"Given Name*"
]
},
"required": true,
"propertyUrl": "https://schema.org/givenName",
"datatype": {
"base": "string"
}
},
{
"name": "familyName",
"titles": {
"en": [
"Family Name*"
]
},
"required": true,
"propertyUrl": "https://schema.org/familyName",
"datatype": {
"base": "string"
}
},
{
"name": "worksForOrganizationMboIds",
"titles": {
"en": [
"Works for Organizations (mPIDs)"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of Organization.csv\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/worksFor",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "affiliatedOrganizationMboIds",
"titles": {
"en": [
"Affiliated to Organizations (mPIDs)"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of Organization.csv\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/affiliation",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "contactPointMboIds",
"titles": {
"en": [
"Contact Points (mPIDs)"
]
},
"dc:description": {
"en": [
"mPID(s) from the first column of ContactPoint.csv\nPipe-delimited when there are multiple values"
]
},
"propertyUrl": "https://schema.org/contactPoint",
"separator": "|",
"datatype": {
"@id": "https://w3id.org/marco-bolo/ConvertMboIdToNode",
"base": "string"
}
},
{
"name": "identifiers",
"titles": {
"en": [
"Identifiers"
]
},
"dc:description": {
"en": [
"Can include any kind on non-MBO identifiers like ROR, ORCID, DOI, ISBNs, IGSN, UUIDs, etc."
]
},
"propertyUrl": "https://schema.org/identifier",
"separator": "|",
"datatype": {
"base": "string"
}
},
{
"virtual": true,
"propertyUrl": "rdf:type",
"valueUrl": "https://schema.org/Person"
},
{
"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_0000019#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"
}
}
]
}