bolognese 2.2.0 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/bolognese/metadata_utils.rb +1 -0
  4. data/lib/bolognese/readers/citeproc_reader.rb +6 -0
  5. data/lib/bolognese/readers/crossref_reader.rb +37 -3
  6. data/lib/bolognese/readers/schema_org_reader.rb +21 -2
  7. data/lib/bolognese/utils.rb +12 -7
  8. data/lib/bolognese/version.rb +1 -1
  9. data/lib/bolognese/writers/schema_org_writer.rb +4 -0
  10. data/resources/kernel-4/include/datacite-contributorType-v4.xsd +3 -1
  11. data/resources/kernel-4/include/datacite-dateType-v4.xsd +3 -1
  12. data/resources/kernel-4/include/datacite-relatedIdentifierType-v4.xsd +5 -2
  13. data/resources/kernel-4/include/datacite-relationType-v4.xsd +7 -3
  14. data/resources/kernel-4/include/datacite-resourceType-v4.xsd +5 -1
  15. data/resources/kernel-4/include/datacite-titleType-v4.xsd +1 -1
  16. data/resources/kernel-4/metadata.xsd +2 -1
  17. data/resources/kernel-4.6/include/datacite-contributorType-v4.xsd +37 -0
  18. data/resources/kernel-4.6/include/datacite-dateType-v4.xsd +27 -0
  19. data/resources/kernel-4.6/include/datacite-descriptionType-v4.xsd +19 -0
  20. data/resources/kernel-4.6/include/datacite-funderIdentifierType-v4.xsd +16 -0
  21. data/resources/kernel-4.6/include/datacite-nameType-v4.xsd +10 -0
  22. data/resources/kernel-4.6/include/datacite-numberType-v4.xsd +12 -0
  23. data/resources/kernel-4.6/include/datacite-relatedIdentifierType-v4.xsd +37 -0
  24. data/resources/kernel-4.6/include/datacite-relationType-v4.xsd +57 -0
  25. data/resources/kernel-4.6/include/datacite-resourceType-v4.xsd +49 -0
  26. data/resources/kernel-4.6/include/datacite-titleType-v4.xsd +14 -0
  27. data/resources/kernel-4.6/include/xml.xsd +286 -0
  28. data/resources/kernel-4.6/metadata.xsd +712 -0
  29. data/spec/datacite_utils_spec.rb +109 -1
  30. data/spec/fixtures/citeproc.json +6 -2
  31. data/spec/fixtures/crossref_schema_4.6_values.xml +183 -0
  32. data/spec/fixtures/datacite-example-full-v4.6.xml +114 -0
  33. data/spec/fixtures/schema_org_4.6_attributes.json +108 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_contributors_Translator/supports_Translator_contributorType.yml +71 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_dates_with_Coverage/inserts_date_with_dateType_Coverage.yml +71 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers_CSTR/supports_CSTR_relatedIdentifierType.yml +71 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers_HasTranslation/supports_HasTranslation_relationType.yml +71 -0
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_related_identifiers_RRID/supports_RRID_relatedIdentifierType.yml +71 -0
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_resource_type_with_Award/supports_Award_as_resourceTypeGeneral.yml +71 -0
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/insert_resource_type_with_Project/supports_Project_as_resourceTypeGeneral.yml +71 -0
  41. data/spec/readers/citeproc_reader_spec.rb +1 -0
  42. data/spec/readers/crossref_reader_spec.rb +31 -0
  43. data/spec/readers/datacite_reader_spec.rb +41 -0
  44. data/spec/readers/schema_org_reader_spec.rb +27 -0
  45. data/spec/writers/citeproc_writer_spec.rb +9 -0
  46. data/spec/writers/datacite_writer_spec.rb +71 -0
  47. data/spec/writers/jats_writer_spec.rb +1 -1
  48. data/spec/writers/schema_org_writer_spec.rb +36 -0
  49. metadata +24 -2
@@ -0,0 +1,712 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Revision history
3
+ 2010-08-26 Complete revision according to new common specification by the metadata work group after review. AJH, DTIC
4
+ 2010-11-17 Revised to current state of kernel review, FZ, TIB
5
+ 2011-01-17 Complete revision after community review. FZ, TIB
6
+ 2011-03-17 Release of v2.1: added a namespace; mandatory properties got minLength; changes in the definitions of relationTypes IsDocumentedBy/Documents and isCompiledBy/Compiles; changes type of property "Date" from xs:date to xs:string. FZ, TIB
7
+ 2011-06-27 v2.2: namespace: kernel-2.2, additions to controlled lists "resourceType", "contributorType", "relatedIdentifierType", and "descriptionType". Removal of intermediate include-files.
8
+ 2013-07-24 v3.0: namespace: kernel-3.0; delete LastMetadataUpdate & MetadateVersionNumber; additions to controlled lists "contributorType", "dateType", "descriptionType", "relationType", "relatedIdentifierType" & "resourceType"; deletion of "StartDate" & "EndDate" from list "dateType" and "Film" from "resourceType"; allow arbitrary order of elements; allow optional wrapper elements to be empty; include xml:lang attribute for title, subject & description; include attribute schemeURI for nameIdentifier of creator, contributor & subject; added new attributes "relatedMetadataScheme", "schemeURI" & "schemeType" to relatedIdentifier; included new property "geoLocation"
9
+ 2014-08-20 v3.1: additions to controlled lists "relationType", contributorType" and "relatedIdentifierType"; introduction of new child element "affiliation" to "creator" and "contributor"
10
+ 2016-09-19 v4.0: namespace: kernel-4.0; makes "resourceType" required field, added optional "givenName" and "familyName" to creator and contributor, added "funderReference", added "valueURI" for subject, added "geoLocationPolygon"
11
+ 2017-10-23 v4.1: Addition of dateType value "Other", relationType values "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy", resourceType value "DataPaper", new subproperties "dateInformation", "inPolygonPoint", new attribute "nameType", optional attribute "resourceTypeGeneral" for relatedIdentifier
12
+ 2018-09-08 v4.1.1 Make schema 4.1 backwards compatible to 4.0 by allowing geolocation elements in any order
13
+ 2019-02-14 v4.2: Addition of dateType value "Withdrawn", relationType values "Obsoletes", "isObsoletedBy", addition of new subproperties for Rights: rightsIdentifier, rightsIdentifierScheme, schemeURI, addition of the XML language attribute to the properties Creator, Contributor and Publisher for organizational names, don't check format of DOI
14
+ 2019-07-13 v4.3: Addition of new subproperties for Affiliation: "affiliationIdentifier", "affiliationIdentifierScheme", "schemeURI", addition of new sub-property for funderIdentifier: "schemeURI", addition of new funderIdentifierScheme: "ROR", added documentation for nameIdentifier
15
+ 2021-03-08 v4.4: Addition of new property relatedItem, relationType value "isPublishedIn", subject subproperty "classificationCode", controlled list "numberType", additional 13 properties for controlled list "resourceType"
16
+ 2024-01-22 v4.5: Addition of new subproperties for publisher: "publisherIdentifier", "publisherIdentifierScheme", and "schemeURI"; addition of new resourceTypeGeneral values "Instrument" and "StudyRegistration"; addition of new relationType values "Collects" and "IsCollectedBy".
17
+ 2024-12-31 v4.6: Addition of new resourceTypeGeneral values "Award" and "Project"; addiition of new relatedIdentifierType values "CSTR" and "RRID"; addition of new contributorType "Translator"; addition of new relationTypes "HasTranslation" and "IsTranslationOf"; addition of new dateType "Coverage".-->
18
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
19
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="include/xml.xsd" />
20
+ <xs:include schemaLocation="include/datacite-titleType-v4.xsd" />
21
+ <xs:include schemaLocation="include/datacite-contributorType-v4.xsd" />
22
+ <xs:include schemaLocation="include/datacite-dateType-v4.xsd" />
23
+ <xs:include schemaLocation="include/datacite-resourceType-v4.xsd" />
24
+ <xs:include schemaLocation="include/datacite-relationType-v4.xsd" />
25
+ <xs:include schemaLocation="include/datacite-relatedIdentifierType-v4.xsd" />
26
+ <xs:include schemaLocation="include/datacite-funderIdentifierType-v4.xsd" />
27
+ <xs:include schemaLocation="include/datacite-descriptionType-v4.xsd" />
28
+ <xs:include schemaLocation="include/datacite-nameType-v4.xsd" />
29
+ <xs:include schemaLocation="include/datacite-numberType-v4.xsd" />
30
+ <xs:element name="resource">
31
+ <xs:annotation>
32
+ <xs:documentation>
33
+ Root element of a single record. This wrapper element is for XML implementation only and is not defined in the DataCite DOI standard.
34
+ Note: This is the case for all wrapper elements within this schema.</xs:documentation>
35
+ <xs:documentation>No content in this wrapper element.</xs:documentation>
36
+ </xs:annotation>
37
+ <xs:complexType>
38
+ <xs:all>
39
+ <!--REQUIRED FIELDS-->
40
+ <xs:element name="identifier">
41
+ <xs:annotation>
42
+ <xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
43
+ </xs:annotation>
44
+ <xs:complexType>
45
+ <xs:simpleContent>
46
+ <xs:extension base="nonemptycontentStringType">
47
+ <xs:attribute name="identifierType" use="required" />
48
+ </xs:extension>
49
+ </xs:simpleContent>
50
+ </xs:complexType>
51
+ </xs:element>
52
+ <xs:element name="creators">
53
+ <xs:complexType>
54
+ <xs:sequence>
55
+ <xs:element name="creator" maxOccurs="unbounded">
56
+ <xs:annotation>
57
+ <xs:documentation>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.</xs:documentation>
58
+ <xs:documentation>Format: Family, Given.</xs:documentation>
59
+ <xs:documentation>Personal names can be further specified using givenName and familyName.</xs:documentation>
60
+ </xs:annotation>
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element name="creatorName">
64
+ <xs:complexType>
65
+ <xs:simpleContent>
66
+ <xs:extension base="xs:string">
67
+ <xs:attribute name="nameType" type="nameType" use="optional" />
68
+ <xs:attribute ref="xml:lang" />
69
+ </xs:extension>
70
+ </xs:simpleContent>
71
+ </xs:complexType>
72
+ </xs:element>
73
+ <xs:element name="givenName" minOccurs="0" />
74
+ <xs:element name="familyName" minOccurs="0" />
75
+ <xs:element name="nameIdentifier" xsi:type="nameIdentifier" minOccurs="0" maxOccurs="unbounded" />
76
+ <xs:element name="affiliation" xsi:type="affiliation" minOccurs="0" maxOccurs="unbounded" />
77
+ </xs:sequence>
78
+ </xs:complexType>
79
+ </xs:element>
80
+ </xs:sequence>
81
+ </xs:complexType>
82
+ </xs:element>
83
+ <xs:element name="titles">
84
+ <xs:complexType>
85
+ <xs:sequence>
86
+ <xs:element name="title" maxOccurs="unbounded">
87
+ <xs:annotation>
88
+ <xs:documentation>A name or title by which a resource is known.</xs:documentation>
89
+ </xs:annotation>
90
+ <xs:complexType>
91
+ <xs:simpleContent>
92
+ <xs:extension base="xs:string">
93
+ <xs:attribute name="titleType" type="titleType" use="optional" />
94
+ <xs:attribute ref="xml:lang" />
95
+ </xs:extension>
96
+ </xs:simpleContent>
97
+ </xs:complexType>
98
+ </xs:element>
99
+ </xs:sequence>
100
+ </xs:complexType>
101
+ </xs:element>
102
+ <xs:element name="publisher">
103
+ <xs:annotation>
104
+ <xs:documentation>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.</xs:documentation>
105
+ <xs:documentation>In the case of datasets, "publish" is understood to mean making the data available to the community of researchers.</xs:documentation>
106
+ </xs:annotation>
107
+ <xs:complexType>
108
+ <xs:simpleContent>
109
+ <xs:extension base="nonemptycontentStringType">
110
+ <xs:attribute name="publisherIdentifier" type="xs:string" use="optional" />
111
+ <xs:attribute name="publisherIdentifierScheme" type="xs:string" use="optional" />
112
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
113
+ <xs:attribute ref="xml:lang" />
114
+ </xs:extension>
115
+ </xs:simpleContent>
116
+ </xs:complexType>
117
+ </xs:element>
118
+ <xs:element name="publicationYear">
119
+ <xs:annotation>
120
+ <xs:documentation>Year when the data is made publicly available. If an embargo period has been in effect, use the date when the embargo period ends.</xs:documentation>
121
+ <xs:documentation>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.</xs:documentation>
122
+ <xs:documentation>YYYY</xs:documentation>
123
+ </xs:annotation>
124
+ <xs:simpleType>
125
+ <xs:restriction base="yearType" />
126
+ </xs:simpleType>
127
+ </xs:element>
128
+ <xs:element name="resourceType">
129
+ <xs:annotation>
130
+ <xs:documentation>The type of a resource. You may enter an additional free text description.</xs:documentation>
131
+ <xs:documentation>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.</xs:documentation>
132
+ </xs:annotation>
133
+ <xs:complexType>
134
+ <xs:simpleContent>
135
+ <xs:extension base="xs:string">
136
+ <xs:attribute name="resourceTypeGeneral" type="resourceType" use="required" />
137
+ </xs:extension>
138
+ </xs:simpleContent>
139
+ </xs:complexType>
140
+ </xs:element>
141
+ <!--OPTIONAL FIELDS-->
142
+ <xs:element name="subjects" minOccurs="0">
143
+ <xs:complexType>
144
+ <xs:sequence>
145
+ <xs:element name="subject" minOccurs="0" maxOccurs="unbounded">
146
+ <xs:annotation>
147
+ <xs:documentation>Subject, keywords, classification codes, or key phrases describing the resource.</xs:documentation>
148
+ </xs:annotation>
149
+ <xs:complexType>
150
+ <xs:simpleContent>
151
+ <xs:extension base="xs:string">
152
+ <xs:attribute name="subjectScheme" use="optional" />
153
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
154
+ <xs:attribute name="valueURI" type="xs:anyURI" use="optional" />
155
+ <xs:attribute name="classificationCode" type="xs:anyURI" use="optional" />
156
+ <xs:attribute ref="xml:lang" />
157
+ </xs:extension>
158
+ </xs:simpleContent>
159
+ </xs:complexType>
160
+ </xs:element>
161
+ </xs:sequence>
162
+ </xs:complexType>
163
+ </xs:element>
164
+ <xs:element name="contributors" minOccurs="0">
165
+ <xs:complexType>
166
+ <xs:sequence>
167
+ <xs:element name="contributor" minOccurs="0" maxOccurs="unbounded">
168
+ <xs:annotation>
169
+ <xs:documentation>The institution or person responsible for collecting, creating, or otherwise contributing to the development of the dataset.</xs:documentation>
170
+ <xs:documentation>The personal name format should be: Family, Given.</xs:documentation>
171
+ </xs:annotation>
172
+ <xs:complexType>
173
+ <xs:sequence>
174
+ <xs:element name="contributorName">
175
+ <xs:complexType>
176
+ <xs:simpleContent>
177
+ <xs:extension base="nonemptycontentStringType">
178
+ <xs:attribute name="nameType" type="nameType" use="optional" />
179
+ <xs:attribute ref="xml:lang" />
180
+ </xs:extension>
181
+ </xs:simpleContent>
182
+ </xs:complexType>
183
+ </xs:element>
184
+ <xs:element name="givenName" minOccurs="0" />
185
+ <xs:element name="familyName" minOccurs="0" />
186
+ <xs:element name="nameIdentifier" xsi:type="nameIdentifier" minOccurs="0" maxOccurs="unbounded" />
187
+ <xs:element name="affiliation" xsi:type="affiliation" minOccurs="0" maxOccurs="unbounded" />
188
+ </xs:sequence>
189
+ <xs:attribute name="contributorType" type="contributorType" use="required" />
190
+ </xs:complexType>
191
+ </xs:element>
192
+ </xs:sequence>
193
+ </xs:complexType>
194
+ </xs:element>
195
+ <xs:element name="dates" minOccurs="0">
196
+ <xs:complexType>
197
+ <xs:sequence>
198
+ <xs:element name="date" minOccurs="0" maxOccurs="unbounded">
199
+ <xs:annotation>
200
+ <xs:documentation>Different dates relevant to the work.</xs:documentation>
201
+ <xs:documentation>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.</xs:documentation>
202
+ </xs:annotation>
203
+ <xs:complexType>
204
+ <xs:simpleContent>
205
+ <xs:extension base="xs:string">
206
+ <xs:attribute name="dateType" type="dateType" use="required" />
207
+ <xs:attribute name="dateInformation" use="optional" />
208
+ </xs:extension>
209
+ </xs:simpleContent>
210
+ </xs:complexType>
211
+ </xs:element>
212
+ </xs:sequence>
213
+ </xs:complexType>
214
+ </xs:element>
215
+ <xs:element name="language" type="xs:language" minOccurs="0">
216
+ <xs:annotation>
217
+ <xs:documentation>Primary language of the resource. Allowed values are taken from IETF BCP 47, ISO 639-1 language codes.</xs:documentation>
218
+ </xs:annotation>
219
+ </xs:element>
220
+ <xs:element name="alternateIdentifiers" minOccurs="0">
221
+ <xs:complexType>
222
+ <xs:sequence>
223
+ <xs:element name="alternateIdentifier" minOccurs="0" maxOccurs="unbounded">
224
+ <xs:annotation>
225
+ <xs:documentation>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).</xs:documentation>
226
+ </xs:annotation>
227
+ <xs:complexType>
228
+ <xs:simpleContent>
229
+ <xs:extension base="xs:string">
230
+ <xs:attribute name="alternateIdentifierType" use="required" />
231
+ </xs:extension>
232
+ </xs:simpleContent>
233
+ </xs:complexType>
234
+ </xs:element>
235
+ </xs:sequence>
236
+ </xs:complexType>
237
+ </xs:element>
238
+ <xs:element name="relatedIdentifiers" minOccurs="0">
239
+ <xs:complexType>
240
+ <xs:sequence>
241
+ <xs:element name="relatedIdentifier" minOccurs="0" maxOccurs="unbounded">
242
+ <xs:annotation>
243
+ <xs:documentation>Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.</xs:documentation>
244
+ </xs:annotation>
245
+ <xs:complexType>
246
+ <xs:simpleContent>
247
+ <xs:extension base="xs:string">
248
+ <xs:attribute name="resourceTypeGeneral" type="resourceType" use="optional" />
249
+ <xs:attribute name="relatedIdentifierType" type="relatedIdentifierType" use="required" />
250
+ <xs:attribute name="relationType" type="relationType" use="required" />
251
+ <xs:attribute name="relatedMetadataScheme" use="optional" />
252
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
253
+ <xs:attribute name="schemeType" use="optional" />
254
+ </xs:extension>
255
+ </xs:simpleContent>
256
+ </xs:complexType>
257
+ </xs:element>
258
+ </xs:sequence>
259
+ </xs:complexType>
260
+ </xs:element>
261
+ <xs:element name="sizes" minOccurs="0">
262
+ <xs:complexType>
263
+ <xs:sequence>
264
+ <xs:element name="size" type="xs:string" minOccurs="0" maxOccurs="unbounded">
265
+ <xs:annotation>
266
+ <xs:documentation>Unstructures size information about the resource.</xs:documentation>
267
+ </xs:annotation>
268
+ </xs:element>
269
+ </xs:sequence>
270
+ </xs:complexType>
271
+ </xs:element>
272
+ <xs:element name="formats" minOccurs="0">
273
+ <xs:complexType>
274
+ <xs:sequence>
275
+ <xs:element name="format" type="xs:string" minOccurs="0" maxOccurs="unbounded">
276
+ <xs:annotation>
277
+ <xs:documentation>Technical format of the resource.</xs:documentation>
278
+ <xs:documentation>Use file extension or MIME type where possible.</xs:documentation>
279
+ </xs:annotation>
280
+ </xs:element>
281
+ </xs:sequence>
282
+ </xs:complexType>
283
+ </xs:element>
284
+ <xs:element name="version" type="xs:string" minOccurs="0">
285
+ <xs:annotation>
286
+ <xs:documentation>Version number of the resource. If the primary resource has changed the version number increases.</xs:documentation>
287
+ <xs:documentation>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.</xs:documentation>
288
+ </xs:annotation>
289
+ </xs:element>
290
+ <xs:element name="rightsList" minOccurs="0">
291
+ <xs:complexType>
292
+ <xs:sequence>
293
+ <xs:element name="rights" minOccurs="0" maxOccurs="unbounded">
294
+ <xs:annotation>
295
+ <xs:documentation>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.
296
+ Use the complete title of a license and include version information if applicable.</xs:documentation>
297
+ </xs:annotation>
298
+ <xs:complexType>
299
+ <xs:simpleContent>
300
+ <xs:extension base="xs:string">
301
+ <xs:attribute name="rightsURI" type="xs:anyURI" use="optional" />
302
+ <xs:attribute name="rightsIdentifier" use="optional" />
303
+ <xs:attribute name="rightsIdentifierScheme" use="optional" />
304
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
305
+ <xs:attribute ref="xml:lang" />
306
+ </xs:extension>
307
+ </xs:simpleContent>
308
+ </xs:complexType>
309
+ </xs:element>
310
+ </xs:sequence>
311
+ </xs:complexType>
312
+ </xs:element>
313
+ <xs:element name="descriptions" minOccurs="0">
314
+ <xs:complexType>
315
+ <xs:sequence>
316
+ <xs:element name="description" minOccurs="0" maxOccurs="unbounded">
317
+ <xs:annotation>
318
+ <xs:documentation>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.</xs:documentation>
319
+ </xs:annotation>
320
+ <xs:complexType mixed="true">
321
+ <xs:choice>
322
+ <xs:element name="br" minOccurs="0" maxOccurs="unbounded">
323
+ <xs:complexType />
324
+ </xs:element>
325
+ </xs:choice>
326
+ <xs:attribute name="descriptionType" type="descriptionType" use="required" />
327
+ <xs:attribute ref="xml:lang" />
328
+ </xs:complexType>
329
+ </xs:element>
330
+ </xs:sequence>
331
+ </xs:complexType>
332
+ </xs:element>
333
+ <xs:element name="geoLocations" minOccurs="0">
334
+ <xs:complexType>
335
+ <xs:sequence>
336
+ <xs:element name="geoLocation" minOccurs="0" maxOccurs="unbounded">
337
+ <xs:complexType>
338
+ <xs:choice maxOccurs="unbounded">
339
+ <xs:element name="geoLocationPlace" minOccurs="0">
340
+ <xs:annotation>
341
+ <xs:documentation>Spatial region or named place where the data was gathered or about which the data is focused.</xs:documentation>
342
+ </xs:annotation>
343
+ </xs:element>
344
+ <xs:element name="geoLocationPoint" type="point" minOccurs="0">
345
+ <xs:annotation>
346
+ <xs:documentation>A point contains a single latitude-longitude pair.</xs:documentation>
347
+ </xs:annotation>
348
+ </xs:element>
349
+ <xs:element name="geoLocationBox" type="box" minOccurs="0">
350
+ <xs:annotation>
351
+ <xs:documentation>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.</xs:documentation>
352
+ </xs:annotation>
353
+ </xs:element>
354
+ <xs:element name="geoLocationPolygon" minOccurs="0" maxOccurs="unbounded">
355
+ <xs:annotation>
356
+ <xs:documentation>A drawn polygon area, defined by a set of points and lines connecting the points in a closed chain.</xs:documentation>
357
+ </xs:annotation>
358
+ <xs:complexType>
359
+ <xs:sequence>
360
+ <xs:element name="polygonPoint" type="point" minOccurs="4" maxOccurs="unbounded" />
361
+ <xs:element name="inPolygonPoint" type="point" minOccurs="0" maxOccurs="1" />
362
+ </xs:sequence>
363
+ </xs:complexType>
364
+ </xs:element>
365
+ </xs:choice>
366
+ </xs:complexType>
367
+ </xs:element>
368
+ </xs:sequence>
369
+ </xs:complexType>
370
+ </xs:element>
371
+ <xs:element name="fundingReferences" minOccurs="0">
372
+ <xs:complexType>
373
+ <xs:sequence>
374
+ <xs:element name="fundingReference" minOccurs="0" maxOccurs="unbounded">
375
+ <xs:annotation>
376
+ <xs:documentation>Information about financial support (funding) for the resource being registered.</xs:documentation>
377
+ </xs:annotation>
378
+ <xs:complexType>
379
+ <xs:all>
380
+ <xs:element name="funderName" minOccurs="1" maxOccurs="1">
381
+ <xs:annotation>
382
+ <xs:documentation>Name of the funding provider.</xs:documentation>
383
+ </xs:annotation>
384
+ <xs:simpleType>
385
+ <xs:restriction base="nonemptycontentStringType" />
386
+ </xs:simpleType>
387
+ </xs:element>
388
+ <xs:element name="funderIdentifier" minOccurs="0">
389
+ <xs:annotation>
390
+ <xs:documentation>Uniquely identifies a funding entity, according to various types.</xs:documentation>
391
+ </xs:annotation>
392
+ <xs:complexType>
393
+ <xs:simpleContent>
394
+ <xs:extension base="xs:string">
395
+ <xs:attribute name="funderIdentifierType" type="funderIdentifierType" use="required" />
396
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
397
+ </xs:extension>
398
+ </xs:simpleContent>
399
+ </xs:complexType>
400
+ </xs:element>
401
+ <xs:element name="awardNumber" minOccurs="0">
402
+ <xs:annotation>
403
+ <xs:documentation>The code assigned by the funder to a sponsored award (grant).</xs:documentation>
404
+ </xs:annotation>
405
+ <xs:complexType>
406
+ <xs:simpleContent>
407
+ <xs:extension base="xs:string">
408
+ <xs:attribute name="awardURI" type="xs:anyURI" use="optional" />
409
+ </xs:extension>
410
+ </xs:simpleContent>
411
+ </xs:complexType>
412
+ </xs:element>
413
+ <xs:element name="awardTitle" minOccurs="0">
414
+ <xs:annotation>
415
+ <xs:documentation>The human readable title of the award (grant).</xs:documentation>
416
+ </xs:annotation>
417
+ </xs:element>
418
+ </xs:all>
419
+ </xs:complexType>
420
+ </xs:element>
421
+ </xs:sequence>
422
+ </xs:complexType>
423
+ </xs:element>
424
+ <xs:element name="relatedItems" minOccurs="0">
425
+ <xs:complexType>
426
+ <xs:sequence>
427
+ <xs:element name="relatedItem" minOccurs="0" maxOccurs="unbounded">
428
+ <xs:annotation>
429
+ <xs:documentation>Information about a resource related to the one being registered e.g. a journal or book of which the article or chapter is part.</xs:documentation>
430
+ </xs:annotation>
431
+ <xs:complexType>
432
+ <xs:sequence>
433
+ <xs:element name="relatedItemIdentifier" minOccurs="0">
434
+ <xs:annotation>
435
+ <xs:documentation>The identifier for the related item.</xs:documentation>
436
+ </xs:annotation>
437
+ <xs:complexType>
438
+ <xs:simpleContent>
439
+ <xs:extension base="xs:string">
440
+ <xs:attribute name="relatedItemIdentifierType" type="relatedIdentifierType" use="optional">
441
+ <xs:annotation>
442
+ <xs:documentation>The type of the Identifier for the related item e.g. DOI.</xs:documentation>
443
+ </xs:annotation>
444
+ </xs:attribute>
445
+ <xs:attribute name="relatedMetadataScheme" use="optional">
446
+ <xs:annotation>
447
+ <xs:documentation>The name of the scheme.</xs:documentation>
448
+ </xs:annotation>
449
+ </xs:attribute>
450
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional">
451
+ <xs:annotation>
452
+ <xs:documentation>The URI of the relatedMetadataScheme.</xs:documentation>
453
+ </xs:annotation>
454
+ </xs:attribute>
455
+ <xs:attribute name="schemeType" use="optional">
456
+ <xs:annotation>
457
+ <xs:documentation>The type of the relatedMetadataScheme, linked with the schemeURI.</xs:documentation>
458
+ </xs:annotation>
459
+ </xs:attribute>
460
+ </xs:extension>
461
+ </xs:simpleContent>
462
+ </xs:complexType>
463
+ </xs:element>
464
+ <xs:element name="creators" minOccurs="0">
465
+ <xs:complexType>
466
+ <xs:sequence>
467
+ <xs:element name="creator" minOccurs="0" maxOccurs="unbounded">
468
+ <xs:annotation>
469
+ <xs:documentation>The institution or person responsible for creating the
470
+ related resource. To supply multiple creators, repeat this property.
471
+ </xs:documentation>
472
+ </xs:annotation>
473
+ <xs:complexType>
474
+ <xs:sequence>
475
+ <xs:element name="creatorName">
476
+ <xs:complexType>
477
+ <xs:simpleContent>
478
+ <xs:extension base="xs:string">
479
+ <xs:attribute name="nameType" type="nameType" use="optional" />
480
+ <xs:attribute ref="xml:lang" />
481
+ </xs:extension>
482
+ </xs:simpleContent>
483
+ </xs:complexType>
484
+ </xs:element>
485
+ <xs:element name="givenName" minOccurs="0" />
486
+ <xs:element name="familyName" minOccurs="0" />
487
+ </xs:sequence>
488
+ </xs:complexType>
489
+ </xs:element>
490
+ </xs:sequence>
491
+ </xs:complexType>
492
+ </xs:element>
493
+ <xs:element name="titles" minOccurs="0">
494
+ <xs:complexType>
495
+ <xs:sequence>
496
+ <xs:element name="title" minOccurs="0" maxOccurs="unbounded">
497
+ <xs:annotation>
498
+ <xs:documentation>Title of the related item.</xs:documentation>
499
+ </xs:annotation>
500
+ <xs:complexType>
501
+ <xs:simpleContent>
502
+ <xs:extension base="xs:string">
503
+ <xs:attribute name="titleType" type="titleType" use="optional" />
504
+ <xs:attribute ref="xml:lang" />
505
+ </xs:extension>
506
+ </xs:simpleContent>
507
+ </xs:complexType>
508
+ </xs:element>
509
+ </xs:sequence>
510
+ </xs:complexType>
511
+ </xs:element>
512
+ <xs:element name="publicationYear" minOccurs="0">
513
+ <xs:annotation>
514
+ <xs:documentation>The year when the item was or will be made publicly available.</xs:documentation>
515
+ </xs:annotation>
516
+ <xs:simpleType>
517
+ <xs:restriction base="yearType" />
518
+ </xs:simpleType>
519
+ </xs:element>
520
+ <xs:element name="volume" minOccurs="0">
521
+ <xs:annotation>
522
+ <xs:documentation>Volume of the related item.</xs:documentation>
523
+ </xs:annotation>
524
+ </xs:element>
525
+ <xs:element name="issue" minOccurs="0">
526
+ <xs:annotation>
527
+ <xs:documentation>Issue number or name of the related item.</xs:documentation>
528
+ </xs:annotation>
529
+ </xs:element>
530
+ <xs:element name="number" minOccurs="0">
531
+ <xs:annotation>
532
+ <xs:documentation>Number of the related item e.g. report number of article number.</xs:documentation>
533
+ </xs:annotation>
534
+ <xs:complexType>
535
+ <xs:simpleContent>
536
+ <xs:extension base="xs:string">
537
+ <xs:attribute name="numberType" type="numberType" use="optional" />
538
+ </xs:extension>
539
+ </xs:simpleContent>
540
+ </xs:complexType>
541
+ </xs:element>
542
+ <xs:element name="firstPage" minOccurs="0">
543
+ <xs:annotation>
544
+ <xs:documentation>First page of the related item e.g. of the chapter, article, or conference paper.</xs:documentation>
545
+ </xs:annotation>
546
+ </xs:element>
547
+ <xs:element name="lastPage" minOccurs="0">
548
+ <xs:annotation>
549
+ <xs:documentation>Last page of the related item e.g. of the chapter, article, or conference paper.</xs:documentation>
550
+ </xs:annotation>
551
+ </xs:element>
552
+ <xs:element name="publisher" minOccurs="0">
553
+ <xs:annotation>
554
+ <xs:documentation>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.</xs:documentation>
555
+ </xs:annotation>
556
+ </xs:element>
557
+ <xs:element name="edition" minOccurs="0">
558
+ <xs:annotation>
559
+ <xs:documentation>Edition or version of the related item.</xs:documentation>
560
+ </xs:annotation>
561
+ </xs:element>
562
+ <xs:element name="contributors" minOccurs="0">
563
+ <xs:complexType>
564
+ <xs:sequence>
565
+ <xs:element name="contributor" minOccurs="0" maxOccurs="unbounded">
566
+ <xs:annotation>
567
+ <xs:documentation>The institution or person responsible for collecting,
568
+ managing, distributing, or otherwise contributing to the development of
569
+ the resource.</xs:documentation>
570
+ </xs:annotation>
571
+ <xs:complexType>
572
+ <xs:sequence>
573
+ <xs:element name="contributorName">
574
+ <xs:complexType>
575
+ <xs:simpleContent>
576
+ <xs:extension base="xs:string">
577
+ <xs:attribute name="nameType" type="nameType" use="optional" />
578
+ <xs:attribute ref="xml:lang" />
579
+ </xs:extension>
580
+ </xs:simpleContent>
581
+ </xs:complexType>
582
+ </xs:element>
583
+ <xs:element name="givenName" minOccurs="0" />
584
+ <xs:element name="familyName" minOccurs="0" />
585
+ </xs:sequence>
586
+ <xs:attribute name="contributorType" type="contributorType" use="required">
587
+ <xs:annotation>
588
+ <xs:documentation>The type of contributor of the resource.</xs:documentation>
589
+ </xs:annotation>
590
+ </xs:attribute>
591
+ </xs:complexType>
592
+ </xs:element>
593
+ </xs:sequence>
594
+ </xs:complexType>
595
+ </xs:element>
596
+ </xs:sequence>
597
+ <xs:attribute name="relatedItemType" type="resourceType" use="required">
598
+ <xs:annotation>
599
+ <xs:documentation>The type of the related item, e.g. journal article, book or chapter.</xs:documentation>
600
+ </xs:annotation>
601
+ </xs:attribute>
602
+ <xs:attribute name="relationType" type="relationType" use="required">
603
+ <xs:annotation>
604
+ <xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
605
+ </xs:annotation>
606
+ </xs:attribute>
607
+ </xs:complexType>
608
+ </xs:element>
609
+ </xs:sequence>
610
+ </xs:complexType>
611
+ </xs:element>
612
+ </xs:all>
613
+ </xs:complexType>
614
+ </xs:element>
615
+
616
+ <!-- TYPE DECLARATIONS -->
617
+ <!-- defines value for mandatory fields -->
618
+ <xs:simpleType name="nonemptycontentStringType">
619
+ <xs:restriction base="xs:string">
620
+ <xs:minLength value="1" />
621
+ </xs:restriction>
622
+ </xs:simpleType>
623
+ <!-- definition for nameIdentifier -->
624
+ <xs:complexType name="nameIdentifier">
625
+ <xs:annotation>
626
+ <xs:documentation>Uniquely identifies a creator or contributor, according to various identifier schemes.</xs:documentation>
627
+ </xs:annotation>
628
+ <xs:simpleContent>
629
+ <xs:extension base="nonemptycontentStringType">
630
+ <xs:attribute name="nameIdentifierScheme" type="xs:string" use="required" />
631
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
632
+ </xs:extension>
633
+ </xs:simpleContent>
634
+ </xs:complexType>
635
+ <!-- definition for EDTF dates, modified from PREMIS 2.0 -->
636
+ <xs:simpleType name="edtf">
637
+ <xs:restriction base="xs:string">
638
+ <!-- pattern for iso8601 dateTime -->
639
+ <xs:pattern value="(-)?[0-9]{4}(-[0-9]{2})?(-[0-9]{2})?(T([0-9]{2}:){2}[0-9]{2}Z)?" />
640
+
641
+ <!--
642
+ The following pattern is for year (yyyy) or year-month (yyyy-mm)
643
+ The last or last two digits of year may be '?' meaning "one year in that range but not sure which year", for example 19?? means some year from 1990 to 1999. Similarly month may be '??' so that 2004-?? "means some month in 2004". And the entire string may end with '?' or '~' for "uncertain" or "approximate".
644
+ Hyphen must separate year and month.
645
+ -->
646
+ <xs:pattern value="\d{2}(\d{2}|\?\?|\d(\d|\?))(-(\d{2}|\?\?))?~?\??" />
647
+ <!--
648
+ The following pattern is for yearMonthDay - yyyymmdd, where 'dd' may be '??' so '200412??' means "some day during the month of 12/2004".
649
+ The whole string may be followed by '?' or '~' to mean "questionable" or "approximate". Hyphens are not allowed for this pattern.
650
+ -->
651
+ <xs:pattern value="\d{6}(\d{2}|\?\?)~?\??" />
652
+ <!--
653
+
654
+ The following pattern is for date and time with T separator:'yyyymmddThhmmss'.
655
+ Hyphens in date and colons in time not allowed for this pattern.
656
+ -->
657
+ <xs:pattern value="\d{8}T\d{6}" />
658
+ <!--
659
+
660
+ The following pattern is for a date range. in years: 'yyyy/yyyy'; or year/month: yyyy-mm/yyyy-mm, or year/month/day: yyyy-mm-dd/yyyy-mm-dd. Beginning or end of range value may be 'unknown'. End of range value may be 'open'.
661
+ Hyphens mandatory when month is present.
662
+ -->
663
+ <xs:pattern value="((-)?(\d{4}(-\d{2})?(-\d{2})?)|unknown)/((-)?(\d{4}(-\d{2})?(-\d{2})?)|unknown|open)" />
664
+ </xs:restriction>
665
+ </xs:simpleType>
666
+ <!-- definition for affiliation -->
667
+ <xs:complexType name="affiliation">
668
+ <xs:annotation>
669
+ <xs:documentation>Uniquely identifies an affiliation, according to various identifier schemes.</xs:documentation>
670
+ </xs:annotation>
671
+ <xs:simpleContent>
672
+ <xs:extension base="nonemptycontentStringType">
673
+ <xs:attribute name="affiliationIdentifier" type="xs:string" use="optional" />
674
+ <xs:attribute name="affiliationIdentifierScheme" type="xs:string" use="optional" />
675
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional" />
676
+ </xs:extension>
677
+ </xs:simpleContent>
678
+ </xs:complexType>
679
+ <!-- defines the value for a year -->
680
+ <xs:simpleType name="yearType">
681
+ <xs:restriction base="xs:token">
682
+ <xs:pattern value="[\d]{4}" />
683
+ </xs:restriction>
684
+ </xs:simpleType>
685
+ <!-- definitions for geoLocation -->
686
+ <xs:complexType name="point">
687
+ <xs:all>
688
+ <xs:element name="pointLongitude" type="longitudeType" minOccurs="1" />
689
+ <xs:element name="pointLatitude" type="latitudeType" minOccurs="1" />
690
+ </xs:all>
691
+ </xs:complexType>
692
+ <xs:complexType name="box">
693
+ <xs:all>
694
+ <xs:element name="westBoundLongitude" type="longitudeType" minOccurs="1" />
695
+ <xs:element name="eastBoundLongitude" type="longitudeType" minOccurs="1" />
696
+ <xs:element name="southBoundLatitude" type="latitudeType" minOccurs="1" />
697
+ <xs:element name="northBoundLatitude" type="latitudeType" minOccurs="1" />
698
+ </xs:all>
699
+ </xs:complexType>
700
+ <xs:simpleType name="longitudeType">
701
+ <xs:restriction base="xs:float">
702
+ <xs:minInclusive value="-180" />
703
+ <xs:maxInclusive value="180" />
704
+ </xs:restriction>
705
+ </xs:simpleType>
706
+ <xs:simpleType name="latitudeType">
707
+ <xs:restriction base="xs:float">
708
+ <xs:minInclusive value="-90" />
709
+ <xs:maxInclusive value="90" />
710
+ </xs:restriction>
711
+ </xs:simpleType>
712
+ </xs:schema>