forked from european-commission-empl/European-Learning-Model
-
Notifications
You must be signed in to change notification settings - Fork 1
/
edci_commonTypes.xsd
300 lines (300 loc) · 15.6 KB
/
edci_commonTypes.xsd
1
2
3
4
5
6
7
8
9
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<?xml version="1.0" encoding="UTF-8"?>
<!-- xsd version '0.4.0' based on edci model version '0.5.0' -->
<xs:schema xmlns="http://data.europa.eu/europass/model/credentials#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:eup="http://data.europa.eu/europass/model/credentials#" xmlns:cred="http://data.europa.eu/europass/model/credentials/w3c#" targetNamespace="http://data.europa.eu/europass/model/credentials#" elementFormDefault="qualified" version="0.4.0">
<xs:include schemaLocation="edci_simpleContentTypes.xsd"/>
<xs:complexType name="ScoringSchemeType">
<xs:annotation>
<xs:documentation>A scoring scheme. A numeric or text type of scoring methodology or convention. A grading system.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="title" type="LanguageStringType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="NoteType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A free text describing the scoring methodology or convention. Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="supplementaryDoc" type="DocumentType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A public web document containing additional documentation about the scoring/grading system. It can be any document containing further information about the scoring system. The document can be a web page that can be navigated or a downloadable file</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:normalizedString" use="required">
<xs:annotation>
<xs:documentation>A portable identifier of the grading system (i.e. a urn in the uuid namespace). It is this identifier that MUST be used to link or refer to this grading system from other places within the credential document.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="DocumentType">
<xs:annotation>
<xs:documentation>A public accessible web document.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="title" type="LanguageStringType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="language" type="LanguageCodeType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The language of the document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="subject" type="SubjectTypeCodeType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A subject or topic that is described in the document.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="uri" type="DocumentURLType" use="required">
<xs:annotation>
<xs:documentation>The URL of the web document. The URL to access or download the web document.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- removed in edci 0.5.0 -->
<!--xs:complexType name="PeriodOfTimeType">
<xs:annotation>
<xs:documentation>An interval of time that is named or defined by its start and end dates. A PeriodOfTime is any temporal entity with an extend or duration and is characterised by/defined by a certain start and enddate. In some cases we can model a start and a enddate on a class conceptually as an association to a PeriodOfTime because different things, that can represent a Periof of Time, exist. There are different ways to express and represent a period of time. e.g. an academic term can represent a period of time. A period of time might have an id, a name, start and end date</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="identifier" type="IdentifierType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="startedAtTime" type="xs:dateTime" minOccurs="0"/>
<xs:element name="endedAtTime" type="xs:dateTime" minOccurs="0"/>
<xs:element name="name" type="LanguageStringType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the period (or interval) of time. Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="NoteType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A free tex describing the period of time. Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType-->
<xs:complexType name="LocationType">
<xs:annotation>
<xs:documentation>An identifiable geographic place. A physical location.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="identifier" type="IdentifierType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="name" type="LanguageStringType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A proper noun applied to a spatial object. The place name. A simple (string) label or name for a location. Only one value per language allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="NoteType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A free text describing the location. Only one value per language allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="hasAddress" type="AddressType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>An address associated with the location.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="spatialCode" type="LocationCodeType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A code (i.e. location or region) identifying a spatial scope in which this physical location is located</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SpatialCodeLocationType">
<xs:annotation>
<xs:documentation>An identifiable geographic place. A physical location. Spatial code is mandatory.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="LocationType">
<xs:sequence>
<xs:element name="identifier" type="IdentifierType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="name" type="LanguageStringType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A proper noun applied to a spatial object. The place name. A simple (string) label or name for a location. Only one value per language allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="NoteType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A free text describing the location. Only one value per language allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="hasAddress" type="AddressType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>An address associated with the location.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="spatialCode" type="LocationCodeType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A code (i.e. location or region) identifying a spatial scope in which this physical location is located</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AddressType">
<xs:annotation>
<xs:documentation>An adress. Properties specifying an entity’s physical location.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="identifier" type="IdentifierType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>An adress identifier.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="fullAddress" type="NoteType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The complete address with or without formatting. Use of this property is recommended as it will not suffer any misunderstandings that might arise through the breaking up of an address into its component parts. Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="country" type="CountryCodeType" minOccurs="0">
<xs:annotation>
<xs:documentation>The address country Code. The uppermost administrative unit for the address.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PhoneType">
<xs:annotation>
<xs:documentation>A phone number.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="phoneNumber" type="xs:normalizedString" minOccurs="0">
<xs:annotation>
<xs:documentation>The full phone number as a string.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="countryDialing" type="xs:token" minOccurs="0">
<xs:annotation>
<xs:documentation>The country dialling code for a contact number. (e.g. “0032”, “0034”, etc.)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="areaDialing" type="xs:token" minOccurs="0">
<xs:annotation>
<xs:documentation>The area dialling code for a contact number.(e.g. “2”, “71, “93”, etc.)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dialNumber" type="xs:token" minOccurs="0">
<xs:annotation>
<xs:documentation>The contact number, not including country dialling or area dialling codes. (e.g. “3445654”, “1234567”, etc.)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="MBoxType">
<xs:annotation>
<xs:documentation>A mailbox (ie. an Internet mailbox)</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute name="uri" type="MailToUriType" use="required">
<xs:annotation>
<xs:documentation>The email address. A uri that specifies the e-mail adress using the 'mailto'-URI scheme. The 'mailto'-URI scheme is used to identify resources that are reached using Internet mail. In its simplest form, a 'mailto' URI contains an Internet mail address. (see https://tools.ietf.org/html/rfc6068)</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="InteractiveWebResourceType">
<xs:annotation>
<xs:documentation>A web resource that can be used to communicate. A web resource requiring interaction from the user to be understood, executed, or experienced. (e.g. forms on a web page, a chat service,…</xs:documentation>
</xs:annotation>
<xs:sequence/>
<xs:attribute name="uri" type="xs:anyURI" use="required">
<xs:annotation>
<xs:documentation>The URL to access the interactive web resource.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="MediaObjectType">
<xs:annotation>
<xs:documentation>A media object, such as a pdf, image, video, or audio object embedded in another resource or published on the web.</xs:documentation>
</xs:annotation>
<xs:sequence>
<!--xs:element name="title" type="LanguageStringType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The title of the media object. Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="NoteType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The description of the media object. Maximum one value per language is allowed.</xs:documentation>
</xs:annotation>
</xs:element-->
<xs:element name="contentType" type="MediaTypeType">
<xs:annotation>
<xs:documentation>The media-type, the format, of the media resource (e.g. application/pdf, image/png, image/jpeg, image/gif).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentEncoding" type="ContentEncodingType">
<xs:annotation>
<xs:documentation>The encoding used to encode the binary data contents of the media resource. MUST be Base64.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentSize" type="xs:integer" minOccurs="0">
<xs:annotation>
<xs:documentation>The Content-Length indicates the size of the content, in bytes</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentUrl" type="xs:anyURI" minOccurs="0"/>
<xs:element name="content" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>The binary data encoded using Base64. The actual (encoded) binary data in the media type specified by the mediatype property. The actual bytes of the media resource (e.g the image file).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="IdType" use="optional">
<xs:annotation>
<xs:documentation>A portable identifier of the media object. It is this identifier that MUST be used to link or refer to this media object from other places within the credential document.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="ImageObjectType">
<xs:annotation>
<xs:documentation>A static visual representation. An image file as a media object embedded in another resource or published on the web.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="MediaObjectType">
<xs:sequence>
<xs:element name="contentType" type="ImageMediaTypeType">
<xs:annotation>
<xs:documentation>The media-type, the format, of the image resource (image/png, image/jpeg, image/gif).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentEncoding" type="ContentEncodingType">
<xs:annotation>
<xs:documentation>The encoding used to encode the binary data contents of the image type resource. MUST be Base64.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentSize" type="xs:integer" minOccurs="0">
<xs:annotation>
<xs:documentation>The Content-Length indicates the size of the content, in bytes</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentUrl" type="xs:anyURI" minOccurs="0"/>
<xs:element name="content" type="xs:base64Binary">
<xs:annotation>
<xs:documentation>The binary data encoded using Base64.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AttachmentListType">
<xs:annotation>
<xs:documentation xml:lang="en">
List any digital document (PDF, JPEG or PNG format) that an issuer has attached to the Europass document to support/evidence of personal data, learning achievements, work experiences, skills, competences, diplomas, etc.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Attachment" type="MediaObjectType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>The attached document. Any digital document (PDF, JPEG or PNG format) that an issuer has attached to the Europass document to support/evidence of personal data, learning achievements, workexperiences, skills, competences, diplomas, etc.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>