Debian Codegraph @

gavo/resources/schemata/TAPRegExt.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema
3 xmlns:xs="http://www.w3.org/2001/XMLSchema"
4 xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
5 xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1"
6 xmlns:tr="http://www.ivoa.net/xml/TAPRegExt/v1.0"
7 version="1.1-pre3"
8 targetNamespace="http://www.ivoa.net/xml/TAPRegExt/v1.0"
9 elementFormDefault="unqualified"
10 attributeFormDefault="unqualified"
11 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12 xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://vo.ari.uni-heidelberg.de/docs/schemata/XMLSchema.xsd">
13 <xs:annotation>
14 <xs:appinfo>
15 <vm:schemaName>TAPRegExt</vm:schemaName>
16 <vm:schemaPrefix>xs</vm:schemaPrefix>
17 <vm:targetPrefix>tr</vm:targetPrefix>
18 </xs:appinfo>
19 <xs:documentation>
20 A description of the capabilities metadata for TAP services.
21 </xs:documentation>
22 </xs:annotation>
23 <xs:import namespace="http://www.ivoa.net/xml/VOResource/v1.0"
24 schemaLocation="https://www.ivoa.net/xml/VOResource/VOResource-v1.0.xsd"/>
25
26 <xs:attributeGroup name="mode-dependent">
27 <xs:annotation>
28 <xs:documentation>
29 This attribute group is intended to be used wherever a TAPRegExt
30 declaration might depend on the access mode. Currently, only
31 sync vs. async is supported.
32 </xs:documentation>
33 </xs:annotation>
34 <xs:attribute name="forMode">
35 <xs:annotation>
36 <xs:documentation>
37 This declaration only applies to the named mode.
38 </xs:documentation>
39 </xs:annotation>
40 <xs:simpleType>
41 <xs:restriction base="xs:NMTOKEN">
42 <xs:enumeration value="sync">
43 <xs:annotation>
44 <xs:documentation>
45 This declaration is for synchronous queries.
46 </xs:documentation>
47 </xs:annotation>
48 </xs:enumeration>
49 <xs:enumeration value="async">
50 <xs:annotation>
51 <xs:documentation>
52 This declaration is for asynchronous queries.
53 </xs:documentation>
54 </xs:annotation>
55 </xs:enumeration>
56 </xs:restriction>
57 </xs:simpleType>
58 </xs:attribute>
59 </xs:attributeGroup>
60
61 <xs:complexType name="TableAccess">
62 <xs:annotation>
63 <xs:documentation>
64 The capabilities of a TAP server.
65 </xs:documentation>
66 <xs:documentation>
67 The capabilities attempt to define most issues that the
68 TAP standard leaves to the implementors ("may", "should").
69 </xs:documentation>
70 </xs:annotation>
71 <xs:complexContent>
72 <xs:extension base="vr:Capability">
73 <xs:sequence>
74
75 <xs:element name="dataModel" type="tr:DataModelType"
76 minOccurs="0" maxOccurs="unbounded">
77 <xs:annotation>
78 <xs:documentation>
79 Identifier of IVOA-approved data model supported by the
80 service.
81 </xs:documentation>
82 </xs:annotation>
83 </xs:element>
84
85 <xs:element name="language" type="tr:Language"
86 minOccurs="1" maxOccurs="unbounded">
87 <xs:annotation>
88 <xs:documentation>
89 Language supported by the service.
90 </xs:documentation>
91 </xs:annotation>
92 </xs:element>
93
94 <xs:element name="outputFormat" type="tr:OutputFormat"
95 minOccurs="1" maxOccurs="unbounded">
96 <xs:annotation>
97 <xs:documentation>
98 Output format supported by the service.
99 </xs:documentation>
100 </xs:annotation>
101 </xs:element>
102
103 <xs:element name="uploadMethod" type="tr:UploadMethod"
104 minOccurs="0" maxOccurs="unbounded">
105 <xs:annotation>
106 <xs:documentation>
107 Upload method supported by the service.
108 </xs:documentation>
109 <xs:documentation>
110 The absence of upload methods indicates
111 that the service does not support uploads
112 at all.
113 </xs:documentation>
114 </xs:annotation>
115 </xs:element>
116
117 <xs:element name="retentionPeriod" type="tr:TimeLimits"
118 minOccurs="0" maxOccurs="unbounded">
119 <xs:annotation>
120 <xs:documentation>
121 Limits on the time between job creation and
122 destruction time.
123 </xs:documentation>
124 </xs:annotation>
125 </xs:element>
126
127 <xs:element name="executionDuration" type="tr:TimeLimits"
128 minOccurs="0" maxOccurs="unbounded">
129 <xs:annotation>
130 <xs:documentation>
131 Limits on executionDuration.
132 </xs:documentation>
133 </xs:annotation>
134 </xs:element>
135
136 <xs:element name="outputLimit" type="tr:DataLimits"
137 minOccurs="0" maxOccurs="unbounded">
138 <xs:annotation>
139 <xs:documentation>
140 Limits on the size of data returned.
141 </xs:documentation>
142 </xs:annotation>
143 </xs:element>
144
145 <xs:element name="uploadLimit" type="tr:DataLimits"
146 minOccurs="0" maxOccurs="unbounded">
147 <xs:annotation>
148 <xs:documentation>
149 Limits on the size of uploaded data.
150 </xs:documentation>
151 </xs:annotation>
152 </xs:element>
153
154
155 </xs:sequence>
156 </xs:extension>
157 </xs:complexContent>
158 </xs:complexType>
159
160 <xs:complexType name="DALIInterface">
161 <xs:annotation>
162 <xs:documentation>
163 An interface for a complex, multi-endpoint interfaces as
164 regulated by DALI.
165 </xs:documentation>
166 <xs:documentation>
167 In addition to the standard vr:Interface elements, DALIInterfaces
168 have endpoints, listed by name; that name doubles as a path segment
169 to append to the interface's access URL, yielding the URI at
170 which the endpoint is operated.
171 </xs:documentation>
172 </xs:annotation>
173
174 <xs:complexContent>
175 <xs:extension base="vr:Interface">
176 <xs:sequence>
177 <xs:element name="endpoint" type="tr:Endpoint"
178 minOccurs="0" maxOccurs="unbounded">
179 <xs:annotation>
180 <xs:documentation>
181 An endpoint accessible through this interface.
182 </xs:documentation>
183 </xs:annotation>
184 </xs:element>
185 </xs:sequence>
186 </xs:extension>
187 </xs:complexContent>
188 </xs:complexType>
189
190 <xs:complexType name="Endpoint">
191 <xs:annotation>
192 <xs:documentation>
193 An endpoint of a complex interface.
194 </xs:documentation>
195 <xs:documentation>
196 An endpoint is characterised and addressed by its name;
197 they can further be defined through RDF triples. This is a
198 generic extension mechanism for endpoint-specific metadata,
199 primarily intended for custom, vendor-specific extensions.
200 </xs:documentation>
201 </xs:annotation>
202 <xs:sequence>
203 <xs:element name="name" type="xs:token"
204 minOccurs="1" maxOccurs="1">
205 <xs:annotation>
206 <xs:documentation>
207 The endpoint name, which is also the last component of the
208 path of its URI.
209 </xs:documentation>
210 <xs:documentation>
211 Names without dashes are reserved for IVOA use and are expected to
212 work the same way on all services. Well-known examples for
213 such endpoint names include sync, async, and tables.
214 </xs:documentation>
215 </xs:annotation>
216 </xs:element>
217
218 <xs:element name="meta" type="tr:MetaTriple"
219 minOccurs="0" maxOccurs="unbounded">
220 <xs:annotation>
221 <xs:documentation>
222 Auxiliary information on this endpoint.
223 </xs:documentation>
224 </xs:annotation>
225 </xs:element>
226 </xs:sequence>
227 </xs:complexType>
228
229 <xs:complexType name="MetaTriple">
230 <xs:annotation>
231 <xs:documentation>
232 A container for an RDFa triple giving information related to
233 an endpoint.
234 </xs:documentation>
235 </xs:annotation>
236 <xs:simpleContent>
237 <xs:extension base="xs:token">
238 <xs:attribute name="about" type="xs:anyURI" use="optional">
239 <xs:annotation>
240 <xs:documentation>
241 The subject of the statement.
242 </xs:documentation>
243 <xs:documentation>
244 If missing, the endpoint itself is assumed as the subject.
245 </xs:documentation>
246 </xs:annotation>
247 </xs:attribute>
248 <xs:attribute name="property" type="xs:anyURI" use="required">
249 <xs:annotation>
250 <xs:documentation>
251 The property of the statement.
252 </xs:documentation>
253 <xs:documentation>
254 This is a reference to an RDF resource. IVOA standards may define
255 semantics for scheme-less URI; non-IVOA properties must use
256 full URIs with at least scheme and authority; in this
257 version, no vocab attributes are supported.
258 </xs:documentation>
259 </xs:annotation>
260 </xs:attribute>
261 <xs:attribute name="resource" type="xs:anyURI" use="optional">
262 <xs:annotation>
263 <xs:documentation>
264 The object of the statement.
265 </xs:documentation>
266 <xs:documentation>
267 If missing, the text content of the element is used as the
268 object.
269 </xs:documentation>
270 </xs:annotation>
271 </xs:attribute>
272 </xs:extension>
273 </xs:simpleContent>
274 </xs:complexType>
275
276 <xs:complexType name="DataModelType">
277 <xs:annotation>
278 <xs:documentation>
279 An IVOA defined data model, identified by an IVORN
280 intended for machine consumption and a short label
281 intended for human comsumption.
282 </xs:documentation>
283 </xs:annotation>
284
285 <xs:simpleContent>
286 <xs:extension base="xs:token">
287 <xs:attribute name="ivo-id" type="xs:anyURI" use="required">
288 <xs:annotation>
289 <xs:documentation>
290 The IVOID of the data model.
291 </xs:documentation>
292 </xs:annotation>
293 </xs:attribute>
294 </xs:extension>
295 </xs:simpleContent>
296 </xs:complexType>
297
298 <xs:complexType name="Language">
299 <xs:annotation>
300 <xs:documentation>
301 A query language supported by the service.
302 </xs:documentation>
303 <xs:documentation>
304 Each language element can describe one or more versions
305 of a language. Either name alone or name-version can be
306 used as values for the server's LANG parameter.
307 </xs:documentation>
308 </xs:annotation>
309
310 <xs:sequence>
311 <xs:element name="name" type="xs:NCName">
312 <xs:annotation>
313 <xs:documentation>
314 The name of the language without a version suffix.
315 </xs:documentation>
316 </xs:annotation>
317 </xs:element>
318
319 <xs:element name="version" type="tr:Version"
320 minOccurs="1" maxOccurs="unbounded">
321 <xs:annotation>
322 <xs:documentation>
323 A version of the language supported by the server.
324 </xs:documentation>
325 </xs:annotation>
326 </xs:element>
327
328 <xs:element name="description" type="xs:token"
329 minOccurs="0">
330 <xs:annotation>
331 <xs:documentation>
332 A short, human-readable description of the
333 query language.
334 </xs:documentation>
335 </xs:annotation>
336 </xs:element>
337
338 <xs:element name="languageFeatures" type="tr:LanguageFeatureList"
339 minOccurs="0" maxOccurs="unbounded">
340 <xs:annotation>
341 <xs:documentation>
342 Optional features of the query language, grouped by
343 feature type.
344 </xs:documentation>
345 <xs:documentation>
346 This includes listing user defined functions, geometry support,
347 or similar concepts.
348 </xs:documentation>
349 </xs:annotation>
350 </xs:element>
351 </xs:sequence>
352 </xs:complexType>
353
354 <xs:complexType name="Version">
355 <xs:annotation>
356 <xs:documentation>
357 One version of the language supported by the service.
358 </xs:documentation>
359 <xs:documentation>
360 If the service supports more than one version of the
361 language, include multiple version elements.
362 It is recommended that you use a version numbering
363 scheme like MAJOR.MINOR in such a way that sorting
364 by ascending character codes will leave the most
365 recent version at the bottom of the list.
366 </xs:documentation>
367 </xs:annotation>
368
369 <xs:simpleContent>
370 <xs:extension base="xs:token">
371 <xs:attribute name="ivo-id" type="xs:anyURI">
372 <xs:annotation>
373 <xs:documentation>
374 An optional IVOID of the language.
375 </xs:documentation>
376 <xs:documentation>
377 To more formally define a language supported by a service,
378 a resource record for the language can be created, either
379 centrally on the Registry of Registries or by other registry operators.
380 When such a record exists, the ivo-id attribute of language
381 should point to it.
382 </xs:documentation>
383 </xs:annotation>
384 </xs:attribute>
385 </xs:extension>
386 </xs:simpleContent>
387 </xs:complexType>
388
389 <xs:complexType name="LanguageFeatureList">
390 <xs:annotation>
391 <xs:documentation>
392 An enumeration of non-standard or non-mandatory features of
393 a specific type implemented by the language.
394 </xs:documentation>
395 <xs:documentation>
396 A feature type is a language-dependent concept like
397 "user defined function", "geometry support", or possibly
398 "units supported". A featureList gives all features of
399 a given type applicable for the service. Multiple featureLists
400 are possible.
401
402 All feature in a given list are of the same type. This type
403 is declared using the mandatory type attribute,
404 the value of which will typically be an IVOID.
405 To see values defined in TAPRegExt,
406 retrieve the ivo://ivoa.net/std/TAPRegExt
407 resource record and look for keys starting with "features-".
408 </xs:documentation>
409 </xs:annotation>
410 <xs:sequence>
411 <xs:element name="feature" type="tr:LanguageFeature"
412 minOccurs="0" maxOccurs="unbounded">
413 <xs:annotation>
414 <xs:documentation>
415 A language feature of the type given by the
416 type attribute.
417 </xs:documentation>
418 </xs:annotation>
419 </xs:element>
420 </xs:sequence>
421 <xs:attribute name="type" type="xs:anyURI"
422 use="required">
423 <xs:annotation>
424 <xs:documentation>
425 The type of the features given here.
426 </xs:documentation>
427 <xs:documentation>
428 This is in general an IVOID. TAPRegExt itself gives
429 IVOIDs for defining user defined functions and geometry
430 support.
431 </xs:documentation>
432 </xs:annotation>
433 </xs:attribute>
434 </xs:complexType>
435
436 <xs:complexType name="LanguageFeature">
437 <xs:annotation>
438 <xs:documentation>
439 A non-standard or non-mandatory feature implemented
440 by the language..
441 </xs:documentation>
442 </xs:annotation>
443 <xs:sequence>
444 <xs:element name="form" type="xs:token">
445 <xs:annotation>
446 <xs:documentation>
447 Formal notation for the language feature.
448 </xs:documentation>
449 <xs:documentation>
450 The syntax for the content of this element is defined by the
451 type attribute of its parent language list.
452 </xs:documentation>
453 </xs:annotation>
454 </xs:element>
455 <xs:element name="description" type="xs:string" minOccurs="0">
456 <xs:annotation>
457 <xs:documentation>
458 Human-readable freeform documentation for the language feature.
459 </xs:documentation>
460 </xs:annotation>
461 </xs:element>
462 </xs:sequence>
463 </xs:complexType>
464
465 <xs:complexType name="OutputFormat">
466 <xs:annotation>
467 <xs:documentation>
468 An output format supported by the service.
469 </xs:documentation>
470 <xs:documentation>
471 All TAP services must support VOTable output, with media types as
472 requested by the FORMAT parameter if applicable (cf.~section 2.7.1
473 of the TAP standard).
474
475 The primary identifier for an output format is the RFC 2046 media
476 type. If you want to register an output format, you must
477 use a media type (or make one up using the x- syntax), although
478 the concrete media syntax is not enforced by the schema.
479
480 For more detailed specification, an IVOID may be used.
481 </xs:documentation>
482 </xs:annotation>
483
484 <xs:sequence>
485 <xs:element name="mime" type="xs:token">
486 <xs:annotation>
487 <xs:documentation>
488 The media type of this format.
489 </xs:documentation>
490 <xs:documentation>
491 The format of this string is specified by RFC 2046.
492 The service has to accept this string as a
493 value of the FORMAT parameter.
494 </xs:documentation>
495 </xs:annotation>
496 </xs:element>
497
498 <xs:element name="alias" type="xs:token"
499 minOccurs="0" maxOccurs="unbounded">
500 <xs:annotation>
501 <xs:documentation>
502 Other values of FORMAT ("shorthands") that make the service return
503 documents with the media type.
504 </xs:documentation>
505 </xs:annotation>
506 </xs:element>
507
508 </xs:sequence>
509
510 <xs:attributeGroup ref="tr:mode-dependent"/>
511
512 <xs:attribute name="ivo-id" type="xs:anyURI">
513 <xs:annotation>
514 <xs:documentation>
515 An optional IVOID of the output format.
516 </xs:documentation>
517 <xs:documentation>
518 When the media type does not uniquely define the
519 format (or a generic media type like application/octet-stream or
520 text/plain is given), the IVOID can point to a key
521 or StandardsRegExt document defining the format more
522 precisely. To see values defined in TAPRegExt,
523 retrieve the ivo://ivoa.net/std/TAPRegExt
524 resource record and look for keys starting with "output-".
525 </xs:documentation>
526 </xs:annotation>
527 </xs:attribute>
528 </xs:complexType>
529
530 <xs:complexType name="UploadMethod">
531 <xs:annotation>
532 <xs:documentation>
533 An upload method as defined by IVOA.
534 </xs:documentation>
535 <xs:documentation>
536 Upload methods are always identified by an IVOID.
537 Descriptions can be obtained by dereferencing this
538 IVOID. To see values defined in TAPRegExt,
539 retrieve the ivo://ivoa.net/std/TAPRegExt
540 resource record and look for keys starting with "upload-".
541
542 You can register custom upload methods, but you must use the
543 standard IVOIDs for the upload methods defined in the TAP
544 specification.
545 </xs:documentation>
546 </xs:annotation>
547
548 <xs:complexContent>
549 <xs:restriction base="xs:anyType">
550 <xs:attribute name="ivo-id" type="xs:anyURI">
551 <xs:annotation>
552 <xs:documentation>
553 The IVOID of the upload method.
554 </xs:documentation>
555 </xs:annotation>
556 </xs:attribute>
557 <xs:attributeGroup ref="tr:mode-dependent"/>
558 </xs:restriction>
559 </xs:complexContent>
560 </xs:complexType>
561
562
563 <xs:complexType name="TimeLimits">
564 <xs:annotation>
565 <xs:documentation>
566 Time-valued limits, all values given in seconds.
567 </xs:documentation>
568 </xs:annotation>
569
570 <xs:sequence>
571 <xs:element name="default" type="xs:integer"
572 minOccurs="0" maxOccurs="1">
573 <xs:annotation>
574 <xs:documentation>
575 The value of this limit for newly-created jobs, given in seconds.
576 </xs:documentation>
577 </xs:annotation>
578 </xs:element>
579 <xs:element name="hard" type="xs:integer"
580 minOccurs="0" maxOccurs="1">
581 <xs:annotation>
582 <xs:documentation>
583 The value this limit cannot be raised above, given in seconds.
584 </xs:documentation>
585 </xs:annotation>
586 </xs:element>
587 </xs:sequence>
588
589 <xs:attributeGroup ref="tr:mode-dependent"/>
590 </xs:complexType>
591
592 <xs:complexType name="DataLimits">
593 <xs:annotation>
594 <xs:documentation>
595 Limits on data sizes, given in rows or bytes.
596 </xs:documentation>
597 </xs:annotation>
598
599 <xs:sequence>
600 <xs:element name="default" type="tr:DataLimit"
601 minOccurs="0" maxOccurs="1">
602 <xs:annotation>
603 <xs:documentation>
604 The value of this limit for newly-created jobs.
605 </xs:documentation>
606 </xs:annotation>
607 </xs:element>
608 <xs:element name="hard" type="tr:DataLimit"
609 minOccurs="0" maxOccurs="1">
610 <xs:annotation>
611 <xs:documentation>
612 The value this limit cannot be raised above.
613 </xs:documentation>
614 </xs:annotation>
615 </xs:element>
616 </xs:sequence>
617
618 <xs:attributeGroup ref="tr:mode-dependent"/>
619 </xs:complexType>
620
621 <xs:complexType name="DataLimit">
622 <xs:annotation>
623 <xs:documentation>
624 A limit on some data size, either in rows or in bytes.
625 </xs:documentation>
626 </xs:annotation>
627
628 <xs:simpleContent>
629 <xs:extension base="xs:integer">
630 <xs:attribute name="unit" use="required">
631 <xs:annotation>
632 <xs:documentation>
633 The unit of the limit specified.
634 </xs:documentation>
635 </xs:annotation>
636 <xs:simpleType>
637 <xs:restriction base="xs:token">
638 <xs:enumeration value="byte"/>
639 <xs:enumeration value="row"/>
640 </xs:restriction>
641 </xs:simpleType>
642 </xs:attribute>
643 </xs:extension>
644 </xs:simpleContent>
645 </xs:complexType>
646
647 </xs:schema>