bolognese 0.2.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/bolognese/cli.rb +3 -1
- data/lib/bolognese/crossref.rb +24 -2
- data/lib/bolognese/datacite.rb +8 -2
- data/lib/bolognese/datacite_utils.rb +211 -0
- data/lib/bolognese/version.rb +1 -1
- data/resources/kernel-4.0/include/datacite-contributorType-v4.xsd +35 -0
- data/resources/kernel-4.0/include/datacite-dateType-v4.xsd +21 -0
- data/resources/kernel-4.0/include/datacite-descriptionType-v4.xsd +19 -0
- data/resources/kernel-4.0/include/datacite-funderIdentifierType-v4.xsd +15 -0
- data/resources/kernel-4.0/include/datacite-relatedIdentifierType-v4.xsd +32 -0
- data/resources/kernel-4.0/include/datacite-relationType-v4.xsd +39 -0
- data/resources/kernel-4.0/include/datacite-resourceType-v4.xsd +26 -0
- data/resources/kernel-4.0/include/datacite-titleType-v4.xsd +14 -0
- data/resources/kernel-4.0/metadata.xsd +470 -0
- data/spec/cli_spec.rb +5 -0
- data/spec/crossref_spec.rb +14 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_crossref.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_datacite.yml +1476 -0
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/crossref/as_schema_org.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_datacite.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Bolognese_CLI/read/datacite/as_schema_org.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata/not_found_error.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Bolognese_Crossref/get_metadata_as_datacite_xml/DOI_with_data_citation.yml +1435 -0
- metadata +15 -35
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- Version 1.0 - Created 2016-05-14 -->
|
3
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
|
4
|
+
<xs:simpleType name="funderIdentifierType" id="funderIdentifierType">
|
5
|
+
<xs:annotation>
|
6
|
+
<xs:documentation>The type of the funderIdentifier.</xs:documentation>
|
7
|
+
</xs:annotation>
|
8
|
+
<xs:restriction base="xs:string">
|
9
|
+
<xs:enumeration value="ISNI"/>
|
10
|
+
<xs:enumeration value="GRID"/>
|
11
|
+
<xs:enumeration value="Crossref Funder ID"/>
|
12
|
+
<xs:enumeration value="Other"/>
|
13
|
+
</xs:restriction>
|
14
|
+
</xs:simpleType>
|
15
|
+
</xs:schema>
|
@@ -0,0 +1,32 @@
|
|
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
|
+
2014-08-20 v3.1: Addition of values "arxiv" and "bibcode"
|
5
|
+
2015-02-12 v4.0 Addition of value "IGSN" -->
|
6
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
|
7
|
+
<xs:simpleType name="relatedIdentifierType" id="relatedIdentifierType">
|
8
|
+
<xs:annotation>
|
9
|
+
<xs:documentation>The type of the RelatedIdentifier.</xs:documentation>
|
10
|
+
</xs:annotation>
|
11
|
+
<xs:restriction base="xs:string">
|
12
|
+
<xs:enumeration value="ARK"/>
|
13
|
+
<xs:enumeration value="arXiv"/>
|
14
|
+
<xs:enumeration value="bibcode"/>
|
15
|
+
<xs:enumeration value="DOI"/>
|
16
|
+
<xs:enumeration value="EAN13"/>
|
17
|
+
<xs:enumeration value="EISSN"/>
|
18
|
+
<xs:enumeration value="Handle"/>
|
19
|
+
<xs:enumeration value="IGSN"/>
|
20
|
+
<xs:enumeration value="ISBN"/>
|
21
|
+
<xs:enumeration value="ISSN"/>
|
22
|
+
<xs:enumeration value="ISTC"/>
|
23
|
+
<xs:enumeration value="LISSN"/>
|
24
|
+
<xs:enumeration value="LSID"/>
|
25
|
+
<xs:enumeration value="PMID"/>
|
26
|
+
<xs:enumeration value="PURL"/>
|
27
|
+
<xs:enumeration value="UPC"/>
|
28
|
+
<xs:enumeration value="URL"/>
|
29
|
+
<xs:enumeration value="URN"/>
|
30
|
+
</xs:restriction>
|
31
|
+
</xs:simpleType>
|
32
|
+
</xs:schema>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
2011-01-13 v1.0 - FZ, TIB, Germany
|
4
|
+
2013-05 v3.0: Addition of ID to simpleType element, addition of values "IsIdenticalTo", "HasMetadata" & "IsMetadataFor"
|
5
|
+
2014-08-20 v3.1: Addition of values "Reviews" & "IsReviewedBy" and "IsDerivedFrom" & "IsSourceOf"-->
|
6
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
|
7
|
+
<xs:simpleType name="relationType" id="relationType">
|
8
|
+
<xs:annotation>
|
9
|
+
<xs:documentation>Description of the relationship of the resource being registered (A) and the related resource (B).</xs:documentation>
|
10
|
+
</xs:annotation>
|
11
|
+
<xs:restriction base="xs:string">
|
12
|
+
<xs:enumeration value="IsCitedBy"/>
|
13
|
+
<xs:enumeration value="Cites"/>
|
14
|
+
<xs:enumeration value="IsSupplementTo"/>
|
15
|
+
<xs:enumeration value="IsSupplementedBy"/>
|
16
|
+
<xs:enumeration value="IsContinuedBy"/>
|
17
|
+
<xs:enumeration value="Continues"/>
|
18
|
+
<xs:enumeration value="IsNewVersionOf"/>
|
19
|
+
<xs:enumeration value="IsPreviousVersionOf"/>
|
20
|
+
<xs:enumeration value="IsPartOf"/>
|
21
|
+
<xs:enumeration value="HasPart"/>
|
22
|
+
<xs:enumeration value="IsReferencedBy"/>
|
23
|
+
<xs:enumeration value="References"/>
|
24
|
+
<xs:enumeration value="IsDocumentedBy"/>
|
25
|
+
<xs:enumeration value="Documents"/>
|
26
|
+
<xs:enumeration value="IsCompiledBy"/>
|
27
|
+
<xs:enumeration value="Compiles"/>
|
28
|
+
<xs:enumeration value="IsVariantFormOf"/>
|
29
|
+
<xs:enumeration value="IsOriginalFormOf"/>
|
30
|
+
<xs:enumeration value="IsIdenticalTo"/>
|
31
|
+
<xs:enumeration value="HasMetadata"/>
|
32
|
+
<xs:enumeration value="IsMetadataFor"/>
|
33
|
+
<xs:enumeration value="Reviews"/>
|
34
|
+
<xs:enumeration value="IsReviewedBy"/>
|
35
|
+
<xs:enumeration value="IsDerivedFrom"/>
|
36
|
+
<xs:enumeration value="IsSourceOf"/>
|
37
|
+
</xs:restriction>
|
38
|
+
</xs:simpleType>
|
39
|
+
</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-4" targetNamespace="http://datacite.org/schema/kernel-4" 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,14 @@
|
|
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
|
+
2015-02-12 v4.0 Added value "Other" -->
|
5
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified">
|
6
|
+
<xs:simpleType name="titleType" id="titleType">
|
7
|
+
<xs:restriction base="xs:string">
|
8
|
+
<xs:enumeration value="AlternativeTitle"/>
|
9
|
+
<xs:enumeration value="Subtitle"/>
|
10
|
+
<xs:enumeration value="TranslatedTitle"/>
|
11
|
+
<xs:enumeration value="Other"/>
|
12
|
+
</xs:restriction>
|
13
|
+
</xs:simpleType>
|
14
|
+
</xs:schema>
|
@@ -0,0 +1,470 @@
|
|
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 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
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://datacite.org/schema/kernel-4" targetNamespace="http://datacite.org/schema/kernel-4" elementFormDefault="qualified" xml:lang="EN">
|
12
|
+
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
|
13
|
+
<xs:include schemaLocation="include/datacite-titleType-v4.xsd"/>
|
14
|
+
<xs:include schemaLocation="include/datacite-contributorType-v4.xsd"/>
|
15
|
+
<xs:include schemaLocation="include/datacite-dateType-v4.xsd"/>
|
16
|
+
<xs:include schemaLocation="include/datacite-resourceType-v4.xsd"/>
|
17
|
+
<xs:include schemaLocation="include/datacite-relationType-v4.xsd"/>
|
18
|
+
<xs:include schemaLocation="include/datacite-relatedIdentifierType-v4.xsd"/>
|
19
|
+
<xs:include schemaLocation="include/datacite-funderIdentifierType-v4.xsd"/>
|
20
|
+
<xs:include schemaLocation="include/datacite-descriptionType-v4.xsd"/>
|
21
|
+
<xs:element name="resource">
|
22
|
+
<xs:annotation>
|
23
|
+
<xs:documentation>
|
24
|
+
Root element of a single record. This wrapper element is for XML implementation only and is not defined in the DataCite DOI standard.
|
25
|
+
Note: This is the case for all wrapper elements within this schema.</xs:documentation>
|
26
|
+
<xs:documentation>No content in this wrapper element.</xs:documentation>
|
27
|
+
</xs:annotation>
|
28
|
+
<xs:complexType>
|
29
|
+
<xs:all>
|
30
|
+
<!--REQUIRED FIELDS-->
|
31
|
+
<xs:element name="identifier">
|
32
|
+
<xs:annotation>
|
33
|
+
<xs:documentation>A persistent identifier that identifies a resource.</xs:documentation>
|
34
|
+
<xs:documentation>Currently, only DOI is allowed.</xs:documentation>
|
35
|
+
</xs:annotation>
|
36
|
+
<xs:complexType>
|
37
|
+
<xs:simpleContent>
|
38
|
+
<xs:extension base="doiType">
|
39
|
+
<xs:attribute name="identifierType" use="required" fixed="DOI"/>
|
40
|
+
</xs:extension>
|
41
|
+
</xs:simpleContent>
|
42
|
+
</xs:complexType>
|
43
|
+
</xs:element>
|
44
|
+
<xs:element name="creators">
|
45
|
+
<xs:complexType>
|
46
|
+
<xs:sequence>
|
47
|
+
<xs:element name="creator" maxOccurs="unbounded">
|
48
|
+
<xs:annotation>
|
49
|
+
<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>
|
50
|
+
<xs:documentation>Format: Family, Given.</xs:documentation>
|
51
|
+
<xs:documentation>Personal names can be further specified using givenName and familyName.</xs:documentation>
|
52
|
+
</xs:annotation>
|
53
|
+
<xs:complexType>
|
54
|
+
<xs:sequence>
|
55
|
+
<xs:element name="creatorName">
|
56
|
+
<xs:simpleType>
|
57
|
+
<xs:restriction base="nonemptycontentStringType"/>
|
58
|
+
</xs:simpleType>
|
59
|
+
</xs:element>
|
60
|
+
<xs:element name="givenName" minOccurs="0"/>
|
61
|
+
<xs:element name="familyName" minOccurs="0"/>
|
62
|
+
<xs:element name="nameIdentifier" minOccurs="0" maxOccurs="unbounded">
|
63
|
+
<xs:complexType>
|
64
|
+
<xs:simpleContent>
|
65
|
+
<xs:extension base="nonemptycontentStringType">
|
66
|
+
<xs:attribute name="nameIdentifierScheme" use="required"/>
|
67
|
+
<xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
|
68
|
+
</xs:extension>
|
69
|
+
</xs:simpleContent>
|
70
|
+
</xs:complexType>
|
71
|
+
</xs:element>
|
72
|
+
<xs:element name="affiliation" minOccurs="0" maxOccurs="unbounded"/>
|
73
|
+
</xs:sequence>
|
74
|
+
</xs:complexType>
|
75
|
+
</xs:element>
|
76
|
+
</xs:sequence>
|
77
|
+
</xs:complexType>
|
78
|
+
</xs:element>
|
79
|
+
<xs:element name="titles">
|
80
|
+
<xs:complexType>
|
81
|
+
<xs:sequence>
|
82
|
+
<xs:element name="title" maxOccurs="unbounded">
|
83
|
+
<xs:annotation>
|
84
|
+
<xs:documentation>A name or title by which a resource is known.</xs:documentation>
|
85
|
+
</xs:annotation>
|
86
|
+
<xs:complexType>
|
87
|
+
<xs:simpleContent>
|
88
|
+
<xs:extension base="nonemptycontentStringType">
|
89
|
+
<xs:attribute name="titleType" type="titleType" use="optional"/>
|
90
|
+
<xs:attribute ref="xml:lang"/>
|
91
|
+
</xs:extension>
|
92
|
+
</xs:simpleContent>
|
93
|
+
</xs:complexType>
|
94
|
+
</xs:element>
|
95
|
+
</xs:sequence>
|
96
|
+
</xs:complexType>
|
97
|
+
</xs:element>
|
98
|
+
<xs:element name="publisher">
|
99
|
+
<xs:annotation>
|
100
|
+
<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>
|
101
|
+
<xs:documentation>In the case of datasets, "publish" is understood to mean making the data available to the community of researchers.</xs:documentation>
|
102
|
+
</xs:annotation>
|
103
|
+
<xs:simpleType>
|
104
|
+
<xs:restriction base="nonemptycontentStringType"/>
|
105
|
+
</xs:simpleType>
|
106
|
+
</xs:element>
|
107
|
+
<xs:element name="publicationYear">
|
108
|
+
<xs:annotation>
|
109
|
+
<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>
|
110
|
+
<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>
|
111
|
+
<xs:documentation>YYYY</xs:documentation>
|
112
|
+
</xs:annotation>
|
113
|
+
<xs:simpleType>
|
114
|
+
<xs:restriction base="yearType"/>
|
115
|
+
</xs:simpleType>
|
116
|
+
</xs:element>
|
117
|
+
<xs:element name="resourceType">
|
118
|
+
<xs:annotation>
|
119
|
+
<xs:documentation>The type of a resource. You may enter an additional free text description.</xs:documentation>
|
120
|
+
<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>
|
121
|
+
</xs:annotation>
|
122
|
+
<xs:complexType>
|
123
|
+
<xs:simpleContent>
|
124
|
+
<xs:extension base="xs:string">
|
125
|
+
<xs:attribute name="resourceTypeGeneral" type="resourceType" use="required"/>
|
126
|
+
</xs:extension>
|
127
|
+
</xs:simpleContent>
|
128
|
+
</xs:complexType>
|
129
|
+
</xs:element>
|
130
|
+
<!--OPTIONAL FIELDS-->
|
131
|
+
<xs:element name="subjects" minOccurs="0">
|
132
|
+
<xs:complexType>
|
133
|
+
<xs:sequence>
|
134
|
+
<xs:element name="subject" minOccurs="0" maxOccurs="unbounded">
|
135
|
+
<xs:annotation>
|
136
|
+
<xs:documentation>Subject, keywords, classification codes, or key phrases describing the resource.</xs:documentation>
|
137
|
+
</xs:annotation>
|
138
|
+
<xs:complexType>
|
139
|
+
<xs:simpleContent>
|
140
|
+
<xs:extension base="xs:string">
|
141
|
+
<xs:attribute name="subjectScheme" use="optional"/>
|
142
|
+
<xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
|
143
|
+
<xs:attribute name="valueURI" type="xs:anyURI" use="optional"/>
|
144
|
+
<xs:attribute ref="xml:lang"/>
|
145
|
+
</xs:extension>
|
146
|
+
</xs:simpleContent>
|
147
|
+
</xs:complexType>
|
148
|
+
</xs:element>
|
149
|
+
</xs:sequence>
|
150
|
+
</xs:complexType>
|
151
|
+
</xs:element>
|
152
|
+
<xs:element name="contributors" minOccurs="0">
|
153
|
+
<xs:complexType>
|
154
|
+
<xs:sequence>
|
155
|
+
<xs:element name="contributor" minOccurs="0" maxOccurs="unbounded">
|
156
|
+
<xs:annotation>
|
157
|
+
<xs:documentation>The institution or person responsible for collecting, creating, or otherwise contributing to the developement of the dataset.</xs:documentation>
|
158
|
+
<xs:documentation>The personal name format should be: Family, Given.</xs:documentation>
|
159
|
+
</xs:annotation>
|
160
|
+
<xs:complexType>
|
161
|
+
<xs:sequence>
|
162
|
+
<xs:element name="contributorName">
|
163
|
+
<xs:simpleType>
|
164
|
+
<xs:restriction base="xs:string">
|
165
|
+
<xs:minLength value="1"/>
|
166
|
+
</xs:restriction>
|
167
|
+
</xs:simpleType>
|
168
|
+
</xs:element>
|
169
|
+
<xs:element name="givenName" minOccurs="0"/>
|
170
|
+
<xs:element name="familyName" minOccurs="0"/>
|
171
|
+
<xs:element name="nameIdentifier" minOccurs="0" maxOccurs="unbounded">
|
172
|
+
<xs:complexType>
|
173
|
+
<xs:simpleContent>
|
174
|
+
<xs:extension base="xs:string">
|
175
|
+
<xs:attribute name="nameIdentifierScheme" use="required"/>
|
176
|
+
<xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
|
177
|
+
</xs:extension>
|
178
|
+
</xs:simpleContent>
|
179
|
+
</xs:complexType>
|
180
|
+
</xs:element>
|
181
|
+
<xs:element name="affiliation" minOccurs="0" maxOccurs="unbounded"/>
|
182
|
+
</xs:sequence>
|
183
|
+
<xs:attribute name="contributorType" type="contributorType" use="required"/>
|
184
|
+
</xs:complexType>
|
185
|
+
</xs:element>
|
186
|
+
</xs:sequence>
|
187
|
+
</xs:complexType>
|
188
|
+
</xs:element>
|
189
|
+
<xs:element name="dates" minOccurs="0">
|
190
|
+
<xs:complexType>
|
191
|
+
<xs:sequence>
|
192
|
+
<xs:element name="date" minOccurs="0" maxOccurs="unbounded">
|
193
|
+
<xs:annotation>
|
194
|
+
<xs:documentation>Different dates relevant to the work.</xs:documentation>
|
195
|
+
<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>
|
196
|
+
</xs:annotation>
|
197
|
+
<xs:complexType>
|
198
|
+
<xs:simpleContent>
|
199
|
+
<xs:extension base="xs:string">
|
200
|
+
<xs:attribute name="dateType" type="dateType" use="required"/>
|
201
|
+
</xs:extension>
|
202
|
+
</xs:simpleContent>
|
203
|
+
</xs:complexType>
|
204
|
+
</xs:element>
|
205
|
+
</xs:sequence>
|
206
|
+
</xs:complexType>
|
207
|
+
</xs:element>
|
208
|
+
<xs:element name="language" type="xs:language" minOccurs="0">
|
209
|
+
<xs:annotation>
|
210
|
+
<xs:documentation>Primary language of the resource. Allowed values are taken from IETF BCP 47, ISO 639-1 language codes.</xs:documentation>
|
211
|
+
</xs:annotation>
|
212
|
+
</xs:element>
|
213
|
+
<xs:element name="alternateIdentifiers" minOccurs="0">
|
214
|
+
<xs:complexType>
|
215
|
+
<xs:sequence>
|
216
|
+
<xs:element name="alternateIdentifier" minOccurs="0" maxOccurs="unbounded">
|
217
|
+
<xs:annotation>
|
218
|
+
<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>
|
219
|
+
</xs:annotation>
|
220
|
+
<xs:complexType>
|
221
|
+
<xs:simpleContent>
|
222
|
+
<xs:extension base="xs:string">
|
223
|
+
<xs:attribute name="alternateIdentifierType" use="required"/>
|
224
|
+
</xs:extension>
|
225
|
+
</xs:simpleContent>
|
226
|
+
</xs:complexType>
|
227
|
+
</xs:element>
|
228
|
+
</xs:sequence>
|
229
|
+
</xs:complexType>
|
230
|
+
</xs:element>
|
231
|
+
<xs:element name="relatedIdentifiers" minOccurs="0">
|
232
|
+
<xs:complexType>
|
233
|
+
<xs:sequence>
|
234
|
+
<xs:element name="relatedIdentifier" minOccurs="0" maxOccurs="unbounded">
|
235
|
+
<xs:annotation>
|
236
|
+
<xs:documentation>Identifiers of related resources. Use this property to indicate subsets of properties, as appropriate.</xs:documentation>
|
237
|
+
</xs:annotation>
|
238
|
+
<xs:complexType>
|
239
|
+
<xs:simpleContent>
|
240
|
+
<xs:extension base="xs:string">
|
241
|
+
<xs:attribute name="relatedIdentifierType" type="relatedIdentifierType" use="required"/>
|
242
|
+
<xs:attribute name="relationType" type="relationType" use="required"/>
|
243
|
+
<xs:attribute name="relatedMetadataScheme" use="optional"/>
|
244
|
+
<xs:attribute name="schemeURI" type="xs:anyURI" use="optional"/>
|
245
|
+
<xs:attribute name="schemeType" use="optional"/>
|
246
|
+
</xs:extension>
|
247
|
+
</xs:simpleContent>
|
248
|
+
</xs:complexType>
|
249
|
+
</xs:element>
|
250
|
+
</xs:sequence>
|
251
|
+
</xs:complexType>
|
252
|
+
</xs:element>
|
253
|
+
<xs:element name="sizes" minOccurs="0">
|
254
|
+
<xs:complexType>
|
255
|
+
<xs:sequence>
|
256
|
+
<xs:element name="size" type="xs:string" minOccurs="0" maxOccurs="unbounded">
|
257
|
+
<xs:annotation>
|
258
|
+
<xs:documentation>Unstructures size information about the resource.</xs:documentation>
|
259
|
+
</xs:annotation>
|
260
|
+
</xs:element>
|
261
|
+
</xs:sequence>
|
262
|
+
</xs:complexType>
|
263
|
+
</xs:element>
|
264
|
+
<xs:element name="formats" minOccurs="0">
|
265
|
+
<xs:complexType>
|
266
|
+
<xs:sequence>
|
267
|
+
<xs:element name="format" type="xs:string" minOccurs="0" maxOccurs="unbounded">
|
268
|
+
<xs:annotation>
|
269
|
+
<xs:documentation>Technical format of the resource.</xs:documentation>
|
270
|
+
<xs:documentation>Use file extension or MIME type where possible.</xs:documentation>
|
271
|
+
</xs:annotation>
|
272
|
+
</xs:element>
|
273
|
+
</xs:sequence>
|
274
|
+
</xs:complexType>
|
275
|
+
</xs:element>
|
276
|
+
<xs:element name="version" type="xs:string" minOccurs="0">
|
277
|
+
<xs:annotation>
|
278
|
+
<xs:documentation>Version number of the resource. If the primary resource has changed the version number increases.</xs:documentation>
|
279
|
+
<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>
|
280
|
+
</xs:annotation>
|
281
|
+
</xs:element>
|
282
|
+
<xs:element name="rightsList" minOccurs="0">
|
283
|
+
<xs:complexType>
|
284
|
+
<xs:sequence>
|
285
|
+
<xs:element name="rights" minOccurs="0" maxOccurs="unbounded">
|
286
|
+
<xs:annotation>
|
287
|
+
<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.
|
288
|
+
Use the complete title of a license and include version information if applicable.</xs:documentation>
|
289
|
+
</xs:annotation>
|
290
|
+
<xs:complexType>
|
291
|
+
<xs:simpleContent>
|
292
|
+
<xs:extension base="xs:string">
|
293
|
+
<xs:attribute name="rightsURI" type="xs:anyURI" use="optional"/>
|
294
|
+
</xs:extension>
|
295
|
+
</xs:simpleContent>
|
296
|
+
</xs:complexType>
|
297
|
+
</xs:element>
|
298
|
+
</xs:sequence>
|
299
|
+
</xs:complexType>
|
300
|
+
</xs:element>
|
301
|
+
<xs:element name="descriptions" minOccurs="0">
|
302
|
+
<xs:complexType>
|
303
|
+
<xs:sequence>
|
304
|
+
<xs:element name="description" minOccurs="0" maxOccurs="unbounded">
|
305
|
+
<xs:annotation>
|
306
|
+
<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>
|
307
|
+
</xs:annotation>
|
308
|
+
<xs:complexType mixed="true">
|
309
|
+
<xs:choice>
|
310
|
+
<xs:element name="br" minOccurs="0" maxOccurs="unbounded">
|
311
|
+
<xs:simpleType>
|
312
|
+
<xs:restriction base="xs:string">
|
313
|
+
<xs:length value="0"/>
|
314
|
+
</xs:restriction>
|
315
|
+
</xs:simpleType>
|
316
|
+
</xs:element>
|
317
|
+
</xs:choice>
|
318
|
+
<xs:attribute name="descriptionType" type="descriptionType" use="required"/>
|
319
|
+
<xs:attribute ref="xml:lang"/>
|
320
|
+
</xs:complexType>
|
321
|
+
</xs:element>
|
322
|
+
</xs:sequence>
|
323
|
+
</xs:complexType>
|
324
|
+
</xs:element>
|
325
|
+
<xs:element name="geoLocations" minOccurs="0">
|
326
|
+
<xs:complexType>
|
327
|
+
<xs:sequence>
|
328
|
+
<xs:element name="geoLocation" minOccurs="0" maxOccurs="unbounded">
|
329
|
+
<xs:complexType>
|
330
|
+
<xs:all>
|
331
|
+
<xs:element name="geoLocationPlace" minOccurs="0">
|
332
|
+
<xs:annotation>
|
333
|
+
<xs:documentation>Spatial region or named place where the data was gathered or about which the data is focused.</xs:documentation>
|
334
|
+
</xs:annotation>
|
335
|
+
</xs:element>
|
336
|
+
<xs:element name="geoLocationPoint" type="point" minOccurs="0">
|
337
|
+
<xs:annotation>
|
338
|
+
<xs:documentation>A point contains a single latitude-longitude pair, separated by whitespace.</xs:documentation>
|
339
|
+
</xs:annotation>
|
340
|
+
</xs:element>
|
341
|
+
<xs:element name="geoLocationBox" type="box" minOccurs="0">
|
342
|
+
<xs:annotation>
|
343
|
+
<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>
|
344
|
+
</xs:annotation>
|
345
|
+
</xs:element>
|
346
|
+
<xs:element name="geoLocationPolygon" minOccurs="0">
|
347
|
+
<xs:annotation>
|
348
|
+
<xs:documentation>A drawn polygon area, defined by a set of points and lines connecting the points in a closed chain.</xs:documentation>
|
349
|
+
</xs:annotation>
|
350
|
+
<xs:complexType>
|
351
|
+
<xs:sequence>
|
352
|
+
<xs:element name="polygonPoint" type="point" minOccurs="4" maxOccurs="unbounded"/>
|
353
|
+
</xs:sequence>
|
354
|
+
</xs:complexType>
|
355
|
+
</xs:element>
|
356
|
+
</xs:all>
|
357
|
+
</xs:complexType>
|
358
|
+
</xs:element>
|
359
|
+
</xs:sequence>
|
360
|
+
</xs:complexType>
|
361
|
+
</xs:element>
|
362
|
+
<xs:element name="fundingReferences" minOccurs="0">
|
363
|
+
<xs:complexType>
|
364
|
+
<xs:sequence>
|
365
|
+
<xs:element name="fundingReference" minOccurs="0" maxOccurs="unbounded">
|
366
|
+
<xs:annotation>
|
367
|
+
<xs:documentation>Information about financial support (funding) for the resource being registered.</xs:documentation>
|
368
|
+
</xs:annotation>
|
369
|
+
<xs:complexType>
|
370
|
+
<xs:all>
|
371
|
+
<xs:element name="funderName" minOccurs="1" maxOccurs="1">
|
372
|
+
<xs:annotation>
|
373
|
+
<xs:documentation>Name of the funding provider.</xs:documentation>
|
374
|
+
</xs:annotation>
|
375
|
+
<xs:simpleType>
|
376
|
+
<xs:restriction base="nonemptycontentStringType"/>
|
377
|
+
</xs:simpleType>
|
378
|
+
</xs:element>
|
379
|
+
<xs:element name="funderIdentifier" minOccurs="0">
|
380
|
+
<xs:annotation>
|
381
|
+
<xs:documentation>Uniquely identifies a funding entity, according to various types.</xs:documentation>
|
382
|
+
</xs:annotation>
|
383
|
+
<xs:complexType>
|
384
|
+
<xs:simpleContent>
|
385
|
+
<xs:extension base="xs:string">
|
386
|
+
<xs:attribute name="funderIdentifierType" type="funderIdentifierType" use="required"/>
|
387
|
+
</xs:extension>
|
388
|
+
</xs:simpleContent>
|
389
|
+
</xs:complexType>
|
390
|
+
</xs:element>
|
391
|
+
<xs:element name="awardNumber" minOccurs="0">
|
392
|
+
<xs:annotation>
|
393
|
+
<xs:documentation>The code assigned by the funder to a sponsored award (grant).</xs:documentation>
|
394
|
+
</xs:annotation>
|
395
|
+
<xs:complexType>
|
396
|
+
<xs:simpleContent>
|
397
|
+
<xs:extension base="xs:string">
|
398
|
+
<xs:attribute name="awardURI" type="xs:anyURI" use="optional"/>
|
399
|
+
</xs:extension>
|
400
|
+
</xs:simpleContent>
|
401
|
+
</xs:complexType>
|
402
|
+
</xs:element>
|
403
|
+
<xs:element name="awardTitle" minOccurs="0">
|
404
|
+
<xs:annotation>
|
405
|
+
<xs:documentation>The human readable title of the award (grant).</xs:documentation>
|
406
|
+
</xs:annotation>
|
407
|
+
<xs:simpleType>
|
408
|
+
<xs:restriction base="nonemptycontentStringType"/>
|
409
|
+
</xs:simpleType>
|
410
|
+
</xs:element>
|
411
|
+
</xs:all>
|
412
|
+
</xs:complexType>
|
413
|
+
</xs:element>
|
414
|
+
</xs:sequence>
|
415
|
+
</xs:complexType>
|
416
|
+
</xs:element>
|
417
|
+
</xs:all>
|
418
|
+
</xs:complexType>
|
419
|
+
</xs:element>
|
420
|
+
<!-- TYPE DECLARATIONS -->
|
421
|
+
<!-- defines the value for a DOI" -->
|
422
|
+
<xs:simpleType name="doiType">
|
423
|
+
<xs:restriction base="xs:token">
|
424
|
+
<xs:pattern value="10\..+/.+"/>
|
425
|
+
</xs:restriction>
|
426
|
+
</xs:simpleType>
|
427
|
+
<!-- defines value for mandatory fields -->
|
428
|
+
<xs:simpleType name="nonemptycontentStringType">
|
429
|
+
<xs:restriction base="xs:string">
|
430
|
+
<xs:minLength value="1"/>
|
431
|
+
</xs:restriction>
|
432
|
+
</xs:simpleType>
|
433
|
+
<xs:attributeGroup name="nameId">
|
434
|
+
<xs:attribute name="nameIdentifier" type="xs:string" use="optional"/>
|
435
|
+
<xs:attribute name="nameIdentifierScheme" type="xs:string" use="optional"/>
|
436
|
+
</xs:attributeGroup>
|
437
|
+
<!-- defines the value for a year -->
|
438
|
+
<xs:simpleType name="yearType">
|
439
|
+
<xs:restriction base="xs:token">
|
440
|
+
<xs:pattern value="[\d]{4}"/>
|
441
|
+
</xs:restriction>
|
442
|
+
</xs:simpleType>
|
443
|
+
<!-- definitions for geoLocation -->
|
444
|
+
<xs:complexType name="point">
|
445
|
+
<xs:all>
|
446
|
+
<xs:element name="pointLongitude" type="longitudeType" minOccurs="1"/>
|
447
|
+
<xs:element name="pointLatitude" type="latitudeType" minOccurs="1"/>
|
448
|
+
</xs:all>
|
449
|
+
</xs:complexType>
|
450
|
+
<xs:complexType name="box">
|
451
|
+
<xs:all>
|
452
|
+
<xs:element name="westBoundLongitude" type="longitudeType" minOccurs="1"/>
|
453
|
+
<xs:element name="eastBoundLongitude" type="longitudeType" minOccurs="1"/>
|
454
|
+
<xs:element name="southBoundLatitude" type="latitudeType" minOccurs="1"/>
|
455
|
+
<xs:element name="northBoundLatitude" type="latitudeType" minOccurs="1"/>
|
456
|
+
</xs:all>
|
457
|
+
</xs:complexType>
|
458
|
+
<xs:simpleType name="longitudeType">
|
459
|
+
<xs:restriction base="xs:float">
|
460
|
+
<xs:minInclusive value="-180"/>
|
461
|
+
<xs:maxInclusive value="180"/>
|
462
|
+
</xs:restriction>
|
463
|
+
</xs:simpleType>
|
464
|
+
<xs:simpleType name="latitudeType">
|
465
|
+
<xs:restriction base="xs:float">
|
466
|
+
<xs:minInclusive value="-90"/>
|
467
|
+
<xs:maxInclusive value="90"/>
|
468
|
+
</xs:restriction>
|
469
|
+
</xs:simpleType>
|
470
|
+
</xs:schema>
|