Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
3
	xmlns="http://namespace.openaire.eu/oaf" targetNamespace="http://namespace.openaire.eu/oaf">
4

    
5
	<xs:annotation>
6
		<xs:documentation>This schema defines common types that can be re-used.</xs:documentation>
7
	</xs:annotation>
8

    
9
	<xs:simpleType name="emptyType">
10
		<xs:restriction base="xs:string">
11
			<xs:length value="0"/>
12
		</xs:restriction>
13
	</xs:simpleType>
14

    
15
	<xs:simpleType name="boolOrEmptyType">
16
		<xs:union memberTypes="emptyType xs:boolean"/>
17
	</xs:simpleType>
18

    
19
	<xs:simpleType name="stringOrEmptyType">
20
		<xs:union memberTypes="emptyType xs:string"/>
21
	</xs:simpleType>
22
	
23
	<xs:attributeGroup name="dataInfoAttributeGroup">
24
		<xs:attribute name="inferred" use="optional" type="xs:boolean">
25
			<xs:annotation>
26
				<xs:documentation>True if this information has been inferred by the automatic
27
					inference algorithms run by OpenAIRE. </xs:documentation>
28
			</xs:annotation>
29
		</xs:attribute>
30
		<xs:attribute name="trust" use="optional" type="xs:string">
31
			<xs:annotation>
32
				<xs:documentation>Value of trust of this information in the range [0,1]. More the
33
					value, more trustworthy is the information. </xs:documentation>
34
			</xs:annotation>
35
		</xs:attribute>
36
		<xs:attribute name="inferenceprovenance" use="optional" type="xs:string">
37
			<xs:annotation>
38
				<xs:documentation>Which algorithm inferred the current property. </xs:documentation>
39
			</xs:annotation>
40
		</xs:attribute>
41
		<xs:attributeGroup ref="qualifierAttributeGroup"></xs:attributeGroup>
42
	</xs:attributeGroup>
43
	
44
	<xs:attributeGroup name="qualifierAttributeGroup">
45
		<xs:attribute name="classid" use="required" type="xs:string"/>
46
		<xs:attribute name="classname" use="required" type="xs:string"/>
47
		<xs:attribute name="schemeid" use="required" type="xs:string"/>
48
		<xs:attribute name="schemename" use="required" type="xs:string"/>
49
	</xs:attributeGroup>
50
	
51
	<xs:complexType name="fieldType">
52
		<xs:simpleContent>
53
			<xs:extension base="xs:string">
54
				<xs:attributeGroup ref="dataInfoAttributeGroup"/>
55
			</xs:extension>
56
		</xs:simpleContent>
57
	</xs:complexType>
58
	
59
	<xs:complexType name="qualifierType">
60
		<xs:attributeGroup ref="qualifierAttributeGroup"/>
61
	</xs:complexType>
62
	
63
	<xs:complexType name="dataInfoType">
64
		<xs:attributeGroup ref="dataInfoAttributeGroup"/>
65
	</xs:complexType>
66
	
67
	<xs:complexType name="structuredPropertyElementType">
68
		<xs:simpleContent>
69
			<xs:extension base="xs:string">
70
				<xs:attributeGroup ref="qualifierAttributeGroup"/>
71
				<xs:attributeGroup ref="dataInfoAttributeGroup"/>
72
			</xs:extension>
73
		</xs:simpleContent>
74
	</xs:complexType>
75
	
76
	<xs:complexType name="labeledIdElementType">
77
		<xs:attribute name="id" use="required"/>
78
		<xs:attribute name="label" use="required"/>
79
	</xs:complexType>
80
	
81
	<!-- <oaf:context id="egi" label="EGI" type="community">
82
            <oaf:category id="egi::virtual" label="EGI virtual organizations">
83
                <oaf:concept id="egi::virtual::2" label="alice"/>
84
            </oaf:category>
85
        </oaf:context>
86
         <oaf:community id="{@id}" label="{@label}">
87
            <xsl:apply-templates/>
88
        </oaf:community>
89
	-->
90
	<xs:complexType name="contextType">
91
		<xs:complexContent>
92
			<xs:extension base="labeledIdElementType">
93
				<xs:sequence maxOccurs="unbounded">
94
					<xs:element name="category" type="categoryType"/>
95
				</xs:sequence>
96
				<xs:attributeGroup ref="dataInfoAttributeGroup"/>
97
			</xs:extension>
98
		</xs:complexContent>
99
	</xs:complexType>
100
	
101
	<xs:complexType name="categoryType">
102
		<xs:complexContent>
103
			<xs:extension base="labeledIdElementType">
104
				<xs:sequence minOccurs="0" maxOccurs="unbounded">
105
					<xs:element name="concept" type="conceptType"/>
106
				</xs:sequence>
107
			</xs:extension>
108
		</xs:complexContent>
109
	</xs:complexType>
110
	
111
	<xs:complexType name="conceptType">
112
		<xs:complexContent>
113
			<xs:extension base="labeledIdElementType">
114
				<xs:sequence maxOccurs="unbounded" minOccurs="0">
115
					<xs:element name="concept" type="conceptType"/>
116
				</xs:sequence>
117
			</xs:extension>
118
		</xs:complexContent>
119
	</xs:complexType>
120
	
121
	<xs:complexType name="namedIdElementType">
122
		<xs:attribute name="id" use="required"/>
123
		<xs:attribute name="name" use="required"/>
124
		<xs:attributeGroup ref="dataInfoAttributeGroup"/>
125
	</xs:complexType>
126

    
127
	<xs:complexType name="relsType">
128
		<xs:annotation>
129
			<xs:documentation>Relationships to other entities.</xs:documentation>
130
		</xs:annotation>
131
		<xs:choice maxOccurs="unbounded" minOccurs="0">
132
			<xs:element name="rel" type="relType" minOccurs="0"/>
133
		</xs:choice>
134
	</xs:complexType>
135

    
136
	<xs:complexType name="relType">
137
		<xs:sequence>
138
			<xs:choice maxOccurs="unbounded">
139
				<xs:element name="to" type="relToType"/>
140
				<xs:element name="title" type="xs:string"/>
141
				<xs:element name="websiteurl"/>
142
				<xs:choice>
143
					<xs:group ref="relDataSourceGroup"/>
144
					<xs:group ref="relResultGroup"/>
145
					<xs:group ref="relProjectGroup"/>
146
					<xs:group ref="relOrganizationGroup"/>
147
					<xs:group ref="fundingGroup"/>
148
				</xs:choice>
149
			</xs:choice>
150
		</xs:sequence>
151
		<xs:attributeGroup ref="dataInfoAttributeGroup"/>
152
	</xs:complexType>
153

    
154
	<xs:group name="relDataSourceGroup">
155
		<xs:sequence>
156
			<xs:choice minOccurs="0" maxOccurs="unbounded">
157
				<xs:element name="officialname" type="xs:string"/>
158
				<xs:element name="datasourcetype" type="qualifierType"/>
159
			</xs:choice>
160
		</xs:sequence>
161
	</xs:group>
162

    
163
	<xs:group name="relResultGroup">
164
		<xs:sequence>
165
			<xs:choice minOccurs="0" maxOccurs="unbounded">
166
				<xs:element name="collectedfrom" type="namedIdElementType"/>
167
				<xs:element name="url" type="xs:string"/>
168
				<xs:element name="pid" type="structuredPropertyElementType"/>
169
				<xs:element name="dateofacceptance" type="xs:string"/>
170
				<xs:element name="publisher" type="xs:string"/>
171
				<xs:element name="resulttype" type="xs:string">
172
					<xs:annotation>
173
						<xs:documentation> Tells if the related record is about a publication or a
174
							dataset. </xs:documentation>
175
					</xs:annotation>
176
				</xs:element>
177
				<!-- the following fields are available only for similarity relations -->
178
				<xs:element name="similarity" type="xs:double">
179
					<xs:annotation>
180
						<xs:documentation>The similarity degree expressed in the range (0,1]. This
181
							field is avaiable only when the to/@class is one of
182
							{hasAmongTopNSimilarDocuments,
183
							isAmongTopNSimilarDocuments}</xs:documentation>
184
					</xs:annotation>
185
				</xs:element>
186
				<xs:element name="type">
187
					<xs:annotation>
188
						<xs:documentation>The similarity degree expressed in the range (0,1]. This
189
							field is avaiable only when the to/@class is one of
190
							{hasAmongTopNSimilarDocuments,
191
							isAmongTopNSimilarDocuments}</xs:documentation>
192
					</xs:annotation>
193
					<xs:simpleType>
194
						<xs:restriction base="xs:string">
195
							<xs:enumeration value="STANDARD"/>
196
							<xs:enumeration value="WEBUSAGE"/>
197
						</xs:restriction>
198
					</xs:simpleType>
199
				</xs:element>
200
			</xs:choice>
201
		</xs:sequence>
202
	</xs:group>
203

    
204
	<xs:group name="relProjectGroup">
205
		<xs:sequence>
206
			<xs:choice minOccurs="0" maxOccurs="unbounded">
207
				<xs:element name="code" type="xs:string"/>
208
				<xs:element name="acronym" type="xs:string"/>
209
			</xs:choice>
210
		</xs:sequence>
211
	</xs:group>
212

    
213
	<xs:group name="fundingGroup">
214
		<xs:sequence>
215
			<xs:choice minOccurs="0" maxOccurs="unbounded">
216
				<xs:element name="contracttype" type="qualifierType"/>
217
				<xs:element name="funding" type="fundingFlatType"/>
218
			</xs:choice>
219
		</xs:sequence>
220
	</xs:group>
221

    
222
	<xs:group name="relOrganizationGroup">
223
		<xs:sequence>
224
			<xs:choice minOccurs="0" maxOccurs="unbounded">
225
				<xs:element name="legalname" type="xs:string"/>
226
				<xs:element name="legalshortname" type="xs:string"/>
227
				<xs:element name="country" type="xs:string"/>
228
			</xs:choice>
229
		</xs:sequence>
230
	</xs:group>
231

    
232

    
233
	<xs:complexType name="relToType">
234
		<xs:annotation>
235
			<xs:documentation>Information about the related entity. <p>The semantics of the
236
					relationships is expressed by the attributes class and scheme. </p>
237
			</xs:documentation>
238
		</xs:annotation>
239
		<xs:simpleContent>
240
			<xs:extension base="xs:string">
241
				<xs:attribute name="class" use="required" type="xs:string"/>
242
				<xs:attribute name="type" use="required" type="xs:string">
243
					<xs:annotation>
244
						<xs:documentation>The type of the related entity. <p>Allowed values are:
245
								project, organization, datasource, result, person.</p>
246
						</xs:documentation>
247
					</xs:annotation>
248
				</xs:attribute>
249
			</xs:extension>
250
		</xs:simpleContent>
251
	</xs:complexType>
252

    
253
	<xs:complexType name="fundingFlatType">
254
		<xs:sequence>
255
			<xs:element name="funder" type="funderFlatType" minOccurs="1" maxOccurs="1"/>
256
			<xs:element name="funding_level_0" type="namedFundingLevel" minOccurs="0"
257
				maxOccurs="unbounded"/>
258
			<xs:element name="funding_level_1" type="namedFundingLevel" minOccurs="0"
259
				maxOccurs="unbounded"/>
260
			<xs:element name="funding_level_2" type="namedFundingLevel" minOccurs="0"
261
				maxOccurs="unbounded"/>
262
		</xs:sequence>
263
	</xs:complexType>
264

    
265
	<xs:complexType name="funderFlatType">
266
		<xs:simpleContent>
267
			<xs:extension base="xs:string">
268
				<xs:attribute name="id" use="required" type="xs:string"/>
269
				<xs:attribute name="shortname" use="required" type="xs:string"/>
270
				<xs:attribute name="name" use="required" type="xs:string"/>
271
				<xs:attribute name="jurisdiction" use="optional" type="xs:string"/>
272
			</xs:extension>
273
		</xs:simpleContent>
274
	</xs:complexType>
275

    
276
	<xs:complexType name="namedFundingLevel">
277
		<xs:simpleContent>
278
			<xs:extension base="xs:string">
279
				<xs:attribute name="name" use="required" type="xs:string"/>
280
			</xs:extension>
281
		</xs:simpleContent>
282
	</xs:complexType>
283

    
284
	<xs:complexType name="externalreferenceType">
285
		<xs:sequence>
286
			<xs:element name="sitename" type="xs:string" minOccurs="0" maxOccurs="1"/>
287
			<!--<xs:element name="label" type="xs:string" minOccurs="0" maxOccurs="1"/>-->
288
			<xs:element name="url" type="xs:string" minOccurs="0" maxOccurs="1"/>
289
			<xs:element name="qualifier" type="qualifierType" minOccurs="0" maxOccurs="1"/>
290
			<xs:element name="refidentifier" type="xs:string" minOccurs="0" maxOccurs="1"/>
291
		</xs:sequence>
292
		<xs:attributeGroup ref="dataInfoAttributeGroup"/>
293
	</xs:complexType>
294

    
295

    
296
	<!-- REMOVE FROM HERE TO THE END -->
297

    
298
</xs:schema>
(4-4/8)