Project

General

Profile

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

    
4
	<xs:annotation>
5
		<xs:documentation>This schema describes elements and properties of the OpenAIRE Result
6
			entity:
7
			https://issue.openaire.research-infrastructures.eu/projects/openaire2020-wiki/wiki/Core_entity_result
8
			that includes Publication and Dataset entities. </xs:documentation>
9
	</xs:annotation>
10

    
11
	<xs:include schemaLocation="oaf-common-1.0.xsd"/>
12

    
13
	<xs:element name="result">
14
		<xs:complexType>
15
			<xs:choice maxOccurs="unbounded">
16
				<xs:element name="title" type="xs:string">
17
					<xs:annotation>
18
						<xs:documentation> Title of this research result. <p>Different types of
19
								titles are allowed: see http://api.openaire.eu/vocabularies/dnet:dataCite_title</p>
20
						</xs:documentation>
21
					</xs:annotation>
22
				</xs:element>
23
				<xs:element name="dateofacceptance" type="xs:string"/>
24
				<xs:element name="publisher" type="xs:string"/>
25
				<xs:element name="description" type="xs:string"/>
26
				<xs:element name="pid" type="typedElementType">
27
					<xs:annotation>
28
						<xs:documentation> Persistent identifier. <p>For allowed pid systems check:
29
								http://api.openaire.eu/vocabularies/dnet:pid_types </p>
30
						</xs:documentation>
31
					</xs:annotation>
32
				</xs:element>
33
				<xs:element name="language" type="controlledElementType">
34
					<xs:annotation>
35
						<xs:documentation> Language in ISO 639-2.</xs:documentation>
36
					</xs:annotation>
37
				</xs:element>
38
				<xs:element name="relevantdate" type="xs:string"/>
39
				<xs:element name="subject" type="typedElementType"/>
40
				<xs:element name="resulttype" type="xs:string">
41
					<xs:annotation>
42
						<xs:documentation> Tells if this record is about a publication or a dataset.
43
								<p>For allowed values check:
44
								http://api.openaire.eu/vocabularies/dnet:result_typologies </p>
45
						</xs:documentation>
46
					</xs:annotation>
47
				</xs:element>
48

    
49
				<xs:element name="journal" type="journalType"/>
50

    
51
				<xs:element name="source" type="xs:string">
52
					<xs:annotation>
53
						<xs:documentation>The semantics of this field is inherited from dc:source in
54
							Dublin Core. </xs:documentation>
55
					</xs:annotation>
56
				</xs:element>
57
				<xs:element name="country" type="controlledElementType"/>
58

    
59
				<xs:element name="embargoenddate" type="xs:string"/>
60
				<xs:element name="resourcetype" type="xs:string">
61
					<xs:annotation>
62
						<xs:documentation> This field is valid only if resulttype is "dataset". It
63
							expresses the nature of the dataset. <p>For allowed values check:
64
								http://api.openaire.eu/vocabularies/dnet:publication_resource </p>
65
						</xs:documentation>
66
					</xs:annotation>
67
				</xs:element>
68
				<xs:element name="device" type="xs:string">
69
					<xs:annotation>
70
						<xs:documentation> This field is valid only if resulttype is "dataset". It
71
							contains information about the device used to generate the dataset.
72
						</xs:documentation>
73
					</xs:annotation>
74
				</xs:element>
75
				<xs:element name="size" type="xs:string">
76
					<xs:annotation>
77
						<xs:documentation> This field is valid only if resulttype is "dataset". It
78
							contains information about the size of the dataset. </xs:documentation>
79
					</xs:annotation>
80
				</xs:element>
81
				<xs:element name="format" type="xs:string">
82
					<xs:annotation>
83
						<xs:documentation> This field is valid only if resulttype is "dataset". It
84
							contains information about the format of the dataset.
85
						</xs:documentation>
86
					</xs:annotation>
87
				</xs:element>
88
				<xs:element name="version" type="xs:string">
89
					<xs:annotation>
90
						<xs:documentation> This field is valid only if resulttype is "dataset". It
91
							contains information about the version of the dataset.
92
						</xs:documentation>
93
					</xs:annotation>
94
				</xs:element>
95
				<xs:element name="lastmetadataupdate" type="xs:string">
96
					<xs:annotation>
97
						<xs:documentation> This field is valid only if resulttype is "dataset". It
98
							is the last update date of the metadata of the dataset.
99
						</xs:documentation>
100
					</xs:annotation>
101
				</xs:element>
102
				<xs:element name="metadataversionnumber" type="xs:string">
103
					<xs:annotation>
104
						<xs:documentation> This field is valid only if resulttype is "dataset". It
105
							contains information about the version of the metadata of the dataset.
106
						</xs:documentation>
107
					</xs:annotation>
108
				</xs:element>
109
				<xs:element name="originalId" type="xs:string" maxOccurs="unbounded"/>
110
				<xs:element name="collectedfrom" type="namedIdElementType" maxOccurs="unbounded">
111
					<xs:annotation>
112
						<xs:documentation>Identifier and name of the datasource from which this
113
							result has been collected from (e.g., "OpenDOAR"). </xs:documentation>
114
					</xs:annotation>
115
				</xs:element>
116
				<xs:element name="bestlicense" type="controlledElementType">
117
					<xs:annotation>
118
						<xs:documentation> The best license available for this result among the
119
							available licenses of its children elements. <p>For allowed values
120
								check: http://api.openaire.eu/vocabularies/dnet:access_modes </p>
121
						</xs:documentation>
122
					</xs:annotation>
123
				</xs:element>
124
				<xs:element name="community" type="communityType">
125
					<xs:annotation>
126
						<xs:documentation>Research community related to this entity.</xs:documentation>
127
					</xs:annotation>
128
				</xs:element>
129
				<!--<xs:element name="datainfo" type="datainfoType"/> -->
130
				<xs:element name="rels" type="relsType">
131
					<xs:annotation>
132
						<xs:documentation>Relationships to other entities. </xs:documentation>
133
					</xs:annotation>
134
				</xs:element>
135
				<xs:element name="instances" type="instancesType" minOccurs="1" maxOccurs="1"/>
136

    
137
				<xs:element name="citations" type="citationsType" maxOccurs="1" minOccurs="0"/>
138
			</xs:choice>
139
		</xs:complexType>
140
	</xs:element>
141

    
142
	<xs:complexType name="citationsType">
143
		<xs:sequence>
144
			<xs:element name="citation" maxOccurs="unbounded" minOccurs="0">
145
				<xs:complexType>
146
					<xs:sequence>
147
						<xs:element name="rawText"/>
148
						<xs:element name="id" minOccurs="0" maxOccurs="unbounded">
149
							<xs:complexType>
150
								<xs:attribute name="value"/>
151
								<xs:attribute name="type"/>
152
								<xs:attribute name="confidenceLevel"/>
153
							</xs:complexType>
154
						</xs:element>
155
					</xs:sequence>
156
				</xs:complexType>
157
			</xs:element>
158
		</xs:sequence>
159
		<xs:attribute name="provenance" type="xs:string"/>
160
		<xs:attribute name="trust" type="xs:string"/>
161
	</xs:complexType>
162

    
163
	<xs:complexType name="journalType">
164
		<xs:annotation>
165
			<xs:documentation>Journal where the publication has been published. Attributes refer to
166
				electronic, printed and linking (ISSN-L) ISSN. This field is applicable when
167
				resulttype is "publication". </xs:documentation>
168
		</xs:annotation>
169
		<xs:simpleContent>
170
			<xs:extension base="xs:string">
171
				<xs:attribute name="eissn" use="optional"/>
172
				<xs:attribute name="issn" use="optional"/>
173
				<xs:attribute name="lissn" use="optional"/>
174
			</xs:extension>
175
		</xs:simpleContent>
176
	</xs:complexType>
177

    
178
	<!-- <oaf:context id="egi" label="EGI" type="community">
179
            <oaf:category id="egi::virtual" label="EGI virtual organizations">
180
                <oaf:concept id="egi::virtual::2" label="alice"/>
181
            </oaf:category>
182
        </oaf:context>
183
         <oaf:community id="{@id}" label="{@label}">
184
            <xsl:apply-templates/>
185
        </oaf:community>
186
	-->
187
	<xs:complexType name="communityType">
188
		<xs:complexContent>
189
			<xs:extension base="labeledIdElementType">
190
				<xs:sequence maxOccurs="unbounded">
191
					<xs:element name="category" type="categoryType"/>
192
				</xs:sequence>
193
			</xs:extension>
194
		</xs:complexContent>
195
	</xs:complexType>
196

    
197
	<xs:complexType name="categoryType">
198
		<xs:complexContent>
199
			<xs:extension base="labeledIdElementType">
200
				<xs:sequence minOccurs="0" maxOccurs="unbounded">
201
					<xs:element name="concept" type="conceptType"/>
202
				</xs:sequence>
203
			</xs:extension>
204
		</xs:complexContent>
205
	</xs:complexType>
206

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

    
217
	<xs:complexType name="instancesType">
218
		<xs:sequence>
219
			<xs:element name="instance" type="instanceType" minOccurs="1" maxOccurs="unbounded">
220
				<xs:annotation>
221
					<xs:documentation>Actual digital representation of the publication or dataset.
222
					</xs:documentation>
223
				</xs:annotation>
224
			</xs:element>
225
			<xs:element name="externalreference" type="externalreferenceType" minOccurs="0"
226
				maxOccurs="unbounded"/>
227
		</xs:sequence>
228
	</xs:complexType>
229

    
230
	<xs:complexType name="instanceType">
231
		<xs:choice maxOccurs="unbounded">
232
			<xs:element name="licence" type="controlledElementType">
233
				<xs:annotation>
234
					<xs:documentation> License to access this actual manifestation of the
235
						publication or dataset. <p>For allowed values check:
236
							http://api.openaire.eu/vocabularies/dnet:access_modes </p>
237
						<p>When several instances are available for the same publication, the opener
238
							license is selected as the bestlicese field in element result. </p>
239
					</xs:documentation>
240
				</xs:annotation>
241
			</xs:element>
242
			<xs:element name="instancetype" type="xs:string">
243
				<xs:annotation>
244
					<xs:documentation> Type of the instance, for example: article, thesis, etc.
245
							<p>For allowed values check: http://api.openaire.eu/vocabularies/dnet:publication_resource
246
						</p>
247
					</xs:documentation>
248
				</xs:annotation>
249
			</xs:element>
250
			<xs:element name="hostedby" type="namedIdElementType" maxOccurs="1">
251
				<xs:annotation>
252
					<xs:documentation>Datasource hosting this file. </xs:documentation>
253
				</xs:annotation>
254
			</xs:element>
255
			<xs:element name="webresource" type="webresourceType" minOccurs="1"
256
				maxOccurs="unbounded"/>
257
		</xs:choice>
258
		<xs:attribute name="id" use="required"/>
259
	</xs:complexType>
260

    
261
	<xs:complexType name="webresourceType">
262
		<xs:sequence>
263
			<xs:element name="url" type="xs:string" minOccurs="1" maxOccurs="1"/>
264
		</xs:sequence>
265
	</xs:complexType>
266

    
267
</xs:schema>
(9-9/9)