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 entity. For an overview of the model, please check the OpenAIRE Research Graph Data Model at https://doi.org/10.5281/zenodo.2643199</xs:documentation>
6
	</xs:annotation>
7

    
8
	<xs:include schemaLocation="oaf-common-1.0.xsd"/>
9

    
10
	<xs:element name="result">
11
		<xs:complexType>
12
			<xs:choice maxOccurs="unbounded">
13
				<xs:element name="creator">
14
					<xs:complexType>
15
						<xs:simpleContent>
16
							<xs:extension base="xs:string">
17
								<xs:attribute name="name" type="xs:string"/>
18
								<xs:attribute name="surname" type="xs:string"/>
19
								<xs:attribute name="ORCID" type="xs:string"/>
20
								<xs:attribute name="rank" type="xs:int"/>
21
							</xs:extension>
22
						</xs:simpleContent>
23
					</xs:complexType>
24
				</xs:element>
25
				<xs:element name="resulttype" type="qualifierType">
26
					<xs:annotation>
27
						<xs:documentation> Tells if this record is about a publication or a dataset.
28
							<p>For allowed values check:
29
								http://api.openaire.eu/vocabularies/dnet:result_typologies </p>
30
						</xs:documentation>
31
					</xs:annotation>
32
				</xs:element>
33
				<xs:element name="language" type="qualifierType"/>
34
				<xs:element name="country" type="dataInfoType"/>
35
				<xs:element name="subject" type="structuredPropertyElementType"/>
36
				<xs:element name="title" type="structuredPropertyElementType">
37
					<xs:annotation>
38
						<xs:documentation> Title of this research result. <p>Different types of
39
								titles are allowed: see http://api.openaire.eu/vocabularies/dnet:dataCite_title</p>
40
						</xs:documentation>
41
					</xs:annotation>
42
				</xs:element>
43
				<xs:element name="relevantdate" type="structuredPropertyElementType"/>
44
				<xs:element name="description" type="xs:string"/>	
45
				<xs:element name="dateofacceptance" type="xs:string"/>
46
				<xs:element name="publisher" type="xs:string"/>	
47
				<xs:element name="embargoenddate" type="xs:string"/>
48
				<xs:element name="source" type="xs:string">
49
					<xs:annotation>
50
						<xs:documentation>The semantics of this field is inherited from dc:source in
51
							Dublin Core. </xs:documentation>
52
					</xs:annotation>
53
				</xs:element>
54
				<xs:element name="format" type="xs:string"/>
55
				<xs:element name="contributor" type="xs:string"/>
56
				<xs:element name="resourcetype" type="qualifierType">
57
					<xs:annotation>
58
						<xs:documentation> This field is valid only if resulttype is "dataset". It
59
							expresses the nature of the dataset. <p>For allowed values check:
60
								http://api.openaire.eu/vocabularies/dnet:publication_resource </p>
61
						</xs:documentation>
62
					</xs:annotation>
63
				</xs:element>
64
				<xs:element name="coverage" type="xs:string"/>
65
				<xs:element name="bestaccessright" type="qualifierType">
66
					<xs:annotation>
67
						<xs:documentation> The best access right available for this result among the
68
							available licenses of its children elements. <p>For allowed values
69
								check: http://api.openaire.eu/vocabularies/dnet:access_modes </p>
70
						</xs:documentation>
71
					</xs:annotation>
72
				</xs:element>
73
				<xs:element name="journal" type="journalType"/>	
74
				<xs:element name="pid" type="structuredPropertyElementType">
75
					<xs:annotation>
76
						<xs:documentation> Persistent identifier. <p>For allowed pid systems check:
77
								http://api.openaire.eu/vocabularies/dnet:pid_types </p>
78
						</xs:documentation>
79
					</xs:annotation>
80
				</xs:element>
81
				<xs:element name="device" type="xs:string">
82
					<xs:annotation>
83
						<xs:documentation> This field is valid only if resulttype is "dataset". It
84
							contains information about the device used to generate the dataset.
85
						</xs:documentation>
86
					</xs:annotation>
87
				</xs:element>
88
				<xs:element name="size" type="xs:string">
89
					<xs:annotation>
90
						<xs:documentation> This field is valid only if resulttype is "dataset". It
91
							contains information about the size of the dataset. </xs:documentation>
92
					</xs:annotation>
93
				</xs:element>
94
				<xs:element name="version" type="xs:string">
95
					<xs:annotation>
96
						<xs:documentation> This field is valid only if resulttype is "dataset". It
97
							contains information about the version of the dataset.
98
						</xs:documentation>
99
					</xs:annotation>
100
				</xs:element>
101
				<xs:element name="lastmetadataupdate" type="xs:string">
102
					<xs:annotation>
103
						<xs:documentation> This field is valid only if resulttype is "dataset". It
104
							is the last update date of the metadata of the dataset.
105
						</xs:documentation>
106
					</xs:annotation>
107
				</xs:element>
108
				<xs:element name="metadataversionnumber" type="xs:string">
109
					<xs:annotation>
110
						<xs:documentation> This field is valid only if resulttype is "dataset". It
111
							contains information about the version of the metadata of the dataset.
112
						</xs:documentation>
113
					</xs:annotation>
114
				</xs:element>
115
				<xs:element name="originalId" type="xs:string" maxOccurs="unbounded"/>
116
				<xs:element name="collectedfrom" type="namedIdElementType" maxOccurs="unbounded">
117
					<xs:annotation>
118
						<xs:documentation>Identifier and name of the datasource from which this
119
							result has been collected from (e.g., "OpenDOAR"). </xs:documentation>
120
					</xs:annotation>
121
				</xs:element>
122
				<xs:element name="context" type="contextType">
123
					<xs:annotation>
124
						<xs:documentation>Research community, initiative, infrastructure or funding agency related to this result.</xs:documentation>
125
					</xs:annotation>
126
				</xs:element>
127
				<xs:element name="rels" type="relsType">
128
					<xs:annotation>
129
						<xs:documentation>Relationships to other entities. </xs:documentation>
130
					</xs:annotation>
131
				</xs:element>
132
				<xs:element name="instances" type="instancesType" minOccurs="1" maxOccurs="1"/>
133
				<xs:element name="citations" type="citationsType" maxOccurs="1" minOccurs="0"/>
134
			</xs:choice>
135
		</xs:complexType>
136
	</xs:element>
137

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

    
159
	<xs:complexType name="journalType">
160
		<xs:simpleContent>
161
			<xs:extension base="xs:string">
162
				<xs:attribute name="eissn" use="optional"/>
163
				<xs:attribute name="issn" use="optional"/>
164
				<xs:attribute name="lissn" use="optional"/>
165
				<xs:attribute name="ep" use="optional"/>
166
				<xs:attribute name="iss" use="optional"/>
167
				<xs:attribute name="sp" use="optional"/>
168
				<xs:attribute name="vol" use="optional"/>			
169
			</xs:extension>
170
		</xs:simpleContent>
171
	</xs:complexType>
172
	<xs:complexType name="instancesType">
173
		<xs:sequence>
174
			<xs:element name="instance" type="instanceType" minOccurs="1" maxOccurs="unbounded">
175
				<xs:annotation>
176
					<xs:documentation>Actual digital representation of the publication or dataset.
177
					</xs:documentation>
178
				</xs:annotation>
179
			</xs:element>
180
			<xs:element name="externalreference" type="externalreferenceType" minOccurs="0"
181
				maxOccurs="unbounded"/>
182
		</xs:sequence>
183
	</xs:complexType>
184

    
185
	<xs:complexType name="instanceType">
186
		<xs:choice maxOccurs="unbounded">
187
			<xs:element name="license" type="fieldType">
188
				<xs:annotation>
189
					<xs:documentation> License to access this actual manifestation of the
190
						result. Typically it is a URL. OpenAIRE does not yet attempt any harmonization and reflect the original values that are available in the collected metadata records. 
191
					</xs:documentation>
192
				</xs:annotation>
193
			</xs:element>
194
			<xs:element name="accessright" type="qualifierType"/>
195
			<xs:element name="instancetype" type="qualifierType">
196
				<xs:annotation>
197
					<xs:documentation> Type of the instance, for example: article, thesis, etc.
198
							<p>For allowed values check: http://api.openaire.eu/vocabularies/dnet:publication_resource
199
						</p>
200
					</xs:documentation>
201
				</xs:annotation>
202
			</xs:element>
203
			<xs:element name="collectedfrom" type="namedIdElementType" maxOccurs="1">
204
				<xs:annotation>
205
					<xs:documentation>Datasource from which OpenAIRE collected the description of this instance.</xs:documentation>
206
				</xs:annotation>
207
			</xs:element>
208
			<xs:element name="hostedby" type="namedIdElementType" maxOccurs="1">
209
				<xs:annotation>
210
					<xs:documentation>Datasource hosting this file. </xs:documentation>
211
				</xs:annotation>
212
			</xs:element>
213
			<xs:element name="webresource" type="webresourceType" minOccurs="1"
214
				maxOccurs="unbounded"/>
215
			<xs:element name="distributionlocation" type="xs:string" minOccurs="0"/>
216
			<xs:element name="dateofacceptance" type="xs:string" minOccurs="0"/>
217
			<xs:element name="processingchargeamount" type="fieldType">
218
				<xs:annotation>
219
					<xs:documentation> Article/Book Processing Charge </xs:documentation>
220
				</xs:annotation>
221
			</xs:element>
222
			<xs:element name="processingchargecurrency" type="fieldType">
223
				<xs:annotation>
224
					<xs:documentation>Currency for the value in processingchargeamount </xs:documentation>
225
				</xs:annotation>
226
			</xs:element>
227
			<xs:element name="refereed" type="fieldType">
228
				<xs:annotation>
229
					<xs:documentation>Peer-review status</xs:documentation>
230
				</xs:annotation>
231
			</xs:element>
232
		</xs:choice>
233
		<xs:attribute name="id" use="required"/>
234
	</xs:complexType>
235

    
236
	<xs:complexType name="webresourceType">
237
		<xs:sequence>
238
			<xs:element name="url" type="xs:string" minOccurs="1" maxOccurs="1"/>
239
		</xs:sequence>
240
	</xs:complexType>
241

    
242
</xs:schema>
(8-8/8)