Blame view

src/main/resources/xsd/record_2.0/activities-2.0.xsd 7.34 KB
4c94a2889   Paulo Graça   PG: Initial Setup...
1
2
3
  <?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"
67fec7b77   André Gonçalves   Sprint 10 + API 2...
4
5
6
7
8
9
  	targetNamespace="http://www.orcid.org/ns/activities" 
  	xmlns:activities="http://www.orcid.org/ns/activities"
  	xmlns:common="http://www.orcid.org/ns/common" 
  	xmlns:work="http://www.orcid.org/ns/work"
  	xmlns:funding="http://www.orcid.org/ns/funding" 
  	xmlns:education="http://www.orcid.org/ns/education"
4c94a2889   Paulo Graça   PG: Initial Setup...
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  	xmlns:employment="http://www.orcid.org/ns/employment"
  	xmlns:peer-review="http://www.orcid.org/ns/peer-review">
  	<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>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
41
   
4c94a2889   Paulo Graça   PG: Initial Setup...
42
  	<xs:import namespace="http://www.orcid.org/ns/common"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
43
  		schemaLocation="../common_2.0/common-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
44
  	<xs:import namespace="http://www.orcid.org/ns/employment"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
45
  		schemaLocation="employment-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
46
  	<xs:import namespace="http://www.orcid.org/ns/education"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
47
  		schemaLocation="education-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
48
  	<xs:import namespace="http://www.orcid.org/ns/funding"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
49
  		schemaLocation="funding-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
50
  	<xs:import namespace="http://www.orcid.org/ns/work"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
51
  		schemaLocation="work-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
52
  	<xs:import namespace="http://www.orcid.org/ns/peer-review"
e7f9a87b3   Paulo Graça   v2.0 Orcid model
53
  		schemaLocation="peer-review-2.0.xsd" />
4c94a2889   Paulo Graça   PG: Initial Setup...
54
55
56
57
  
  	<xs:element name="activities-summary">
  		<xs:complexType>
  			<xs:sequence>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
58
  				<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
e7f9a87b3   Paulo Graça   v2.0 Orcid model
59
60
  				
  				<xs:element name="educations" type="activities:educations" minOccurs="0" maxOccurs="1">
4c94a2889   Paulo Graça   PG: Initial Setup...
61
62
  					<xs:annotation>
  						<xs:documentation>Container for the list of educations associated
e7f9a87b3   Paulo Graça   v2.0 Orcid model
63
  							with the researcher or contributor
4c94a2889   Paulo Graça   PG: Initial Setup...
64
  						</xs:documentation>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
65
  					</xs:annotation>										
4c94a2889   Paulo Graça   PG: Initial Setup...
66
  				</xs:element>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
67
68
  												
  				<xs:element name="employments" type="activities:employments" minOccurs="0" maxOccurs="1">
4c94a2889   Paulo Graça   PG: Initial Setup...
69
70
  					<xs:annotation>
  						<xs:documentation>Container for the list of employments associated
e7f9a87b3   Paulo Graça   v2.0 Orcid model
71
  							with the researcher or contributor
4c94a2889   Paulo Graça   PG: Initial Setup...
72
  						</xs:documentation>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
73
  					</xs:annotation>					
4c94a2889   Paulo Graça   PG: Initial Setup...
74
  				</xs:element>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
75
76
  																				
  				<xs:element name="fundings" type="activities:fundings" minOccurs="0" maxOccurs="1">
4c94a2889   Paulo Graça   PG: Initial Setup...
77
78
79
80
  					<xs:annotation>
  						<xs:documentation>Container for the funding received by the
  							researcher or contributor
  						</xs:documentation>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
81
  					</xs:annotation>					
4c94a2889   Paulo Graça   PG: Initial Setup...
82
  				</xs:element>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
83
  				<xs:element name="peer-reviews" type="activities:peer-reviews" minOccurs="0" maxOccurs="1">
4c94a2889   Paulo Graça   PG: Initial Setup...
84
85
86
87
  					<xs:annotation>
  						<xs:documentation>Container for the funding received by the
  							researcher or contributor
  						</xs:documentation>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
88
  					</xs:annotation>					
4c94a2889   Paulo Graça   PG: Initial Setup...
89
  				</xs:element>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
90
  				<xs:element name="works" type="activities:works" minOccurs="0" maxOccurs="1">
4c94a2889   Paulo Graça   PG: Initial Setup...
91
92
93
94
95
  					<xs:annotation>
  						<xs:documentation>Container for the Works published by the
  							researcher
  							or contributor.
  						</xs:documentation>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
96
  					</xs:annotation>					
4c94a2889   Paulo Graça   PG: Initial Setup...
97
98
  				</xs:element>
  			</xs:sequence>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
  			<xs:attribute name="path" type="common:element-path" use="optional" />
  		</xs:complexType>		
  	</xs:element>
  
  	<xs:complexType name="educations">
  		<xs:sequence>
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element maxOccurs="unbounded" minOccurs="0"
  				ref="education:education-summary" />
  		</xs:sequence>
  		<xs:attribute name="path" type="common:element-path" use="optional" />
  	</xs:complexType>
  
  	<xs:element name="educations">
  		<xs:complexType>
  			<xs:complexContent>
  				<xs:extension base="activities:educations" />
  			</xs:complexContent>
4c94a2889   Paulo Graça   PG: Initial Setup...
117
118
  		</xs:complexType>
  	</xs:element>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
119
  	<xs:complexType name="employments">
4c94a2889   Paulo Graça   PG: Initial Setup...
120
  		<xs:sequence>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
121
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
e7f9a87b3   Paulo Graça   v2.0 Orcid model
122
123
  			<xs:element maxOccurs="unbounded" minOccurs="0"
  				ref="employment:employment-summary" />
4c94a2889   Paulo Graça   PG: Initial Setup...
124
  		</xs:sequence>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
125
  		<xs:attribute name="path" type="common:element-path" use="optional" />
4c94a2889   Paulo Graça   PG: Initial Setup...
126
  	</xs:complexType>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
127
128
129
130
131
132
133
  	<xs:element name="employments"> 
  		<xs:complexType>
  			<xs:complexContent>
  				<xs:extension base="activities:employments" />
  			</xs:complexContent>
  		</xs:complexType>
  	</xs:element>	
4c94a2889   Paulo Graça   PG: Initial Setup...
134
135
  	<xs:complexType name="funding-group">
  		<xs:sequence>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
136
137
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element ref="common:external-ids"></xs:element>
4c94a2889   Paulo Graça   PG: Initial Setup...
138
139
  			<xs:sequence>
  				<xs:element maxOccurs="unbounded" minOccurs="0"
6c41472c8   Paulo Graça   Test bulk integra...
140
  					ref="funding:funding-summary" />
4c94a2889   Paulo Graça   PG: Initial Setup...
141
142
143
  			</xs:sequence>
  		</xs:sequence>
  	</xs:complexType>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
  	
  	<xs:complexType name="fundings">
  		<xs:sequence>
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element maxOccurs="unbounded" minOccurs="0" name="group"
  				type="activities:funding-group" />
  		</xs:sequence>
  		<xs:attribute name="path" type="common:element-path" use="optional" />
  	</xs:complexType>
  
  	<xs:element name="fundings">
  		<xs:complexType>
  			<xs:complexContent>
  				<xs:extension base="activities:fundings" />
  			</xs:complexContent>
  		</xs:complexType>
  	</xs:element>
4c94a2889   Paulo Graça   PG: Initial Setup...
161
162
163
  
  	<xs:complexType name="peer-review-group">
  		<xs:sequence>
67fec7b77   André Gonçalves   Sprint 10 + API 2...
164
165
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element ref="common:external-ids"></xs:element>
4c94a2889   Paulo Graça   PG: Initial Setup...
166
167
  			<xs:sequence>
  				<xs:element maxOccurs="unbounded" minOccurs="0"
6c41472c8   Paulo Graça   Test bulk integra...
168
  					ref="peer-review:peer-review-summary" />
4c94a2889   Paulo Graça   PG: Initial Setup...
169
170
171
  			</xs:sequence>
  		</xs:sequence>
  	</xs:complexType>
e7f9a87b3   Paulo Graça   v2.0 Orcid model
172
173
174
175
176
177
178
179
180
  	
  	<xs:complexType name="peer-reviews">		
  		<xs:sequence>
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element maxOccurs="unbounded" minOccurs="0" name="group"
  				type="activities:peer-review-group" />
  		</xs:sequence>
  		<xs:attribute name="path" type="common:element-path" use="optional" />
  	</xs:complexType>
4c94a2889   Paulo Graça   PG: Initial Setup...
181
e7f9a87b3   Paulo Graça   v2.0 Orcid model
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
  	<xs:element name="peer-reviews">
  		<xs:complexType>
  			<xs:complexContent>
  				<xs:extension base="activities:peer-reviews" />
  			</xs:complexContent>
  		</xs:complexType>
  	</xs:element>
  	
  	<xs:complexType name="work-group">
  		<xs:sequence>
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element ref="common:external-ids"></xs:element>
  			<xs:sequence>
  				<xs:element maxOccurs="unbounded" minOccurs="0"
  					ref="work:work-summary" />
  			</xs:sequence>
  		</xs:sequence>
  	</xs:complexType>
  	
  	<xs:complexType name="works">		
  		<xs:sequence>
  			<xs:element ref="common:last-modified-date" minOccurs="0" maxOccurs="1" />
  			<xs:element maxOccurs="unbounded" minOccurs="0" name="group"
  				type="activities:work-group" />
  		</xs:sequence>
  		<xs:attribute name="path" type="common:element-path" use="optional" />
  	</xs:complexType>
  	
  	<xs:element name="works">
  		<xs:complexType>
  			<xs:complexContent>
  				<xs:extension base="activities:works" />
  			</xs:complexContent>
  		</xs:complexType>
  	</xs:element>
4c94a2889   Paulo Graça   PG: Initial Setup...
217
  </xs:schema>