Project

General

Profile

1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
2
	elementFormDefault="unqualified" xmlns="http://namespace.openaire.eu/oaf"
3
	targetNamespace="http://namespace.openaire.eu/oaf">
4

    
5
	<xs:annotation>
6
		<xs:documentation>This schema describes elements and properties of
7
			OpenAIRE+ entities of
8
			type result, namely: publications and datasets.
9
		</xs:documentation>
10
	</xs:annotation>
11

    
12
	<xs:include schemaLocation="oaf-common-0.3.xsd" />
13

    
14
	<xs:element name="result">
15
		<xs:complexType>
16
			<xs:choice maxOccurs="unbounded">
17
				<xs:element name="subject" type="optionalClassedSchemedElement"
18
					maxOccurs="unbounded">
19
					<xs:annotation>
20
						<xs:documentation>
21
							Subjects and keywords.
22
							<p>For allowed values check:
23
								http://api.openaire.eu/vocabularies/dnet:result_subjects
24
							</p>
25
						</xs:documentation>
26
					</xs:annotation>
27
				</xs:element>
28
				<xs:element name="title" type="classedSchemedElement">
29
					<xs:annotation>
30
						<xs:documentation>
31
							Title of this research result.
32
							<p>Different types of titles are allowed: see
33
								http://api.openaire.eu/vocabularies/dnet:dataCite_title
34
							</p>
35
						</xs:documentation>
36
					</xs:annotation>
37
				</xs:element>
38
				<xs:element name="dateofacceptance" type="inferenceExtendedStringType" />
39
				<xs:element name="publisher" type="inferenceExtendedStringType" />
40
				<xs:element name="resulttype" type="classedSchemedElement">
41
					<xs:annotation>
42
						<xs:documentation>
43
							Tells if this record is about a publication or a dataset.
44
							<p>For allowed values check:
45
								http://api.openaire.eu/vocabularies/dnet:result_typologies
46
							</p>
47
						</xs:documentation>
48
					</xs:annotation>
49
				</xs:element>
50
				<xs:element name="language" type="optionalClassedSchemedElement">
51
					<xs:annotation>
52
						<xs:documentation>
53
							Language in ISO 639-2.
54
							<p>For allowed values check: http://api.openaire.eu/vocabularies/dnet:languages</p>
55
						</xs:documentation>
56
					</xs:annotation>
57
				</xs:element>
58
				<xs:element name="journal" type="journalType" />
59
				<xs:element name="description" type="xs:string"
60
					maxOccurs="unbounded" />
61
				<xs:element name="source" type="xs:string">
62
					<xs:annotation>
63
						<xs:documentation>The semantics of this field is inherited from
64
							dc:source in Dublin Core. 
65
						</xs:documentation>
66
					</xs:annotation>
67
				</xs:element>
68
				<xs:element name="country" type="classedSchemedElement"/>
69
				<xs:element name="relevantdate" type="optionalClassedSchemedElement" />
70
				<xs:element name="embargoenddate" type="xs:string" />
71
				<xs:element name="storagedate" type="xs:string" />
72
				<xs:element name="fulltext" type="inferenceExtendedStringType" />
73
				<xs:element name="resourcetype" type="optionalClassedSchemedElement">
74
					<xs:annotation>
75
						<xs:documentation>
76
						This field is valid only if resulttype is "dataset". It expresses the nature of the dataset.
77
						<p>For allowed values check:
78
							http://api.openaire.eu/vocabularies/dnet:publication_resource
79
						</p>
80
						</xs:documentation>
81
					</xs:annotation>
82
				</xs:element>
83
				<xs:element name="device" type="xs:string">
84
					<xs:annotation>
85
						<xs:documentation>
86
						This field is valid only if resulttype is "dataset". It contains information about the device used to generate the dataset.
87
						</xs:documentation>
88
					</xs:annotation>
89
				</xs:element>
90
				<xs:element name="size" type="xs:string">
91
					<xs:annotation>
92
						<xs:documentation>
93
						This field is valid only if resulttype is "dataset". It contains information about the size of the dataset.
94
						</xs:documentation>
95
					</xs:annotation>
96
				</xs:element>
97
				<xs:element name="format" type="xs:string">
98
					<xs:annotation>
99
						<xs:documentation>
100
						This field is valid only if resulttype is "dataset". It contains information about the format of the dataset.
101
						</xs:documentation>
102
					</xs:annotation>
103
				</xs:element>
104
				<xs:element name="version" type="xs:string">
105
					<xs:annotation>
106
						<xs:documentation>
107
						This field is valid only if resulttype is "dataset". It contains information about the version of the dataset.
108
						</xs:documentation>
109
					</xs:annotation>
110
				</xs:element>
111
				<xs:element name="lastmetadataupdate" type="xs:string">
112
				<xs:annotation>
113
						<xs:documentation>
114
						This field is valid only if resulttype is "dataset". It is the last update date of the metadata of the dataset.
115
						</xs:documentation>
116
					</xs:annotation>
117
				</xs:element>
118
				<xs:element name="metadataversionnumber" type="xs:string">
119
				<xs:annotation>
120
						<xs:documentation>
121
						This field is valid only if resulttype is "dataset". It contains information about the version of the metadata of the dataset.
122
						</xs:documentation>
123
					</xs:annotation>
124
				</xs:element>
125
				<xs:element name="originalId" type="xs:string" maxOccurs="unbounded" />
126
				<xs:element name="collectedfrom" type="namedIdElement"
127
					maxOccurs="unbounded">
128
					<xs:annotation>
129
						<xs:documentation>Identifier and name of the datasource from which
130
							this result has been collected from (e.g., "OpenDOAR").
131
						</xs:documentation>
132
					</xs:annotation>
133
				</xs:element>
134
				<xs:element name="pid" type="optionalClassedSchemedElement">
135
					<xs:annotation>
136
						<xs:documentation>
137
							Persistent identifier.
138
							<p>For allowed pid systems check:
139
								http://api.openaire.eu/vocabularies/dnet:pid_types
140
							</p>
141
						</xs:documentation>
142
					</xs:annotation>
143
				</xs:element>
144
				<xs:element name="bestlicense" type="classedSchemedElement">
145
					<xs:annotation>
146
						<xs:documentation>
147
							The best license available for this result among the
148
							available
149
							licenses of its children elements.
150
							<p>For allowed values check: http://api.openaire.eu/vocabularies/dnet:access_modes
151
							</p>
152
						</xs:documentation>
153
					</xs:annotation>
154
				</xs:element>
155
				<xs:element name="context" type="contextType">
156
					<xs:annotation>
157
						<xs:documentation>Contextual information for the publication or
158
							dataset. Examples are: research project and funding.
159
						</xs:documentation>
160
					</xs:annotation>
161
				</xs:element>
162
				<xs:element name="datainfo" type="datainfoType"/>
163
				<xs:element name="rels" type="relsType">
164
					<xs:annotation>
165
						<xs:documentation>Relationships to other entities.
166
						</xs:documentation>
167
					</xs:annotation>
168
				</xs:element>
169
				<xs:element name="children" type="resultChildrenType" />
170
				
171
			</xs:choice>
172
		</xs:complexType>
173
	</xs:element>
174

    
175
	<xs:complexType name="journalType">
176
		<xs:annotation>
177
			<xs:documentation>Journal where the publication has been published. Attributes refer to electronic, printed and linking (ISSN-L) ISSN.
178
			This field is applicable when resulttype is "publication". 
179
			</xs:documentation>
180
		</xs:annotation>
181
		<xs:simpleContent>
182
			<xs:extension base="xs:string">
183
				<xs:attribute name="eissn" use="optional"/>
184
				<xs:attribute name="issn" use="optional" />
185
				<xs:attribute name="lissn" use="optional" />
186
			</xs:extension>
187
		</xs:simpleContent>
188
	</xs:complexType>
189

    
190
	<xs:complexType name="contextType">
191
		<xs:annotation>
192
			<xs:documentation>Contextual information of the entity. Examples are:
193
				research project
194
				and funding.
195
			</xs:documentation>
196
		</xs:annotation>
197
		<xs:complexContent>
198
			<xs:extension base="labeledIdElement">
199
				<xs:sequence maxOccurs="unbounded">
200
					<xs:element name="category" type="categoryType" />
201
				</xs:sequence>
202
				<xs:attribute name="type" use="required" />
203
			</xs:extension>
204
		</xs:complexContent>
205
	</xs:complexType>
206

    
207
	<xs:complexType name="categoryType">
208
		<xs:complexContent>
209
			<xs:extension base="labeledIdElement">
210
				<xs:sequence minOccurs="0" maxOccurs="unbounded">
211
					<xs:element name="concept" type="conceptType" />
212
				</xs:sequence>
213
				<xs:attribute name="claim" type="xs:boolean" />
214
			</xs:extension>
215
		</xs:complexContent>
216
	</xs:complexType>
217

    
218
	<xs:complexType name="conceptType">
219
		<xs:complexContent>
220
			<xs:extension base="labeledIdElement">
221
				<xs:sequence maxOccurs="unbounded" minOccurs="0">
222
					<xs:element name="concept" type="conceptType" />
223
				</xs:sequence>
224
				<xs:attribute name="claim" type="xs:boolean" />
225
			</xs:extension>
226
		</xs:complexContent>
227
	</xs:complexType>
228

    
229
	<xs:complexType name="resultChildrenType">
230
		<xs:sequence>
231
		<!--<xs:choice> -->
232
			<xs:element name="result" type="childrenResult" minOccurs="0"
233
				maxOccurs="unbounded" />
234
			<xs:element name="instance" type="instanceType" minOccurs="0"
235
				maxOccurs="unbounded">
236
				<xs:annotation>
237
					<xs:documentation>Actual digital representation of the publication
238
						or dataset.
239
					</xs:documentation>
240
				</xs:annotation>
241
			</xs:element>
242
			<xs:element name="externalreference" type="externalreferenceType" minOccurs="0"
243
				maxOccurs="unbounded"/>
244
		<!--</xs:choice> -->
245
		</xs:sequence>
246
	</xs:complexType>
247

    
248
	<xs:complexType name="childrenResult">
249
		<xs:choice maxOccurs="unbounded">
250
			<xs:element name="title" type="classedSchemedElement"
251
				maxOccurs="unbounded">
252
				<xs:annotation>
253
					<xs:documentation>
254
						Title of this research result.
255
						<p>Different types of titles are allowed: see
256
							http://api.openaire.eu/vocabularies/dnet:dataCite_title
257
						</p>
258
					</xs:documentation>
259
				</xs:annotation>
260
			</xs:element>
261
			<xs:element name="dateofacceptance" type="xs:string" />
262
			<xs:element name="publisher" type="xs:string" />
263
			<xs:element name="resulttype" type="classedSchemedElement">
264
				<xs:annotation>
265
					<xs:documentation>
266
						Tells if this record is about a publication or a dataset.
267
						<p>For allowed values check:
268
							http://api.openaire.eu/vocabularies/dnet:result_typologies
269
						</p>
270
					</xs:documentation>
271
				</xs:annotation>
272
			</xs:element>
273
		</xs:choice>
274
		<xs:attribute name="objidentifier" use="required" />
275
	</xs:complexType>
276

    
277
	<xs:complexType name="instanceType">
278
		<xs:choice maxOccurs="unbounded">
279
			<xs:element name="licence" type="classedSchemedElement">
280
				<xs:annotation>
281
					<xs:documentation>
282
						License to access this actual manifestation of the publication or
283
						dataset.
284
						<p>For allowed values check: http://api.openaire.eu/vocabularies/dnet:access_modes
285
						</p>
286
						<p>When several instances are available for the same publication,
287
							the
288
							opener license is selected as the bestlicese field in element
289
							result.
290
						</p>
291
					</xs:documentation>
292
				</xs:annotation>
293
			</xs:element>
294
			<xs:element name="instancetype" type="classedSchemedElement">
295
				<xs:annotation>
296
					<xs:documentation>
297
						Type of the instance, for example: article, thesis, etc.
298
						<p>For allowed values check:
299
							http://api.openaire.eu/vocabularies/dnet:publication_resource
300
						</p>
301
					</xs:documentation>
302
				</xs:annotation>
303

    
304
			</xs:element>
305
			<xs:element name="hostedby" type="namedIdElement"
306
				maxOccurs="1">
307
				<xs:annotation>
308
					<xs:documentation>Organisation hosting this file.
309
					</xs:documentation>
310
				</xs:annotation>
311
			</xs:element>
312
			<xs:element name="webresource" type="webresourceType"
313
				minOccurs="1" maxOccurs="unbounded" />
314
		</xs:choice>
315
		<xs:attribute name="id" use="required" />
316
	</xs:complexType>
317

    
318
	<xs:complexType name="webresourceType">
319
		<xs:sequence>
320
			<xs:element name="url" type="xs:string" minOccurs="1" maxOccurs="1" />
321
		</xs:sequence>
322
	</xs:complexType>
323

    
324
</xs:schema>
(8-8/9)