forked from VRK-YTI/yti-datamodel-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxmlschema-to-jsonschema.json
297 lines (297 loc) · 13.2 KB
/
xmlschema-to-jsonschema.json
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
{
"type" : "object",
"properties" : {
"resource" : {
"type" : "object",
"properties" : {
"identifier" : {
"type" : "string",
"description" : "A persistent identifier that identifies a resource.Currently, only DOI is allowed.",
"title" : "identifier",
"@id" : "http://datacite.org/schema/kernel-3identifier"
},
"creators" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"creator" : {
"type" : "object",
"properties" : {
"creatorName" : {
"type" : "string",
"title" : "creatorName",
"@id" : "http://datacite.org/schema/kernel-3creatorName"
},
"nameIdentifier" : {
"type" : "string",
"title" : "nameIdentifier",
"@id" : "http://datacite.org/schema/kernel-3nameIdentifier"
},
"affiliation" : {
"type" : "string",
"title" : "affiliation"
}
},
"description" : "The main researchers involved working on the data, or the authors of the publication in priority order. May be a corporate/institutional or personal name.Format: Family, Given.",
"title" : "creator",
"@id" : "http://datacite.org/schema/kernel-3creator"
}
}
},
"title" : "creators",
"@id" : "http://datacite.org/schema/kernel-3creators"
},
"titles" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A name or title by which a resource is known.",
"title" : "title",
"@id" : "http://datacite.org/schema/kernel-3title"
}
}
},
"title" : "titles",
"@id" : "http://datacite.org/schema/kernel-3titles"
},
"publisher" : {
"type" : "string",
"description" : "The name of the entity that holds, archives, publishes prints, distributes, releases, issues, or produces the resource. This property will be used to formulate the citation, so consider the prominence of the role.In the case of datasets, \"publish\" is understood to mean making the data available to the community of researchers.",
"title" : "publisher",
"@id" : "http://datacite.org/schema/kernel-3publisher"
},
"publicationYear" : {
"type" : "string",
"description" : "Year when the data is made publicly available. If an embargo period has been in effect, use the date when the embargo period ends.In the case of datasets, \"publish\" is understood to mean making the data available on a specific date to the community of researchers. If there is no standard publication year value, use the date that would be preferred from a citation perspective.YYYY",
"title" : "publicationYear",
"@id" : "http://datacite.org/schema/kernel-3publicationYear"
},
"subjects" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"subject" : {
"type" : "string",
"description" : "Subject, keywords, classification codes, or key phrases describing the resource.",
"title" : "subject",
"@id" : "http://datacite.org/schema/kernel-3subject"
}
}
},
"title" : "subjects",
"@id" : "http://datacite.org/schema/kernel-3subjects"
},
"contributors" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"contributor" : {
"type" : "object",
"properties" : {
"contributorName" : {
"type" : "string",
"title" : "contributorName",
"@id" : "http://datacite.org/schema/kernel-3contributorName"
},
"nameIdentifier" : {
"type" : "string",
"title" : "nameIdentifier",
"@id" : "http://datacite.org/schema/kernel-3nameIdentifier"
},
"affiliation" : {
"type" : "string",
"title" : "affiliation"
}
},
"description" : "The institution or person responsible for collecting, creating, or otherwise contributing to the developement of the dataset.The personal name format should be: Family, Given.",
"title" : "contributor",
"@id" : "http://datacite.org/schema/kernel-3contributor"
}
}
},
"title" : "contributors",
"@id" : "http://datacite.org/schema/kernel-3contributors"
},
"dates" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"date" : {
"type" : "string",
"description" : "Different dates relevant to the work.YYYY,YYYY-MM-DD, YYYY-MM-DDThh:mm:ssTZD or any other format or level of granularity described in W3CDTF. Use RKMS-ISO8601 standard for depicting date ranges.",
"title" : "date",
"@id" : "http://datacite.org/schema/kernel-3date"
}
}
},
"title" : "dates",
"@id" : "http://datacite.org/schema/kernel-3dates"
},
"language" : {
"type" : "unknown",
"description" : "Primary language of the resource. Allowed values are taken from IETF BCP 47, ISO 639-1 language codes.",
"title" : "language",
"@id" : "http://datacite.org/schema/kernel-3language"
},
"resourceType" : {
"type" : "string",
"description" : "The type of a resource. You may enter an additional free text description.The format is open, but the preferred format is a single term of some detail so that a pair can be formed with the sub-property.",
"title" : "resourceType",
"@id" : "http://datacite.org/schema/kernel-3resourceType"
},
"alternateIdentifiers" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"alternateIdentifier" : {
"type" : "string",
"description" : "An identifier or identifiers other than the primary Identifier applied to the resource being registered. This may be any alphanumeric string which is unique within its domain of issue. May be used for local identifiers. AlternateIdentifier should be used for another identifier of the same instance (same location, same file).",
"title" : "alternateIdentifier",
"@id" : "http://datacite.org/schema/kernel-3alternateIdentifier"
}
}
},
"title" : "alternateIdentifiers",
"@id" : "http://datacite.org/schema/kernel-3alternateIdentifiers"
},
"relatedIdentifiers" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"relatedIdentifier" : {
"type" : "string",
"description" : "Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.",
"title" : "relatedIdentifier",
"@id" : "http://datacite.org/schema/kernel-3relatedIdentifier"
}
}
},
"title" : "relatedIdentifiers",
"@id" : "http://datacite.org/schema/kernel-3relatedIdentifiers"
},
"sizes" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"size" : {
"type" : "string",
"description" : "Unstructures size information about the resource.",
"title" : "size",
"@id" : "http://datacite.org/schema/kernel-3size"
}
}
},
"title" : "sizes",
"@id" : "http://datacite.org/schema/kernel-3sizes"
},
"formats" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"format" : {
"type" : "string",
"description" : "Technical format of the resource.Use file extension or MIME type where possible.",
"title" : "format",
"@id" : "http://datacite.org/schema/kernel-3format"
}
}
},
"title" : "formats",
"@id" : "http://datacite.org/schema/kernel-3formats"
},
"version" : {
"type" : "string",
"description" : "Version number of the resource. If the primary resource has changed the version number increases.Register a new identifier for a major version change. Individual stewards need to determine which are major vs. minor versions. May be used in conjunction with properties 11 and 12 (AlternateIdentifier and RelatedIdentifier) to indicate various information updates. May be used in conjunction with property 17 (Description) to indicate the nature and file/record range of version.",
"title" : "version",
"@id" : "http://datacite.org/schema/kernel-3version"
},
"rightsList" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"rights" : {
"type" : "string",
"description" : "Any rights information for this resource. Provide a rights management statement for the resource or reference a service providing such information. Include embargo information if applicable. \nUse the complete title of a license and include version information if applicable.",
"title" : "rights",
"@id" : "http://datacite.org/schema/kernel-3rights"
}
}
},
"title" : "rightsList",
"@id" : "http://datacite.org/schema/kernel-3rightsList"
},
"descriptions" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"description" : {
"type" : "object",
"properties" : {
"br" : {
"type" : "string",
"title" : "br",
"@id" : "http://datacite.org/schema/kernel-3br"
}
},
"description" : "All additional information that does not fit in any of the other categories. May be used for technical information. It is a best practice to supply a description.",
"title" : "description",
"@id" : "http://datacite.org/schema/kernel-3description"
}
}
},
"title" : "descriptions",
"@id" : "http://datacite.org/schema/kernel-3descriptions"
},
"geoLocations" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"geoLocation" : {
"type" : "object",
"properties" : {
"geoLocationPoint" : {
"type" : "string",
"title" : "geoLocationPoint",
"@id" : "http://datacite.org/schema/kernel-3geoLocationPoint"
},
"geoLocationBox" : {
"type" : "string",
"title" : "geoLocationBox",
"@id" : "http://datacite.org/schema/kernel-3geoLocationBox"
},
"geoLocationPlace" : {
"type" : "string",
"title" : "geoLocationPlace"
}
},
"description" : "Spatial region or named place where the data was gathered or about which the data is focused.A point contains a single latitude-longitude pair, separated by whitespace.A box contains two white space separated latitude-longitude pairs, with each pair separated by whitespace. The first pair is the lower corner, the second is the upper corner.",
"title" : "geoLocation",
"@id" : "http://datacite.org/schema/kernel-3geoLocation"
}
}
},
"title" : "geoLocations",
"@id" : "http://datacite.org/schema/kernel-3geoLocations"
}
},
"description" : "Root element of a single record. This wrapper element is for XML implementation only and is not defined in the DataCite DOI standard.\n Note: This is the case for all wrapper elements within this schema!No content in this wrapper element.",
"title" : "resource",
"@id" : "http://datacite.org/schema/kernel-3resource"
}
},
"$schema" : "http://json-schema.org/draft-04/schema#"
}