Blame view

src/main/resources/xsd/record_2.0/funding-2.0.xsd 6.92 KB
4c94a2889   Paulo Graça   PG: Initial Setup...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  <?xml version="1.0" encoding="UTF-8"?>
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  	xmlns:sch="http://purl.oclc.org/dsdl/schematron" elementFormDefault="qualified"
  	targetNamespace="http://www.orcid.org/ns/funding" xmlns:funding="http://www.orcid.org/ns/funding"
  	xmlns:common="http://www.orcid.org/ns/common">
  	<xs:annotation>
  		<xs:documentation>
  			=============================================================================
  
  			ORCID (R) Open Source
  			http://orcid.org
  
  			Copyright (c) 2012-2014 ORCID,
  			Inc.
  			Licensed under an MIT-Style License (MIT)
  			http://orcid.org/open-source-license
  
  			This copyright and license
  			information (including a link to the full
  			license)
  			shall be included in
  			its entirety in all copies or substantial portion of
  			the software.
  
  			=============================================================================
  			The schema describes the message format used for ORCID API requests
  			and responses.
  			The top level element is orcid-message.
  		</xs:documentation>
  		<xs:appinfo>
  			<sch:title>Schematron validation</sch:title>
  			<sch:ns prefix="orcid" uri="http://www.orcid.org/ns/orcid" />
  		</xs:appinfo>
  	</xs:annotation>
  
  	<xs:import namespace="http://www.orcid.org/ns/common"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
37
  		schemaLocation="../common_2.0/common-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  
  	<xs:element name="funding">
  		<xs:annotation>
  			<xs:documentation>Funding received by the researcher or contributor.
  				* REQUIRED FIELDS: Funding-type, Funding-title, Funding Agency
  				(organization)
  				* The visibility attribute (private, limited or
  				public) can be set at
  				record creation, and indicates who can see this
  				section of
  				information.
  				* The put-code attribute is used only when
  				reading this element. When
  				updating the item, the put-code attribute
  				must be included to
  				indicate the specific record to be updated.
  			</xs:documentation>
  		</xs:annotation>
  		<xs:complexType>
  			<xs:complexContent>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
58
  				<xs:extension base="common:element-summary">
4c94a2889   Paulo Graça   PG: Initial Setup...
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
  					<xs:sequence>
  						<xs:element name="type" type="funding:funding-type"
  							minOccurs="1" maxOccurs="1" />
  						<xs:element name="organization-defined-type" type="common:organization-defined-type"
  							minOccurs="0" maxOccurs="1" />
  						<xs:element name="title" type="funding:funding-title"
  							minOccurs="0" />
  						<xs:element name="short-description" type="common:short-description"
  							minOccurs="0" />
  						<xs:element name="amount" type="common:amount"
  							minOccurs="0" maxOccurs="1" />
  						<xs:element name="url" type="common:url" minOccurs="0"
  							maxOccurs="1" />
  						<xs:element ref="common:start-date" minOccurs="0"
  							maxOccurs="1">
  							<xs:annotation>
  								<xs:documentation>Start date for the funding.</xs:documentation>
  							</xs:annotation>
  						</xs:element>
  						<xs:element ref="common:end-date" minOccurs="0"
  							maxOccurs="1">
  							<xs:annotation>
  								<xs:documentation>End date for the funding.</xs:documentation>
  							</xs:annotation>
  						</xs:element>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
84
  						<xs:element ref="common:external-ids"
4c94a2889   Paulo Graça   PG: Initial Setup...
85
86
87
88
89
90
91
92
93
94
  							minOccurs="0" />
  						<xs:element name="contributors" type="funding:contributors"
  							minOccurs="0" />
  						<xs:element name="organization" type="common:organization"
  							minOccurs="1" maxOccurs="1" />
  					</xs:sequence>
  				</xs:extension>
  			</xs:complexContent>
  		</xs:complexType>
  	</xs:element>
6c41472c8   Paulo Graça   Test bulk integra...
95
  	<xs:element name="funding-summary">
4c94a2889   Paulo Graça   PG: Initial Setup...
96
97
  		<xs:complexType>
  			<xs:complexContent>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
98
  				<xs:extension base="common:element-summary">
4c94a2889   Paulo Graça   PG: Initial Setup...
99
100
101
  					<xs:sequence>
  						<xs:element name="title" type="funding:funding-title"
  							minOccurs="1" />
67fec7b77   André Gonçalves   Sprint 10 + API 2...
102
  						<xs:element ref="common:external-ids"
4c94a2889   Paulo Graça   PG: Initial Setup...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
  							minOccurs="0" />
  						<xs:element name="type" type="funding:funding-type"
  							minOccurs="1" maxOccurs="1" />
  						<xs:element ref="common:start-date" minOccurs="0"
  							maxOccurs="1">
  							<xs:annotation>
  								<xs:documentation>Start date for the funding.</xs:documentation>
  							</xs:annotation>
  						</xs:element>
  						<xs:element ref="common:end-date" minOccurs="0"
  							maxOccurs="1">
  							<xs:annotation>
  								<xs:documentation>End date for the funding.</xs:documentation>
  							</xs:annotation>
  						</xs:element>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
118
119
  						<xs:element name="organization" type="common:organization" 
  							minOccurs="1" maxOccurs="1" />
4c94a2889   Paulo Graça   PG: Initial Setup...
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
  					</xs:sequence>
  				</xs:extension>
  			</xs:complexContent>
  		</xs:complexType>
  	</xs:element>
  
  	<xs:complexType name="funding-title">
  		<xs:annotation>
  			<xs:documentation>Container for titles of the funding.
  			</xs:documentation>
  		</xs:annotation>
  		<xs:sequence>
  			<xs:element ref="common:title">
  				<xs:annotation>
  					<xs:documentation>The main name or title of the funding.
  					</xs:documentation>
  				</xs:annotation>
  			</xs:element>
  			<xs:element ref="common:translated-title" minOccurs="0" />
  		</xs:sequence>
  	</xs:complexType>
  
  	<xs:simpleType name="funding-type">
  		<xs:annotation>
  			<xs:documentation>The type of funding, it could be grant, contract,
  				award or salary-award.
  			</xs:documentation>
  		</xs:annotation>
  
  		<xs:restriction base="xs:string">
  			<xs:enumeration value="grant" />
  			<xs:enumeration value="contract" />
  			<xs:enumeration value="award" />
  			<xs:enumeration value="salary-award" />
  		</xs:restriction>
  	</xs:simpleType>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
156
  	
4c94a2889   Paulo Graça   PG: Initial Setup...
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
  	<xs:complexType name="contributors">
  		<xs:annotation>
  			<xs:documentation>Container for the contributors of a funding.
  			</xs:documentation>
  		</xs:annotation>
  		<xs:sequence>
  			<xs:element maxOccurs="unbounded" minOccurs="0" name="contributor"
  				type="funding:contributor" />
  		</xs:sequence>
  	</xs:complexType>
  
  	<xs:complexType name="contributor">
  		<xs:annotation>
  			<xs:documentation>A collaborator or other contributor to a work or
  				other orcid-activity
  			</xs:documentation>
  		</xs:annotation>
  		<xs:sequence>
  			<xs:element ref="common:contributor-orcid" minOccurs="0"
  				maxOccurs="1" />
  			<xs:element name="credit-name" type="common:credit-name"
  				minOccurs="0" maxOccurs="1" />
  			<xs:element name="contributor-email" type="common:contributor-email"
  				minOccurs="0" maxOccurs="1" />
  			<xs:element name="contributor-attributes" type="funding:contributor-attributes"
  				minOccurs="0" maxOccurs="1" />
  		</xs:sequence>
  	</xs:complexType>
  
  	<xs:complexType name="contributor-attributes">
  		<xs:annotation>
  			<xs:documentation>Provides detail of the nature of the contribution
  				by the collaborator or other contirbutor.
  			</xs:documentation>
  		</xs:annotation>
  		<xs:sequence>
  			<xs:element name="contributor-role" type="funding:contributor-role"
  				minOccurs="0" />
  		</xs:sequence>
  	</xs:complexType>
  
  	<xs:simpleType name="contributor-role">
  		<xs:annotation>
  			<xs:documentation>The role performed by the collaborator or other
  				contributor.
  			</xs:documentation>
  		</xs:annotation>
  		<xs:restriction base="xs:string">
  			<xs:enumeration value="lead" />
  			<xs:enumeration value="co-lead" />
  			<xs:enumeration value="supported-by" />
  			<xs:enumeration value="other-contribution" />
  		</xs:restriction>
  	</xs:simpleType>
  
  </xs:schema>