bolognese 0.10.22 → 0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/bolognese/version.rb +1 -1
  4. data/resources/kernel-3.0/include/datacite-contributorType-v3.xsd +33 -0
  5. data/resources/kernel-3.0/include/datacite-dateType-v3.xsd +21 -0
  6. data/resources/kernel-3.0/include/datacite-descriptionType-v3.xsd +17 -0
  7. data/resources/kernel-3.0/include/datacite-relatedIdentifierType-v3.xsd +27 -0
  8. data/resources/kernel-3.0/include/datacite-relationType-v3.xsd +33 -0
  9. data/resources/kernel-3.0/include/datacite-resourceType-v3.xsd +26 -0
  10. data/resources/kernel-3.0/include/datacite-titleType-v3.xsd +12 -0
  11. data/resources/kernel-3.0/metadata.xsd +377 -0
  12. data/resources/kernel-3.1/include/datacite-contributorType-v3.1.xsd +35 -0
  13. data/resources/kernel-3.1/include/datacite-dateType-v3.xsd +21 -0
  14. data/resources/kernel-3.1/include/datacite-descriptionType-v3.xsd +17 -0
  15. data/resources/kernel-3.1/include/datacite-relatedIdentifierType-v3.1.xsd +30 -0
  16. data/resources/kernel-3.1/include/datacite-relationType-v3.1.xsd +38 -0
  17. data/resources/kernel-3.1/include/datacite-resourceType-v3.xsd +26 -0
  18. data/resources/kernel-3.1/include/datacite-titleType-v3.xsd +12 -0
  19. data/resources/kernel-3.1/metadata.xsd +380 -0
  20. data/resources/kernel-4.0/include/datacite-contributorType-v4.xsd +35 -0
  21. data/resources/kernel-4.0/include/datacite-dateType-v4.xsd +21 -0
  22. data/resources/kernel-4.0/include/datacite-descriptionType-v4.xsd +19 -0
  23. data/resources/kernel-4.0/include/datacite-funderIdentifierType-v4.xsd +15 -0
  24. data/resources/kernel-4.0/include/datacite-relatedIdentifierType-v4.xsd +32 -0
  25. data/resources/kernel-4.0/include/datacite-relationType-v4.xsd +39 -0
  26. data/resources/kernel-4.0/include/datacite-resourceType-v4.xsd +26 -0
  27. data/resources/kernel-4.0/include/datacite-titleType-v4.xsd +14 -0
  28. data/resources/kernel-4.0/metadata.xsd +470 -0
  29. data/resources/kernel-4.1/include/datacite-contributorType-v4.xsd +35 -0
  30. data/resources/kernel-4.1/include/datacite-dateType-v4.1.xsd +23 -0
  31. data/resources/kernel-4.1/include/datacite-descriptionType-v4.xsd +19 -0
  32. data/resources/kernel-4.1/include/datacite-funderIdentifierType-v4.xsd +15 -0
  33. data/resources/kernel-4.1/include/datacite-nameType-v4.1.xsd +10 -0
  34. data/resources/kernel-4.1/include/datacite-relatedIdentifierType-v4.xsd +32 -0
  35. data/resources/kernel-4.1/include/datacite-relationType-v4.1.xsd +46 -0
  36. data/resources/kernel-4.1/include/datacite-resourceType-v4.1.xsd +28 -0
  37. data/resources/kernel-4.1/include/datacite-titleType-v4.xsd +14 -0
  38. data/resources/kernel-4.1/metadata.xsd +482 -0
  39. data/spec/fixtures/datacite-example-complicated-v3.0.xml +48 -0
  40. data/spec/fixtures/datacite-example-complicated-v4.0.xml +54 -0
  41. data/spec/fixtures/datacite-metadata-sample-complicated-v2.2.xml +52 -0
  42. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_bibtex/climate_data.yml +42 -0
  43. data/spec/readers/datacite_reader_spec.rb +66 -0
  44. data/spec/writers/bibtex_writer_spec.rb +12 -0
  45. metadata +41 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e51632f8d0ca3cf8aedb8c5ac1f5bc994b97bc19c626ffa0705afa6e05b983c7
4
- data.tar.gz: 46bd522c89bc2746496314b1eb619b645dc793da8f6d29275d46bb2f5b0bde74
3
+ metadata.gz: 48c96e58515b6e06b3c183599c06cacbdd2059b8fc00bf4558f4cd8bb3d14f9c
4
+ data.tar.gz: c6dd83c6775ab19e1e0536df4856fc6ede70647412c5ebeb8aaa1588f00fa352
5
5
  SHA512:
6
- metadata.gz: 636d464b7612156ceef83f0b8033274a2ca3bac7338bc8d161f988079f7eca8bb392c67b7aaa3798cc57e31072ee777f9a2df1ecf4e386382d63d4add09472ec
7
- data.tar.gz: 86635a2a4a5fbfa768377587ded418af83269e78206f1c8607a906442f62e78f81890773c0c9840616a82785d89d16aae235be09f1bff4267e1cd720ce871330
6
+ metadata.gz: dfd47054421e49cf29653d099bb9d8805b2cb5340c6194f5fa54f8043738a780be113e179f3a43fff3c1a79c84d8016a07e814de6baffb9be64b97f5d3582d1d
7
+ data.tar.gz: fefb0d3227f5b50c907375343fcb19e95b6ea221639a1464d72bf945b3145a56dc3b3dccfd1fd02eadf8f272b2354820ec41c53fca2be2f3f0527275970f89d4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.10.22)
4
+ bolognese (0.11)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -155,7 +155,7 @@ GEM
155
155
  thor (0.20.0)
156
156
  thread_safe (0.3.6)
157
157
  tilt (2.0.8)
158
- trollop (2.1.2)
158
+ trollop (2.1.3)
159
159
  tzinfo (1.2.5)
160
160
  thread_safe (~> 0.1)
161
161
  unicode_utils (1.4.0)
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.10.22"
2
+ VERSION = "0.11"
3
3
  end
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element, added values "ResearchGroup" & "Other"-->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="contributorType" id="contributorType">
6
+ <xs:annotation>
7
+ <xs:documentation>The type of contributor of the resource.</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:restriction base="xs:string">
10
+ <xs:enumeration value="ContactPerson"/>
11
+ <xs:enumeration value="DataCollector"/>
12
+ <xs:enumeration value="DataManager"/>
13
+ <xs:enumeration value="Distributor"/>
14
+ <xs:enumeration value="Editor"/>
15
+ <xs:enumeration value="Funder"/>
16
+ <xs:enumeration value="HostingInstitution"/>
17
+ <xs:enumeration value="Other"/>
18
+ <xs:enumeration value="Producer"/>
19
+ <xs:enumeration value="ProjectLeader"/>
20
+ <xs:enumeration value="ProjectManager"/>
21
+ <xs:enumeration value="ProjectMember"/>
22
+ <xs:enumeration value="RegistrationAgency"/>
23
+ <xs:enumeration value="RegistrationAuthority"/>
24
+ <xs:enumeration value="RelatedPerson"/>
25
+ <xs:enumeration value="ResearchGroup"/>
26
+ <xs:enumeration value="RightsHolder"/>
27
+ <xs:enumeration value="Researcher"/>
28
+ <xs:enumeration value="Sponsor"/>
29
+ <xs:enumeration value="Supervisor"/>
30
+ <xs:enumeration value="WorkPackageLeader"/>
31
+ </xs:restriction>
32
+ </xs:simpleType>
33
+ </xs:schema>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element; addition of value "Collected"; deleted "StartDate" & "EndDate"-->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="dateType" id="dateType">
6
+ <xs:annotation>
7
+ <xs:documentation>The type of date. Use RKMS‐ISO8601 standard for depicting date ranges.To indicate the end of an embargo period, use Available. To indicate the start of an embargo period, use Submitted or Accepted, as appropriate.</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:restriction base="xs:string">
10
+ <xs:enumeration value="Accepted"/>
11
+ <xs:enumeration value="Available"/>
12
+ <xs:enumeration value="Collected"/>
13
+ <xs:enumeration value="Copyrighted"/>
14
+ <xs:enumeration value="Created"/>
15
+ <xs:enumeration value="Issued"/>
16
+ <xs:enumeration value="Submitted"/>
17
+ <xs:enumeration value="Updated"/>
18
+ <xs:enumeration value="Valid"/>
19
+ </xs:restriction>
20
+ </xs:simpleType>
21
+ </xs:schema>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element, addition of value "Methods"-->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="descriptionType" id="descriptionType">
6
+ <xs:annotation>
7
+ <xs:documentation>The type of the description.</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:restriction base="xs:string">
10
+ <xs:enumeration value="Abstract"/>
11
+ <xs:enumeration value="Methods"/>
12
+ <xs:enumeration value="SeriesInformation"/>
13
+ <xs:enumeration value="TableOfContents"/>
14
+ <xs:enumeration value="Other"/>
15
+ </xs:restriction>
16
+ </xs:simpleType>
17
+ </xs:schema>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element; addition of value "PMID"-->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="relatedIdentifierType" id="relatedIdentifierType">
6
+ <xs:annotation>
7
+ <xs:documentation>The type of the RelatedIdentifier.</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:restriction base="xs:string">
10
+ <xs:enumeration value="ARK"/>
11
+ <xs:enumeration value="DOI"/>
12
+ <xs:enumeration value="EAN13"/>
13
+ <xs:enumeration value="EISSN"/>
14
+ <xs:enumeration value="Handle"/>
15
+ <xs:enumeration value="ISBN"/>
16
+ <xs:enumeration value="ISSN"/>
17
+ <xs:enumeration value="ISTC"/>
18
+ <xs:enumeration value="LISSN"/>
19
+ <xs:enumeration value="LSID"/>
20
+ <xs:enumeration value="PMID"/>
21
+ <xs:enumeration value="PURL"/>
22
+ <xs:enumeration value="UPC"/>
23
+ <xs:enumeration value="URL"/>
24
+ <xs:enumeration value="URN"/>
25
+ </xs:restriction>
26
+ </xs:simpleType>
27
+ </xs:schema>
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element, addition of values "IsIdenticalTo", "HasMetadata" & "IsMetadataFor"-->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="relationType" id="relationType">
6
+ <xs:annotation>
7
+ <xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:restriction base="xs:string">
10
+ <xs:enumeration value="IsCitedBy"/>
11
+ <xs:enumeration value="Cites"/>
12
+ <xs:enumeration value="IsSupplementTo"/>
13
+ <xs:enumeration value="IsSupplementedBy"/>
14
+ <xs:enumeration value="IsContinuedBy"/>
15
+ <xs:enumeration value="Continues"/>
16
+ <xs:enumeration value="IsNewVersionOf"/>
17
+ <xs:enumeration value="IsPreviousVersionOf"/>
18
+ <xs:enumeration value="IsPartOf"/>
19
+ <xs:enumeration value="HasPart"/>
20
+ <xs:enumeration value="IsReferencedBy"/>
21
+ <xs:enumeration value="References"/>
22
+ <xs:enumeration value="IsDocumentedBy"/>
23
+ <xs:enumeration value="Documents"/>
24
+ <xs:enumeration value="IsCompiledBy"/>
25
+ <xs:enumeration value="Compiles"/>
26
+ <xs:enumeration value="IsVariantFormOf"/>
27
+ <xs:enumeration value="IsOriginalFormOf"/>
28
+ <xs:enumeration value="IsIdenticalTo"/>
29
+ <xs:enumeration value="HasMetadata"/>
30
+ <xs:enumeration value="IsMetadataFor"/>
31
+ </xs:restriction>
32
+ </xs:simpleType>
33
+ </xs:schema>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element; added values "Audiovisual", "Workflow" & "Other"; deleted value "Film" -->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="resourceType" id="resourceType">
6
+ <xs:annotation>
7
+ <xs:documentation>The general type of a resource.</xs:documentation>
8
+ </xs:annotation>
9
+ <xs:restriction base="xs:string">
10
+ <xs:enumeration value="Audiovisual"/>
11
+ <xs:enumeration value="Collection"/>
12
+ <xs:enumeration value="Dataset"/>
13
+ <xs:enumeration value="Event"/>
14
+ <xs:enumeration value="Image"/>
15
+ <xs:enumeration value="InteractiveResource"/>
16
+ <xs:enumeration value="Model"/>
17
+ <xs:enumeration value="PhysicalObject"/>
18
+ <xs:enumeration value="Service"/>
19
+ <xs:enumeration value="Software"/>
20
+ <xs:enumeration value="Sound"/>
21
+ <xs:enumeration value="Text"/>
22
+ <xs:enumeration value="Workflow"/>
23
+ <xs:enumeration value="Other"/>
24
+ </xs:restriction>
25
+ </xs:simpleType>
26
+ </xs:schema>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Version 1.0 - Created 2011-01-13 - FZ, TIB, Germany
3
+ 2013-05 v3.0: Addition of ID to simpleType element-->
4
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified">
5
+ <xs:simpleType name="titleType" id="titleType">
6
+ <xs:restriction base="xs:string">
7
+ <xs:enumeration value="AlternativeTitle"/>
8
+ <xs:enumeration value="Subtitle"/>
9
+ <xs:enumeration value="TranslatedTitle"/>
10
+ </xs:restriction>
11
+ </xs:simpleType>
12
+ </xs:schema>
@@ -0,0 +1,377 @@
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 revsion 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
7
+ IsDocumentedBy/Documents and isCompiledBy/Compiles; changes type of property "Date" from xs:date to xs:string. FZ, TIB
8
+ 2011-06-27 v2.2: namespace: kernel-2.2, additions to controlled lists "resourceType", "contributorType", "relatedIdentifierType", and "descriptionType". Removal of intermediate include-files.
9
+ 2013-05 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" -->
10
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-3" targetNamespace="http://datacite.org/schema/kernel-3" elementFormDefault="qualified" xml:lang="EN">
11
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
12
+ <xs:include schemaLocation="include/datacite-titleType-v3.xsd"/>
13
+ <xs:include schemaLocation="include/datacite-contributorType-v3.xsd"/>
14
+ <xs:include schemaLocation="include/datacite-dateType-v3.xsd"/>
15
+ <xs:include schemaLocation="include/datacite-resourceType-v3.xsd"/>
16
+ <xs:include schemaLocation="include/datacite-relationType-v3.xsd"/>
17
+ <xs:include schemaLocation="include/datacite-relatedIdentifierType-v3.xsd"/>
18
+ <xs:include schemaLocation="include/datacite-descriptionType-v3.xsd"/>
19
+ <xs:element name="resource">
20
+ <xs:annotation>
21
+ <xs:documentation>
22
+ Root element of a single record. This wrapper element is for XML implementation only and is not defined in the DataCite DOI standard.
23
+ Note: This is the case for all wrapper elements within this schema!</xs:documentation>
24
+ <xs:documentation>No content in this wrapper element.</xs:documentation>
25
+ </xs:annotation>
26
+ <xs:complexType>
27
+ <xs:all>
28
+ <!--REQUIRED FIELDS-->
29
+ <xs:element name="identifier">
30
+ <xs:annotation>
31
+ <xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
32
+ <xs:documentation>Currently, only DOI is allowed.</xs:documentation>
33
+ </xs:annotation>
34
+ <xs:complexType>
35
+ <xs:simpleContent>
36
+ <xs:extension base="doiType">
37
+ <xs:attribute name="identifierType" use="required" fixed="DOI"/>
38
+ </xs:extension>
39
+ </xs:simpleContent>
40
+ </xs:complexType>
41
+ </xs:element>
42
+ <xs:element name="creators">
43
+ <xs:complexType>
44
+ <xs:sequence>
45
+ <xs:element name="creator" maxOccurs="unbounded">
46
+ <xs:annotation>
47
+ <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>
48
+ <xs:documentation>Format: Family, Given.</xs:documentation>
49
+ </xs:annotation>
50
+ <xs:complexType>
51
+ <xs:sequence>
52
+ <xs:element name="creatorName">
53
+ <xs:simpleType>
54
+ <xs:restriction base="nonemptycontentStringType"/>
55
+ </xs:simpleType>
56
+ </xs:element>
57
+ <xs:element name="nameIdentifier" minOccurs="0">
58
+ <xs:complexType>
59
+ <xs:simpleContent>
60
+ <xs:extension base="nonemptycontentStringType">
61
+ <xs:attribute name="nameIdentifierScheme" use="required"/>
62
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
63
+ </xs:extension>
64
+ </xs:simpleContent>
65
+ </xs:complexType>
66
+ </xs:element>
67
+ </xs:sequence>
68
+ </xs:complexType>
69
+ </xs:element>
70
+ </xs:sequence>
71
+ </xs:complexType>
72
+ </xs:element>
73
+ <xs:element name="titles">
74
+ <xs:complexType>
75
+ <xs:sequence>
76
+ <xs:element name="title" maxOccurs="unbounded">
77
+ <xs:annotation>
78
+ <xs:documentation>A name or title by which a resource is known.</xs:documentation>
79
+ </xs:annotation>
80
+ <xs:complexType>
81
+ <xs:simpleContent>
82
+ <xs:extension base="nonemptycontentStringType">
83
+ <xs:attribute name="titleType" type="titleType" use="optional"/>
84
+ <xs:attribute ref="xml:lang"/>
85
+ </xs:extension>
86
+ </xs:simpleContent>
87
+ </xs:complexType>
88
+ </xs:element>
89
+ </xs:sequence>
90
+ </xs:complexType>
91
+ </xs:element>
92
+ <xs:element name="publisher">
93
+ <xs:annotation>
94
+ <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>
95
+ <xs:documentation>In the case of datasets, "publish" is understood to mean making the data available to the community of researchers.</xs:documentation>
96
+ </xs:annotation>
97
+ <xs:simpleType>
98
+ <xs:restriction base="nonemptycontentStringType"/>
99
+ </xs:simpleType>
100
+ </xs:element>
101
+ <xs:element name="publicationYear">
102
+ <xs:annotation>
103
+ <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>
104
+ <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>
105
+ <xs:documentation>YYYY</xs:documentation>
106
+ </xs:annotation>
107
+ <xs:simpleType>
108
+ <xs:restriction base="yearType"/>
109
+ </xs:simpleType>
110
+ </xs:element>
111
+ <!--OPTIONAL FIELDS-->
112
+ <xs:element name="subjects" minOccurs="0">
113
+ <xs:complexType>
114
+ <xs:sequence>
115
+ <xs:element name="subject" minOccurs="0" maxOccurs="unbounded">
116
+ <xs:annotation>
117
+ <xs:documentation>Subject, keywords, classification codes, or key phrases describing the resource.</xs:documentation>
118
+ </xs:annotation>
119
+ <xs:complexType>
120
+ <xs:simpleContent>
121
+ <xs:extension base="xs:string">
122
+ <xs:attribute name="subjectScheme" use="optional"/>
123
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
124
+ <xs:attribute ref="xml:lang"/>
125
+ </xs:extension>
126
+ </xs:simpleContent>
127
+ </xs:complexType>
128
+ </xs:element>
129
+ </xs:sequence>
130
+ </xs:complexType>
131
+ </xs:element>
132
+ <xs:element name="contributors" minOccurs="0">
133
+ <xs:complexType>
134
+ <xs:sequence>
135
+ <xs:element name="contributor" minOccurs="0" maxOccurs="unbounded">
136
+ <xs:annotation>
137
+ <xs:documentation>The institution or person responsible for collecting, creating, or otherwise contributing to the developement of the dataset.</xs:documentation>
138
+ <xs:documentation>The personal name format should be: Family, Given.</xs:documentation>
139
+ </xs:annotation>
140
+ <xs:complexType>
141
+ <xs:sequence>
142
+ <xs:element name="contributorName">
143
+ <xs:simpleType>
144
+ <xs:restriction base="xs:string">
145
+ <xs:minLength value="1"/>
146
+ </xs:restriction>
147
+ </xs:simpleType>
148
+ </xs:element>
149
+ <xs:element name="nameIdentifier" minOccurs="0">
150
+ <xs:complexType>
151
+ <xs:simpleContent>
152
+ <xs:extension base="xs:string">
153
+ <xs:attribute name="nameIdentifierScheme" use="required"/>
154
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
155
+ </xs:extension>
156
+ </xs:simpleContent>
157
+ </xs:complexType>
158
+ </xs:element>
159
+ </xs:sequence>
160
+ <xs:attribute name="contributorType" type="contributorType" use="required"/>
161
+ </xs:complexType>
162
+ </xs:element>
163
+ </xs:sequence>
164
+ </xs:complexType>
165
+ </xs:element>
166
+ <xs:element name="dates" minOccurs="0">
167
+ <xs:complexType>
168
+ <xs:sequence>
169
+ <xs:element name="date" minOccurs="0" maxOccurs="unbounded">
170
+ <xs:annotation>
171
+ <xs:documentation>Different dates relevant to the work.</xs:documentation>
172
+ <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>
173
+ </xs:annotation>
174
+ <xs:complexType>
175
+ <xs:simpleContent>
176
+ <xs:extension base="xs:string">
177
+ <xs:attribute name="dateType" type="dateType" use="required"/>
178
+ </xs:extension>
179
+ </xs:simpleContent>
180
+ </xs:complexType>
181
+ </xs:element>
182
+ </xs:sequence>
183
+ </xs:complexType>
184
+ </xs:element>
185
+ <xs:element name="language" type="xs:language" minOccurs="0">
186
+ <xs:annotation>
187
+ <xs:documentation>Primary language of the resource. Allowed values are taken from IETF BCP 47, ISO 639-1 language codes.</xs:documentation>
188
+ </xs:annotation>
189
+ </xs:element>
190
+ <xs:element name="resourceType" minOccurs="0">
191
+ <xs:annotation>
192
+ <xs:documentation>The type of a resource. You may enter an additional free text description.</xs:documentation>
193
+ <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>
194
+ </xs:annotation>
195
+ <xs:complexType>
196
+ <xs:simpleContent>
197
+ <xs:extension base="xs:string">
198
+ <xs:attribute name="resourceTypeGeneral" type="resourceType" use="required"/>
199
+ </xs:extension>
200
+ </xs:simpleContent>
201
+ </xs:complexType>
202
+ </xs:element>
203
+ <xs:element name="alternateIdentifiers" minOccurs="0">
204
+ <xs:complexType>
205
+ <xs:sequence>
206
+ <xs:element name="alternateIdentifier" minOccurs="0" maxOccurs="unbounded">
207
+ <xs:annotation>
208
+ <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>
209
+ </xs:annotation>
210
+ <xs:complexType>
211
+ <xs:simpleContent>
212
+ <xs:extension base="xs:string">
213
+ <xs:attribute name="alternateIdentifierType" use="required"/>
214
+ </xs:extension>
215
+ </xs:simpleContent>
216
+ </xs:complexType>
217
+ </xs:element>
218
+ </xs:sequence>
219
+ </xs:complexType>
220
+ </xs:element>
221
+ <xs:element name="relatedIdentifiers" minOccurs="0">
222
+ <xs:complexType>
223
+ <xs:sequence>
224
+ <xs:element name="relatedIdentifier" minOccurs="0" maxOccurs="unbounded">
225
+ <xs:annotation>
226
+ <xs:documentation>Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.</xs:documentation>
227
+ </xs:annotation>
228
+ <xs:complexType>
229
+ <xs:simpleContent>
230
+ <xs:extension base="xs:string">
231
+ <xs:attribute name="relatedIdentifierType" type="relatedIdentifierType" use="required"/>
232
+ <xs:attribute name="relationType" type="relationType" use="required"/>
233
+ <xs:attribute name="relatedMetadataScheme" use="optional"/>
234
+ <xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
235
+ <xs:attribute name="schemeType" use="optional"/>
236
+ </xs:extension>
237
+ </xs:simpleContent>
238
+ </xs:complexType>
239
+ </xs:element>
240
+ </xs:sequence>
241
+ </xs:complexType>
242
+ </xs:element>
243
+ <xs:element name="sizes" minOccurs="0">
244
+ <xs:complexType>
245
+ <xs:sequence>
246
+ <xs:element name="size" type="xs:string" minOccurs="0" maxOccurs="unbounded">
247
+ <xs:annotation>
248
+ <xs:documentation>Unstructures size information about the resource.</xs:documentation>
249
+ </xs:annotation>
250
+ </xs:element>
251
+ </xs:sequence>
252
+ </xs:complexType>
253
+ </xs:element>
254
+ <xs:element name="formats" minOccurs="0">
255
+ <xs:complexType>
256
+ <xs:sequence>
257
+ <xs:element name="format" type="xs:string" minOccurs="0" maxOccurs="unbounded">
258
+ <xs:annotation>
259
+ <xs:documentation>Technical format of the resource.</xs:documentation>
260
+ <xs:documentation>Use file extension or MIME type where possible.</xs:documentation>
261
+ </xs:annotation>
262
+ </xs:element>
263
+ </xs:sequence>
264
+ </xs:complexType>
265
+ </xs:element>
266
+ <xs:element name="version" type="xs:string" minOccurs="0">
267
+ <xs:annotation>
268
+ <xs:documentation>Version number of the resource. If the primary resource has changed the version number increases.</xs:documentation>
269
+ <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>
270
+ </xs:annotation>
271
+ </xs:element>
272
+ <xs:element name="rightsList" minOccurs="0">
273
+ <xs:complexType>
274
+ <xs:sequence>
275
+ <xs:element name="rights" minOccurs="0" maxOccurs="unbounded">
276
+ <xs:annotation>
277
+ <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.
278
+ Use the complete title of a license and include version information if applicable.</xs:documentation>
279
+ </xs:annotation>
280
+ <xs:complexType>
281
+ <xs:simpleContent>
282
+ <xs:extension base="xs:string">
283
+ <xs:attribute name="rightsURI" type="xs:anyURI" use="optional"/>
284
+ </xs:extension>
285
+ </xs:simpleContent>
286
+ </xs:complexType>
287
+ </xs:element>
288
+ </xs:sequence>
289
+ </xs:complexType>
290
+ </xs:element>
291
+ <xs:element name="descriptions" minOccurs="0">
292
+ <xs:complexType>
293
+ <xs:sequence>
294
+ <xs:element name="description" minOccurs="0" maxOccurs="unbounded">
295
+ <xs:annotation>
296
+ <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>
297
+ </xs:annotation>
298
+ <xs:complexType mixed="true">
299
+ <xs:choice>
300
+ <xs:element name="br" minOccurs="0" maxOccurs="unbounded">
301
+ <xs:simpleType>
302
+ <xs:restriction base="xs:string">
303
+ <xs:length value="0"/>
304
+ </xs:restriction>
305
+ </xs:simpleType>
306
+ </xs:element>
307
+ </xs:choice>
308
+ <xs:attribute name="descriptionType" type="descriptionType" use="required"/>
309
+ <xs:attribute ref="xml:lang"/>
310
+ </xs:complexType>
311
+ </xs:element>
312
+ </xs:sequence>
313
+ </xs:complexType>
314
+ </xs:element>
315
+ <xs:element name="geoLocations" minOccurs="0">
316
+ <xs:complexType>
317
+ <xs:sequence>
318
+ <xs:element name="geoLocation" minOccurs="0" maxOccurs="unbounded">
319
+ <xs:annotation>
320
+ <xs:documentation>Spatial region or named place where the data was gathered or about which the data is focused.</xs:documentation>
321
+ <xs:documentation>A point contains a single latitude-longitude pair, separated by whitespace.</xs:documentation>
322
+ <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>
323
+ </xs:annotation>
324
+ <xs:complexType>
325
+ <xs:sequence>
326
+ <xs:element name="geoLocationPoint" type="point" minOccurs="0"/>
327
+ <xs:element name="geoLocationBox" type="box" minOccurs="0"/>
328
+ <xs:element name="geoLocationPlace" minOccurs="0"/>
329
+ </xs:sequence>
330
+ </xs:complexType>
331
+ </xs:element>
332
+ </xs:sequence>
333
+ </xs:complexType>
334
+ </xs:element>
335
+ </xs:all>
336
+ </xs:complexType>
337
+ </xs:element>
338
+ <!-- TYPE DECLARATIONS -->
339
+ <!-- defines the value for a DOI: DOI must start with "10." -->
340
+ <xs:simpleType name="doiType">
341
+ <xs:restriction base="xs:token">
342
+ <xs:pattern value="10\..+/.+"/>
343
+ </xs:restriction>
344
+ </xs:simpleType>
345
+ <!-- defines value for mandatory fields -->
346
+ <xs:simpleType name="nonemptycontentStringType">
347
+ <xs:restriction base="xs:string">
348
+ <xs:minLength value="1"/>
349
+ </xs:restriction>
350
+ </xs:simpleType>
351
+ <xs:attributeGroup name="nameId">
352
+ <xs:attribute name="nameIdentifier" type="xs:string" use="optional"/>
353
+ <xs:attribute name="nameIdentifierScheme" type="xs:string" use="optional"/>
354
+ </xs:attributeGroup>
355
+ <!-- defines the value for a year -->
356
+ <xs:simpleType name="yearType">
357
+ <xs:restriction base="xs:token">
358
+ <xs:pattern value="[\d]{4}"/>
359
+ </xs:restriction>
360
+ <!-- definitions for geoLocation -->
361
+ </xs:simpleType>
362
+ <xs:simpleType name="point">
363
+ <xs:restriction base="listOfDoubles">
364
+ <xs:minLength value="2"/>
365
+ <xs:maxLength value="2"/>
366
+ </xs:restriction>
367
+ </xs:simpleType>
368
+ <xs:simpleType name="box">
369
+ <xs:restriction base="listOfDoubles">
370
+ <xs:minLength value="4"/>
371
+ <xs:maxLength value="4"/>
372
+ </xs:restriction>
373
+ </xs:simpleType>
374
+ <xs:simpleType name="listOfDoubles">
375
+ <xs:list itemType="xs:double"/>
376
+ </xs:simpleType>
377
+ </xs:schema>