Debian Codegraph @

gavo/resources/schemata/StandardsRegExt.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema targetNamespace="http://www.ivoa.net/xml/StandardsRegExt/v1.0"
3 xmlns:xs="http://www.w3.org/2001/XMLSchema"
4 xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
5 xmlns:vstd="http://www.ivoa.net/xml/StandardsRegExt/v1.0"
6 xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1"
7 elementFormDefault="unqualified" attributeFormDefault="unqualified"
8 version="1.0pr3" >
9
10 <xs:annotation>
11 <xs:appinfo>
12 <vm:schemaName>StandardsRegExt</vm:schemaName>
13 <vm:schemaPrefix>xs</vm:schemaPrefix>
14 <vm:targetPrefix>vstd</vm:targetPrefix>
15 </xs:appinfo>
16 <xs:documentation>
17 This is a core schema for describing IVOA Standards themselves.
18 See complete specification at
19 http://www.ivoa.net/Documents/latest/StandardsRegExt.html.
20 </xs:documentation>
21 </xs:annotation>
22
23 <xs:import namespace="http://www.ivoa.net/xml/VOResource/v1.0"
24 schemaLocation="http://vo.ari.uni-heidelberg.de/docs/schemata/VOResource.xsd"/>
25
26 <xs:complexType name="Standard">
27 <xs:annotation>
28 <xs:documentation>
29 a description of a standard specification.
30 </xs:documentation>
31 <xs:documentation>
32 This typically refers to an IVOA standard but is not
33 limited to such.
34 </xs:documentation>
35 </xs:annotation>
36
37 <xs:complexContent>
38 <xs:extension base="vr:Resource">
39 <xs:sequence>
40
41 <xs:element name="endorsedVersion" type="vstd:EndorsedVersion"
42 maxOccurs="unbounded">
43 <xs:annotation>
44 <xs:documentation>
45 the version of the standard that is recommended for use.
46 </xs:documentation>
47 <xs:documentation>
48 More than one version can be listed, indicating
49 that any of these versions are recognized as
50 acceptable for use.
51 </xs:documentation>
52 </xs:annotation>
53 </xs:element>
54
55 <xs:element name="schema" type="vstd:Schema"
56 minOccurs="0" maxOccurs="unbounded">
57 <xs:annotation>
58 <xs:documentation>
59 a description and pointer to a schema document
60 defined by this standard.
61 </xs:documentation>
62 <xs:documentation>
63 This is most typically an XML Schema, but it need
64 not be strictly.
65 </xs:documentation>
66 </xs:annotation>
67 </xs:element>
68
69 <xs:element name="deprecated" type="xs:token" minOccurs="0">
70 <xs:annotation>
71 <xs:documentation>
72 when present, this element indicates that all
73 versions of the standard are considered
74 deprecated by the publisher. The value is a
75 human-readable explanation for the designation.
76 </xs:documentation>
77 <xs:documentation>
78 The explanation should indicate if another
79 standard should be preferred.
80 </xs:documentation>
81 </xs:annotation>
82 </xs:element>
83
84 <xs:element name="key" type="vstd:StandardKey"
85 minOccurs="0" maxOccurs="unbounded">
86 <xs:annotation>
87 <xs:documentation>
88 a defined key associated with this standard.
89 </xs:documentation>
90 </xs:annotation>
91 </xs:element>
92
93 </xs:sequence>
94 </xs:extension>
95 </xs:complexContent>
96 </xs:complexType>
97
98 <xs:complexType name="EndorsedVersion">
99 <xs:simpleContent>
100 <xs:extension base="xs:string">
101 <xs:attribute name="status" default="n/a">
102 <xs:annotation>
103 <xs:documentation>
104 the IVOA status level of this version of the standard.
105 </xs:documentation>
106 <xs:documentation>
107 For values of "rec", "pr", "wd", and "note", the
108 record's referenceURL element should point to the
109 official specification document in the IVOA Document
110 Repository; if the document does not appear there,
111 these values should not be used.
112 </xs:documentation>
113 </xs:annotation>
114
115 <xs:simpleType>
116 <xs:restriction base="xs:string">
117 <xs:enumeration value="rec">
118 <xs:annotation>
119 <xs:documentation>
120 an IVOA Recommendation
121 </xs:documentation>
122 </xs:annotation>
123 </xs:enumeration>
124 <xs:enumeration value="pr">
125 <xs:annotation>
126 <xs:documentation>
127 an IVOA Proposed Recommendation
128 </xs:documentation>
129 </xs:annotation>
130 </xs:enumeration>
131 <xs:enumeration value="wd">
132 <xs:annotation>
133 <xs:documentation>
134 an IVOA Working Draft
135 </xs:documentation>
136 </xs:annotation>
137 </xs:enumeration>
138 <xs:enumeration value="iwd">
139 <xs:annotation>
140 <xs:documentation>
141 an internal Working Draft of an IVOA Working Group
142 </xs:documentation>
143 </xs:annotation>
144 </xs:enumeration>
145 <xs:enumeration value="note">
146 <xs:annotation>
147 <xs:documentation>
148 a published IVOA Note
149 </xs:documentation>
150 </xs:annotation>
151 </xs:enumeration>
152 <xs:enumeration value="n/a">
153 <xs:annotation>
154 <xs:documentation>
155 not an IVOA standard or protostandard at
156 this time.
157 </xs:documentation>
158 </xs:annotation>
159 </xs:enumeration>
160 </xs:restriction>
161 </xs:simpleType>
162 </xs:attribute>
163
164 <xs:attribute name="use">
165 <xs:annotation>
166 <xs:documentation>
167 A designation of preference for the version compared
168 to other versions in use.
169 </xs:documentation>
170 </xs:annotation>
171
172 <xs:simpleType>
173 <xs:restriction base="xs:string">
174 <xs:enumeration value="preferred">
175 <xs:annotation>
176 <xs:documentation>
177 the most preferred version.
178 </xs:documentation>
179 <xs:documentation>
180 Only one version should have this designation.
181 </xs:documentation>
182 </xs:annotation>
183 </xs:enumeration>
184 <xs:enumeration value="deprecated">
185 <xs:annotation>
186 <xs:documentation>
187 a version whose use is now discouraged
188 because a newer version is preferred.
189 </xs:documentation>
190 </xs:annotation>
191 </xs:enumeration>
192 </xs:restriction>
193 </xs:simpleType>
194 </xs:attribute>
195
196 </xs:extension>
197 </xs:simpleContent>
198 </xs:complexType>
199
200 <xs:complexType name="Schema">
201 <xs:annotation>
202 <xs:documentation>
203 a description of a schema definition
204 </xs:documentation>
205 </xs:annotation>
206
207 <xs:sequence>
208 <xs:element name="location" type="xs:anyURI"
209 minOccurs="1" maxOccurs="1">
210 <xs:annotation>
211 <xs:documentation>
212 A URL pointing to a document that formally defines
213 the schema.
214 </xs:documentation>
215 <xs:documentation>
216 The document should be in a machine-parsable format
217 when applicable. For example, when referring to an
218 XML schema, the document should be an XML Schema or
219 similar document that can be used to validate an
220 instance document.
221 </xs:documentation>
222 </xs:annotation>
223 </xs:element>
224 <xs:element name="description" type="xs:token"
225 minOccurs="0" maxOccurs="1" >
226 <xs:annotation>
227 <xs:documentation>
228 A human-readable description of what the schema
229 defines or is used for.
230 </xs:documentation>
231 <xs:documentation>
232 A brief description--e.g. one statement--is
233 recommended for display purposes.
234 </xs:documentation>
235 </xs:annotation>
236 </xs:element>
237 <xs:element name="example" type="xs:anyURI"
238 minOccurs="0" maxOccurs="unbounded">
239 <xs:annotation>
240 <xs:documentation>
241 A URL pointing to a sample document that illustrates
242 the use of the schema.
243 </xs:documentation>
244 <xs:documentation>
245 When applicable (e.g. XML), the document should be
246 in the format defined by the schema document.
247 </xs:documentation>
248 </xs:annotation>
249 </xs:element>
250 </xs:sequence>
251
252 <xs:attribute name="namespace" type="xs:token" use="required">
253 <xs:annotation>
254 <xs:documentation>
255 an identifier for the schema being described. Each instance
256 of this attribute must be unique within the resourse description.
257 </xs:documentation>
258 <xs:documentation>
259 For XML schemas, this should be the schema's namespace URI.
260 Otherwise, it should be a unique label to distinguish it from
261 other schemas described in the same resource description.
262 </xs:documentation>
263 </xs:annotation>
264 </xs:attribute>
265 </xs:complexType>
266
267 <xs:complexType name="ServiceStandard">
268 <xs:annotation>
269 <xs:documentation>
270 a description of a standard service protocol.
271 </xs:documentation>
272 <xs:documentation>
273 This typically refers to an IVOA standard but is not
274 limited to such.
275 </xs:documentation>
276 </xs:annotation>
277
278 <xs:complexContent>
279 <xs:extension base="vstd:Standard">
280 <xs:sequence>
281 <xs:element name="interface" type="vr:Interface"
282 minOccurs="0" maxOccurs="unbounded">
283 <xs:annotation>
284 <xs:documentation>
285 an abstract description of one of the interfaces defined
286 by this service standard.
287 </xs:documentation>
288 <xs:documentation>
289 This element can provide details about the interface
290 that apply to all implementations. Each interface
291 element should specify a role with a value starting
292 with "std:" or, if there is only one standard interface,
293 is equal to "std".
294 </xs:documentation>
295 <xs:documentation>
296 Applications that, for example, wish to build a GUI
297 to the service on-the-fly would first access this generic
298 description. Site-specific variations, such
299 as supported optional arguments or site specific
300 arguments, would be given in the actual implemented
301 service description and overrides any common information
302 found in this generic description. This generic interface
303 description can be matched with the site-specific one
304 using the role attribute.
305 </xs:documentation>
306 <xs:documentation>
307 Even though the Interface type requires an
308 accessURL child element, this element is
309 intended to describe a service in the
310 abstract--i.e. without reference to a particular
311 installation of the service. Consequently,
312 the accessURL may contain a bogus URL;
313 applications should not expect it to be resolvable.
314 </xs:documentation>
315 </xs:annotation>
316 </xs:element>
317 </xs:sequence>
318 </xs:extension>
319 </xs:complexContent>
320 </xs:complexType>
321
322 <xs:complexType name="StandardKeyEnumeration">
323 <xs:annotation>
324 <xs:documentation>
325 A registered set of related keys. Each key can be
326 uniquely identified by combining the IVOA identifier of
327 this resource with the key name separated by the URI
328 fragment delimiter, #, as in: ivoa-identifier#key-name
329 </xs:documentation>
330 </xs:annotation>
331 <xs:complexContent>
332 <xs:extension base="vr:Resource">
333 <xs:sequence>
334 <xs:element name="key" type="vstd:StandardKey"
335 maxOccurs="unbounded" minOccurs="1">
336 <xs:annotation>
337 <xs:documentation>
338 the name and definition of a key--a named concept,
339 feature, or property.
340 </xs:documentation>
341 </xs:annotation>
342 </xs:element>
343 </xs:sequence>
344 </xs:extension>
345 </xs:complexContent>
346 </xs:complexType>
347
348 <xs:complexType name="StandardKey">
349 <xs:annotation>
350 <xs:documentation>
351 The name and definition of a key--a named concept,
352 feature, or property.
353 </xs:documentation>
354 <xs:documentation>
355 This key can be identified via an IVOA identifier
356 of the form ivo://authority/resource#name where name is
357 the value of the child name element.
358 </xs:documentation>
359 <xs:documentation>
360 This type can be extended if the key has
361 other metadata associated with it.
362 </xs:documentation>
363 </xs:annotation>
364
365 <xs:sequence>
366 <xs:element name="name" type="vstd:fragment">
367 <xs:annotation>
368 <xs:documentation>
369 The property identifier which would appear as the
370 fragment (string after the pound sign, #) in an IVOA
371 identifier.
372 </xs:documentation>
373 </xs:annotation>
374 </xs:element>
375 <xs:element name="description" type="xs:token">
376 <xs:annotation>
377 <xs:documentation>
378 A human-readable definition of this property.
379 </xs:documentation>
380 </xs:annotation>
381 </xs:element>
382 </xs:sequence>
383 </xs:complexType>
384
385 <xs:simpleType name="StandardKeyURI">
386 <xs:annotation>
387 <xs:documentation>
388 reference that forces an IVOA ID with a # fragment part
389 appended to match the standard pattern for registering
390 enumeration values with a vstd:StandardKeyList
391 </xs:documentation>
392 </xs:annotation>
393 <xs:restriction base="xs:anyURI">
394 <xs:pattern value="ivo://[\w\d][\w\d\-_\.!~\*'\(\)\+=]{2,}(/[\w\d\-_\.!~\*'\(\)\+=]+(/[\w\d\-_\.!~\*'\(\)\+=]+)*)?(#([A-Za-z0-9;/\?:@&amp;=\+$,\-_\.!~\*'\(\)]|%[A-Fa-f0-9]{2})+)?"/>
395 </xs:restriction>
396 </xs:simpleType>
397
398 <xs:simpleType name="fragment">
399 <xs:annotation>
400 <xs:documentation>
401 the allowed characters for a fragment identifier taken
402 from rfc2396
403 </xs:documentation>
404 </xs:annotation>
405 <xs:restriction base="xs:string">
406 <xs:pattern
407 value="([A-Za-z0-9;/\?:@&amp;=\+$,\-_\.!~\*'\(\)]|%[A-Fa-f0-9]{2})+"/>
408 </xs:restriction>
409 </xs:simpleType>
410 </xs:schema>