Debian Codegraph @

gavo/resources/schemata/VODataService.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema targetNamespace="http://www.ivoa.net/xml/VODataService/v1.1"
3 xmlns:xs="http://www.w3.org/2001/XMLSchema"
4 xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
5 xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1"
6 xmlns:stc="http://www.ivoa.net/xml/STC/stc-v1.30.xsd"
7 xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1"
8 elementFormDefault="unqualified" attributeFormDefault="unqualified"
9 version="1.3-wd4">
10
11 <xs:annotation>
12 <xs:appinfo>
13 <vm:schemaName>VODataService</vm:schemaName>
14 <vm:schemaPrefix>xs</vm:schemaPrefix>
15 <vm:targetPrefix>vs</vm:targetPrefix>
16 </xs:appinfo>
17 <xs:documentation>
18 An extension to the core resource metadata (VOResource) for
19 describing data collections and services.
20 </xs:documentation>
21 </xs:annotation>
22
23 <xs:import namespace="http://www.ivoa.net/xml/VOResource/v1.0"
24 schemaLocation="http://docs.g-vo.org/schemata/VOResource.xsd"/>
25 <xs:import namespace="http://www.ivoa.net/xml/STC/stc-v1.30.xsd"
26 schemaLocation="http://docs.g-vo.org/schemata/stc.xsd"/>
27
28 <xs:complexType name="DataCollection">
29 <xs:annotation>
30 <xs:documentation>
31 A logical grouping of data which, in general, is composed of one
32 or more accessible datasets. A collection can contain any
33 combination of images, spectra, catalogues, or other data.
34 </xs:documentation>
35 <xs:documentation>
36 (A dataset is a collection of digitally-encoded data that
37 is normally accessible as a single unit, e.g., a file.)
38 </xs:documentation>
39 <xs:documentation>
40 This type is deprecated. Resource record authors should
41 use vs:CatalogResource instead. This type will be removed
42 from the schema when no resource record using it remains in
43 the registry.
44 </xs:documentation>
45 </xs:annotation>
46
47 <xs:complexContent>
48 <xs:extension base="vr:Resource">
49 <xs:sequence>
50
51 <xs:element name="facility" type="vr:ResourceName"
52 minOccurs="0" maxOccurs="unbounded">
53 <xs:annotation>
54 <xs:appinfo>
55 <vm:dcterm>Subject</vm:dcterm>
56 </xs:appinfo>
57 <xs:documentation>
58 the observatory or facility used to collect the data
59 contained or managed by this resource.
60 </xs:documentation>
61 </xs:annotation>
62 </xs:element>
63
64 <xs:element name="instrument" type="vr:ResourceName"
65 minOccurs="0" maxOccurs="unbounded">
66 <xs:annotation>
67 <xs:appinfo>
68 <vm:dcterm>Subject</vm:dcterm>
69 <vm:dcterm>Subject.Instrument</vm:dcterm>
70 </xs:appinfo>
71 <xs:documentation>
72 the Instrument used to collect the data contain or
73 managed by a resource.
74 </xs:documentation>
75 </xs:annotation>
76 </xs:element>
77
78 <xs:element name="rights" type="vr:Rights"
79 minOccurs="0" maxOccurs="unbounded">
80 <xs:annotation>
81 <xs:appinfo>
82 <vm:dcterm>Rights</vm:dcterm>
83 </xs:appinfo>
84 <xs:documentation>
85 Information about rights held in and over the resource.
86 </xs:documentation>
87 <xs:documentation>
88 This should be repeated for all Rights values that apply.
89 </xs:documentation>
90 </xs:annotation>
91 </xs:element>
92
93 <xs:element name="format" type="vs:Format"
94 minOccurs="0" maxOccurs="unbounded">
95 <xs:annotation>
96 <xs:documentation>
97 The physical or digital manifestation of the information
98 supported by a resource.
99 </xs:documentation>
100 <xs:documentation>
101 This should use RFC 2046 media (“MIME”) types for
102 network-retrievable, digital data.
103 Non-RFC 2046 values could be used for media that cannot
104 be retrieved over the network.
105 </xs:documentation>
106 </xs:annotation>
107 </xs:element>
108
109 <xs:element name="coverage" type="vs:Coverage" minOccurs="0">
110 <xs:annotation>
111 <xs:documentation>
112 Extent of the content of the resource over space, time,
113 and frequency.
114 </xs:documentation>
115 </xs:annotation>
116 </xs:element>
117
118 <xs:element name="tableset" type="vs:TableSet" minOccurs="0">
119 <xs:annotation>
120 <xs:documentation>
121 A description of the tables that are part of this
122 collection.
123 </xs:documentation>
124 <xs:documentation>
125 Each schema name must be
126 unique within a tableset.
127 </xs:documentation>
128 </xs:annotation>
129
130 <xs:unique name="DataCollection-schemaName">
131 <xs:selector xpath="schema" />
132 <xs:field xpath="name" />
133 </xs:unique>
134
135 </xs:element>
136
137 <xs:element name="accessURL" type="vr:AccessURL" minOccurs="0">
138 <xs:annotation>
139 <xs:documentation>
140 The URL that can be used to download the data contained in
141 this data collection.
142 </xs:documentation>
143 </xs:annotation>
144 </xs:element>
145
146 </xs:sequence>
147 </xs:extension>
148 </xs:complexContent>
149 </xs:complexType>
150
151 <xs:complexType name="SpatialCoverage">
152 <xs:annotation>
153 <xs:documentation>
154 A coverage on a sphere. By default, this refers to the
155 celestial sphere in the ICRS frame. Non-celestial frames
156 are indicated by non-NULL values of the frame attribute.
157 </xs:documentation>
158 </xs:annotation>
159 <xs:simpleContent>
160 <xs:extension base="xs:token">
161 <xs:attribute name="frame" type="xs:token">
162 <xs:annotation>
163 <xs:documentation>
164 When present, the MOC is written in a non-celestial (e.g.,
165 planetary) frame. Note that for celestial coverages,
166 ICRS must be used.
167 </xs:documentation>
168 <xs:documentation>
169 VODataService 1.2 does not prescribe a vocabulary for
170 what values are allowed here. As
171 long as no such vocabulary is agreed upon, the frame
172 attribute should not be set.
173 </xs:documentation>
174 </xs:annotation>
175 </xs:attribute>
176 </xs:extension>
177 </xs:simpleContent>
178 </xs:complexType>
179
180 <xs:complexType name="Coverage">
181 <xs:annotation>
182 <xs:documentation>
183 A description of how a resource's contents or behavior maps
184 to the sky, to time, and to frequency space, including
185 coverage and resolution.
186 </xs:documentation>
187 </xs:annotation>
188
189 <xs:sequence>
190
191 <xs:element ref="stc:STCResourceProfile" minOccurs="0">
192 <xs:annotation>
193 <xs:documentation>
194 An STC 1.0 description of the location of the resource's
195 data on the sky, in time, and in frequency space,
196 including resolution. This is deprecated in favour
197 of the separate spatial, temporal, and spectral elements.
198 </xs:documentation>
199 </xs:annotation>
200 </xs:element>
201
202 <xs:element name="spatial" type="vs:SpatialCoverage"
203 minOccurs="0">
204 <xs:annotation>
205 <xs:documentation>
206 An ASCII-serialized MOC defining the spatial coverage
207 of the resource.
208 </xs:documentation>
209 <xs:documentation>
210 The MOC is to be understood in the ICRS reference frame
211 unless a frame attribute is given.
212 Resources should give the coverage at least to order 6
213 (a resolution of about one degree). The order should be
214 chosen so as to keep the resulting MOC smaller than a few
215 dozens of kB. If desired, a more precise MOC can be provided
216 on a dedicated endpoint declared in the footprint element.
217 </xs:documentation>
218 </xs:annotation>
219 </xs:element>
220
221 <xs:element name="temporal" type="vs:FloatInterval" minOccurs="0"
222 maxOccurs="unbounded">
223 <xs:annotation>
224 <xs:documentation>
225 A pair of lower, upper limits of a time interval
226 for which the resource offers data.
227 </xs:documentation>
228 <xs:documentation>
229 This is written as for VOTable tabledata (i.e.,
230 whitespace-separated C-style floating point literals), as
231 in “47847.2 51370.2”.
232 The limits must be given as MJD. While they
233 are not intended to be precise, they are to be understood
234 in TDB for the solar system barycenter. The total coverage
235 of the resource is the union of all such intervals.
236 </xs:documentation>
237 </xs:annotation>
238 </xs:element>
239
240 <xs:element name="spectral" type="vs:FloatInterval" minOccurs="0"
241 maxOccurs="unbounded">
242 <xs:annotation>
243 <xs:documentation>
244 A pair of lower, upper limits of a spectral interval
245 for which the resource offers data.
246 </xs:documentation>
247 <xs:documentation>
248 This is written as for VOTable tabledata (i.e.,
249 whitespace-separated C-style floating point literals).
250 The limits must be given in Joules of particle
251 energies. While the limits are not intended
252 to be precise, they are to be understood for the
253 solar system barycenter.
254 </xs:documentation>
255 <xs:documentation>
256 For instance, the Johnson V waveband (480 .. 730 nm)
257 would be specified as “2.72e-19 4.14e-19”
258 </xs:documentation>
259 </xs:annotation>
260 </xs:element>
261
262 <xs:element name="footprint"
263 type="vs:ServiceReference" minOccurs="0">
264 <xs:annotation>
265 <xs:documentation>
266 A reference to a footprint service for retrieving
267 precise and up-to-date description of coverage.
268 </xs:documentation>
269 <xs:documentation>
270 The ivo-id attribute here refers to the standard in which
271 the footprint is given. The only value defined by
272 VODataService at this point is ivo://ivoa.net/std/moc,
273 which indicates that retrieving the footprint URL will return
274 a MOC (any IVOA-approved serialisation is legal). Note that
275 the ivo-id attribute was intended to have a different
276 function in VODataService 1.1. The current meaning is what
277 implementors actually adopted.
278 </xs:documentation>
279 </xs:annotation>
280 </xs:element>
281
282 <xs:element name="waveband" type="xs:token"
283 minOccurs="0" maxOccurs="unbounded">
284 <xs:annotation>
285 <xs:appinfo>
286 <vm:dcterm>Coverage.Spectral</vm:dcterm>
287 </xs:appinfo>
288 <xs:documentation>
289 A name of a messenger that the resource is relevant for
290 (e.g., was used in the measurements). Terms must
291 be taken from the vocabulary at
292 http://www.ivoa.net/rdf/messenger.
293 </xs:documentation>
294 <xs:documentation>
295 It is a bit unfortunate that the element is still called
296 waveband when it is now also covers non-electromagnetic
297 messengers. It was deemed that this slight notional
298 sloppiness is preferable to introducing new and
299 deprecating old elements.
300 </xs:documentation>
301 </xs:annotation>
302 </xs:element>
303
304 <xs:element name="regionOfRegard" type="xs:float" minOccurs="0">
305 <xs:annotation>
306 <xs:appinfo>
307 <vm:dcterm>Coverage.RegionOfRegard</vm:dcterm>
308 </xs:appinfo>
309 <xs:documentation>
310 A single numeric value representing the angle, given
311 in decimal degrees, by which a positional query
312 against this resource should be “blurred” in order
313 to get an appropriate match.
314 </xs:documentation>
315 <xs:documentation>
316 In the case of image repositories, it might refer to
317 a typical field-of-view size, or the primary beam
318 size for radio aperture synthesis data. In the case
319 of object catalogues RoR should normally be the
320 largest of the typical size of the objects, the
321 astrometric errors in the positions, or the
322 resolution of the data.
323 </xs:documentation>
324 </xs:annotation>
325 </xs:element>
326
327 </xs:sequence>
328 </xs:complexType>
329
330 <xs:complexType name="ServiceReference">
331 <xs:annotation>
332 <xs:documentation>
333 The service URL for a potentially registered service. That is,
334 if an IVOA identifier is also provided, then the service is
335 described in a registry.
336 </xs:documentation>
337 </xs:annotation>
338
339 <xs:simpleContent>
340 <xs:extension base="xs:anyURI">
341
342 <xs:attribute name="ivo-id" type="vr:IdentifierURI">
343 <xs:annotation>
344 <xs:documentation>
345 The URI form of the IVOA identifier for the service
346 describing the capability refered to by this element.
347 </xs:documentation>
348 </xs:annotation>
349 </xs:attribute>
350
351 </xs:extension>
352 </xs:simpleContent>
353 </xs:complexType>
354
355 <xs:complexType name="TableSet">
356 <xs:annotation>
357 <xs:documentation>
358 The set of tables hosted by a resource.
359 </xs:documentation>
360 </xs:annotation>
361
362 <xs:sequence>
363
364 <xs:element name="schema" type="vs:TableSchema"
365 minOccurs="1" maxOccurs="unbounded">
366 <xs:annotation>
367 <xs:documentation>
368 A named description of a group of logically related tables.
369 </xs:documentation>
370 <xs:documentation>
371 The name given by the “name” child element must
372 be unique within this TableSet instance. If there is
373 only one schema in this set and/or there is no locally
374 appropriate name to provide, the name can be set to
375 “default”.
376 </xs:documentation>
377 <xs:documentation>
378 This aggregation does not need to map to an
379 actual database, catalogue, or schema, though the
380 publisher may choose to aggregate along such
381 designations. Particular service protocols may
382 require stricter patterns.
383 </xs:documentation>
384 </xs:annotation>
385
386 <xs:unique name="DataCollection-tableName">
387 <xs:selector xpath="table" />
388 <xs:field xpath="name" />
389 </xs:unique>
390
391 </xs:element>
392
393 </xs:sequence>
394
395 <xs:anyAttribute namespace="##other" />
396 </xs:complexType>
397
398 <xs:complexType name="TableSchema">
399 <xs:annotation>
400 <xs:documentation>
401 A detailed description of a logically related group of tables.
402 </xs:documentation>
403 </xs:annotation>
404
405 <xs:sequence>
406 <xs:element name="name" type="xs:token" minOccurs="1">
407 <xs:annotation>
408 <xs:documentation>
409 A name for the group of tables.
410 </xs:documentation>
411 <xs:documentation>
412 This is used to uniquely identify the group of tables among
413 several groups. If no title is given, this
414 name can be used for display purposes.
415 </xs:documentation>
416 <xs:documentation>
417 If there is no appropriate logical name associated with
418 this group, the name should be explicitly set to
419 “default”.
420 </xs:documentation>
421 </xs:annotation>
422 </xs:element>
423
424 <xs:element name="title" type="xs:token" minOccurs="0">
425 <xs:annotation>
426 <xs:documentation>
427 A descriptive, human-interpretable name for the group of
428 tables.
429 </xs:documentation>
430 <xs:documentation>
431 This is used for display purposes. There is no requirement
432 regarding uniqueness. It is useful when there are
433 multiple schemas in the context (e.g., within a
434 tableset; otherwise, the resource title could be
435 used instead).
436 </xs:documentation>
437 </xs:annotation>
438 </xs:element>
439
440 <xs:element name="description" type="xs:token"
441 minOccurs="0">
442 <xs:annotation>
443 <xs:documentation>
444 A free text description of the group of tables that should
445 explain in general how all of the tables in the group are
446 related.
447 </xs:documentation>
448 </xs:annotation>
449 </xs:element>
450
451 <xs:element name="utype" type="xs:token" minOccurs="0">
452 <xs:annotation>
453 <xs:documentation>
454 An identifier for a concept in a data model that
455 the data in this schema as a whole represent.
456 </xs:documentation>
457 <xs:documentation>
458 The form of the utype string depends on the data
459 model; common forms are sequences of dotted identifiers
460 (e.g., in SSA) or URIs (e.g., in RegTAP).
461 </xs:documentation>
462 </xs:annotation>
463 </xs:element>
464
465 <xs:element name="table" type="vs:Table"
466 minOccurs="0" maxOccurs="unbounded">
467 <xs:annotation>
468 <xs:documentation>
469 A description of one table.
470 </xs:documentation>
471 </xs:annotation>
472 </xs:element>
473
474 </xs:sequence>
475
476 <xs:anyAttribute namespace="##other" />
477
478 </xs:complexType>
479
480 <xs:complexType name="Format">
481 <xs:simpleContent>
482 <xs:extension base="xs:token">
483 <xs:attribute name="isMIMEType" type="xs:boolean" default="false">
484 <xs:annotation>
485 <xs:documentation>
486 If true, the content of the element is an RFC
487 2046-compliant media time.
488 </xs:documentation>
489 </xs:annotation>
490 </xs:attribute>
491 </xs:extension>
492 </xs:simpleContent>
493 </xs:complexType>
494
495 <xs:complexType name="DataResource">
496 <xs:annotation>
497 <xs:documentation>
498 A resource publishing astronomical data.
499 </xs:documentation>
500 <xs:documentation>
501 This resource type should only be used if the resource has no
502 common underlying tabular schema (e.g., an inhomogeneous archive).
503 Use CatalogResource otherwise.
504 </xs:documentation>
505 </xs:annotation>
506
507 <xs:complexContent>
508 <xs:extension base="vr:Service">
509 <xs:sequence>
510 <xs:element name="facility" type="vr:ResourceName"
511 minOccurs="0" maxOccurs="unbounded">
512 <xs:annotation>
513 <xs:appinfo>
514 <vm:dcterm>Subject</vm:dcterm>
515 </xs:appinfo>
516 <xs:documentation>
517 The observatory or facility used to collect the data
518 contained or managed by this resource.
519 </xs:documentation>
520 </xs:annotation>
521 </xs:element>
522
523 <xs:element name="instrument" type="vr:ResourceName"
524 minOccurs="0" maxOccurs="unbounded">
525 <xs:annotation>
526 <xs:appinfo>
527 <vm:dcterm>Subject</vm:dcterm>
528 <vm:dcterm>Subject.Instrument</vm:dcterm>
529 </xs:appinfo>
530 <xs:documentation>
531 The instrument used to collect the data contain or
532 managed by a resource.
533 </xs:documentation>
534 </xs:annotation>
535 </xs:element>
536
537 <xs:element name="coverage" type="vs:Coverage" minOccurs="0">
538 <xs:annotation>
539 <xs:documentation>
540 Extent of the content of the resource over space, time,
541 and frequency.
542 </xs:documentation>
543 </xs:annotation>
544 </xs:element>
545
546 <xs:element name="productTypeServed" type="xs:token"
547 minOccurs="0" maxOccurs="unbounded">
548 <xs:annotation>
549 <xs:documentation>
550 Collections of data products (e.g., images or spectra)
551 or services serving them define the type of products
552 they contain or serve here. The strings here must
553 be taken from the IVOA vocabulary
554 http://www.ivoa.net/rdf/product-type.
555 </xs:documentation>
556 <xs:documentation>
557 This information is intended
558 to enable global product discovery. Hence, services
559 failing to define their product type(s) risk being skipped
560 by clients doing typed global dataset discovery.
561 </xs:documentation>
562 </xs:annotation>
563 </xs:element>
564
565 <xs:element name="dataSource" type="xs:token"
566 minOccurs="0" maxOccurs="unbounded">
567 <xs:annotation>
568 <xs:documentation>
569 The process that produced the data reported here,
570 taken from the IVOA vocabulary
571 http://www.ivoa.net/rdf/data-source.
572 </xs:documentation>
573 <xs:documentation>
574 If nothing is given here, consumers should assume
575 'observation' as the data source. Also, clients
576 should note that more refined terms can be introduced
577 at any time and should follow semantic relations
578 given in the vocabulary if appropriate.
579 </xs:documentation>
580 </xs:annotation>
581 </xs:element>
582
583 </xs:sequence>
584 </xs:extension>
585 </xs:complexContent>
586 </xs:complexType>
587
588 <xs:complexType name="DataService">
589 <xs:annotation>
590 <xs:documentation>
591 A service for accessing astronomical data.
592 </xs:documentation>
593 <xs:documentation>
594 This resource type should only be used if the service has no
595 common underlying tabular schema (e.g., a storage service) or
596 if it is not explicitly accessible (e.g., an ftp server with
597 images). Use CatalogService otherwise.
598 </xs:documentation>
599 </xs:annotation>
600
601 <xs:complexContent>
602 <xs:extension base="vs:DataResource"/>
603 </xs:complexContent>
604 </xs:complexType>
605
606 <xs:complexType name="ParamHTTP">
607 <xs:annotation>
608 <xs:documentation>
609 A service invoked via an HTTP Query (either Get or Post)
610 with a set of arguments consisting of keyword name-value pairs.
611 </xs:documentation>
612 <xs:documentation>
613 Note that the URL for help with this service can be put into
614 the service/referenceURL element.
615 </xs:documentation>
616 </xs:annotation>
617
618 <xs:complexContent>
619 <xs:extension base="vr:Interface">
620 <xs:sequence>
621 <xs:element name="queryType" type="vs:HTTPQueryType"
622 minOccurs="0" maxOccurs="2">
623 <xs:annotation>
624 <xs:documentation>
625 The type of HTTP request, either GET or POST.
626 </xs:documentation>
627 <xs:documentation>
628 The service may indicate support for both GET
629 and POST by providing 2 queryType elements, one
630 with GET and one with POST. Since the IVOA standard
631 DALI requires standard services to support both
632 GET and POST, this piece of metadata is not
633 useful in the description of standard DAL services
634 and does not need to be given for those.
635 </xs:documentation>
636 </xs:annotation>
637 </xs:element>
638
639 <xs:element name="resultType" type="xs:token"
640 minOccurs="0">
641 <xs:annotation>
642 <xs:documentation>
643 The MIME media type of a document returned in
644 the HTTP response.
645 </xs:documentation>
646 </xs:annotation>
647 </xs:element>
648
649 <xs:element name="param" type="vs:InputParam" minOccurs="0"
650 maxOccurs="unbounded">
651 <xs:annotation>
652 <xs:documentation>
653 A description of a input parameter that can be
654 provided as a name=value argument to the service.
655 </xs:documentation>
656 </xs:annotation>
657 </xs:element>
658
659 <xs:element name="testQuery" type="xs:string" minOccurs="0">
660 <xs:annotation>
661 <xs:documentation>
662 An ampersand-delimited list of arguments that
663 can be used to test this service interface;
664 when provided as the input to this interface,
665 it will produce a legal, non-null response.
666 </xs:documentation>
667 <xs:documentation>
668 When the interface supports GET, then the full
669 query URL is formed by the concatenation of the
670 base URL (given by the accessURL) and the value
671 given by this testQuery element.
672 </xs:documentation>
673 </xs:annotation>
674 </xs:element>
675
676 </xs:sequence>
677 </xs:extension>
678 </xs:complexContent>
679 </xs:complexType>
680
681 <xs:simpleType name="HTTPQueryType">
682 <xs:annotation>
683 <xs:documentation>
684 The type of HTTP request, either GET or POST.
685 </xs:documentation>
686 </xs:annotation>
687 <xs:restriction base="xs:token">
688 <xs:enumeration value="GET"/>
689 <xs:enumeration value="POST"/>
690 </xs:restriction>
691 </xs:simpleType>
692
693 <xs:complexType name="CatalogResource">
694 <xs:annotation>
695 <xs:documentation>
696 A resource giving astronomical data in tabular form.
697 </xs:documentation>
698 <xs:documentation>
699 While this includes classical astronomical catalogues,
700 this resource is also appropriate for collections of observations
701 or simulation results provided their metadata are available
702 in a sufficiently structured form (e.g., Obscore, SSAP, etc).
703 </xs:documentation>
704 </xs:annotation>
705
706 <xs:complexContent>
707 <xs:extension base="vs:DataResource">
708 <xs:sequence>
709 <xs:element name="tableset" type="vs:TableSet" minOccurs="0">
710 <xs:annotation>
711 <xs:documentation>
712 A description of the tables that are accessible
713 through this service.
714 </xs:documentation>
715 <xs:documentation>
716 Each schema name must be unique within a tableset.
717 </xs:documentation>
718 </xs:annotation>
719
720 <xs:unique name="CatalogService-schemaName">
721 <xs:selector xpath="schema" />
722 <xs:field xpath="name" />
723 </xs:unique>
724
725 <xs:unique name="CatalogService-tableName">
726 <xs:selector xpath="schema/table" />
727 <xs:field xpath="name" />
728 </xs:unique>
729 </xs:element>
730 </xs:sequence>
731 </xs:extension>
732 </xs:complexContent>
733 </xs:complexType>
734
735 <xs:complexType name="CatalogService">
736 <xs:annotation>
737 <xs:documentation>
738 A service that interacts with astronomical data
739 through one or more specified tables.
740 </xs:documentation>
741 <xs:documentation>
742 This is the appropriate resource type for normal VO services,
743 e.g., TAP, SSAP, SIAP, ConeSearch.
744 </xs:documentation>
745 </xs:annotation>
746
747 <xs:complexContent>
748 <xs:extension base="vs:CatalogResource"/>
749 </xs:complexContent>
750 </xs:complexType>
751
752 <xs:complexType name="Table">
753 <xs:sequence>
754 <xs:element name="name" type="xs:token"
755 minOccurs="1">
756 <xs:annotation>
757 <xs:documentation>
758 The fully qualified name of the table. This name
759 should include all catalogue or schema prefixes
760 needed to sufficiently uniquely distinguish it in a
761 query.
762 </xs:documentation>
763 <xs:documentation>
764 In general, the format of the qualified name may
765 depend on the context; however, when the
766 table is intended to be queryable via ADQL, then the
767 catalogue and schema qualifiers are delimited from the
768 table name with dots (.).
769 </xs:documentation>
770 </xs:annotation>
771 </xs:element>
772
773 <xs:element name="title" type="xs:token" minOccurs="0">
774 <xs:annotation>
775 <xs:documentation>
776 A descriptive, human-interpretable name for the table.
777 </xs:documentation>
778 <xs:documentation>
779 This is used for display purposes. There is no requirement
780 regarding uniqueness.
781 </xs:documentation>
782 </xs:annotation>
783 </xs:element>
784
785 <xs:element name="description" type="xs:token" minOccurs="0">
786 <xs:annotation>
787 <xs:documentation>
788 A free-text description of the table's contents
789 </xs:documentation>
790 </xs:annotation>
791 </xs:element>
792
793 <xs:element name="utype" type="xs:token" minOccurs="0">
794 <xs:annotation>
795 <xs:documentation>
796 An identifier for a concept in a data model that
797 the data in this table represent.
798 </xs:documentation>
799 <xs:documentation>
800 The form of the utype string depends on the data
801 model; common forms are sequences of dotted identifiers
802 (e.g., in SSA) or URIs (e.g., in RegTAP).
803 </xs:documentation>
804 </xs:annotation>
805 </xs:element>
806
807 <xs:element name="nrows" type="xs:nonNegativeInteger" minOccurs="0">
808 <xs:annotation>
809 <xs:documentation>
810 The approximate size of the table in rows.
811 </xs:documentation>
812 <xs:documentation>
813 This is not expected to be exact. For instance, the
814 estimates on table sizes databases keep for query
815 planning purposes are suitable for this field.
816 </xs:documentation>
817 </xs:annotation>
818 </xs:element>
819
820 <xs:element name="column" type="vs:TableParam"
821 minOccurs="0" maxOccurs="unbounded">
822 <xs:annotation>
823 <xs:documentation>
824 A description of a table column.
825 </xs:documentation>
826 </xs:annotation>
827 </xs:element>
828
829 <xs:element name="foreignKey" type="vs:ForeignKey"
830 minOccurs="0" maxOccurs="unbounded" >
831 <xs:annotation>
832 <xs:documentation>
833 A description of a foreign keys, one or more columns
834 from the current table that can be used to join with
835 another table.
836 </xs:documentation>
837 </xs:annotation>
838 </xs:element>
839
840 </xs:sequence>
841
842 <xs:attribute name="type" type="xs:string">
843 <xs:annotation>
844 <xs:documentation>
845 A name for the role this table plays. Recognized
846 values include “output”, indicating this table is output
847 from a query; “base_table”, indicating a table
848 whose records represent the main subjects of its
849 schema; and “view”, indicating that the table represents
850 a useful combination or subset of other tables. Other
851 values are allowed.
852 </xs:documentation>
853 </xs:annotation>
854 </xs:attribute>
855
856 <xs:anyAttribute namespace="##other" />
857 </xs:complexType>
858
859 <xs:complexType name="TokenWithFrequency">
860 <xs:annotation>
861 <xs:documentation>
862 An element of a discrete distribution within vs:Stats.
863 </xs:documentation>
864 <xs:documentation>
865 This is a pair of an xs:token – where values are not naturally
866 strings, use DALI or XSD literals – and its relative frequency. For
867 table columns, this would be the number of occurrences divided
868 by the number of rows in the table. Note that this means that missing
869 values (“NULL”) count into the distribution. As in VOTables,
870 an empty value will mean NULL; these cannot be distinguished
871 from empty strings. It is not mandatory to give freq in option
872 elements, which is convenient for InputParam-s or when statistics
873 on the distribution are not available.
874 </xs:documentation>
875 </xs:annotation>
876
877 <xs:simpleContent>
878 <xs:extension base="xs:token">
879 <xs:attribute name="freq" type="xs:float">
880 <xs:annotation>
881 <xs:documentation>
882 The relative frequency of this value, defined as
883 the number of occurrences divided by the number
884 of rows.
885 </xs:documentation>
886 </xs:annotation>
887 </xs:attribute>
888 </xs:extension>
889 </xs:simpleContent>
890 </xs:complexType>
891
892 <xs:complexType name="Stats">
893 <xs:annotation>
894 <xs:documentation>
895 Characterization of a distribution underlying a parameter.
896 </xs:documentation>
897 <xs:documentation>
898 Quasicontinuous distributions are defined here by their minimum
899 and maximum values (which are useful in UI generation, for instance),
900 and the more robust 3rd and 97th percentiles (a “2σ range”) as well
901 as the median for indications on the rough shape of the distribution.
902 The element also admits arbitrary non-namespace child elements
903 to enable the communication of further, more refined statistics.
904 Discrete distributions can be characterized using option elements.
905 </xs:documentation>
906 </xs:annotation>
907
908 <xs:sequence>
909 <xs:element name="min" type="xs:double" minOccurs="0">
910 <xs:annotation>
911 <xs:documentation>
912 The smallest value occurring in a distribution of numbers.
913 </xs:documentation>
914 </xs:annotation>
915 </xs:element>
916
917 <xs:element name="percentile03" type="xs:double" minOccurs="0">
918 <xs:annotation>
919 <xs:documentation>
920 The 3rd percentile (“2σ”) in a distribution of numbers.
921 </xs:documentation>
922 </xs:annotation>
923 </xs:element>
924
925 <xs:element name="median" type="xs:double" minOccurs="0">
926 <xs:annotation>
927 <xs:documentation>
928 The 50th percentile in a distribution of numbers.
929 </xs:documentation>
930 </xs:annotation>
931 </xs:element>
932
933 <xs:element name="percentile97" type="xs:double" minOccurs="0">
934 <xs:annotation>
935 <xs:documentation>
936 The 97nd percentile (“2σ”) in a distribution of numbers.
937 </xs:documentation>
938 </xs:annotation>
939 </xs:element>
940
941 <xs:element name="max" type="xs:double" minOccurs="0">
942 <xs:annotation>
943 <xs:documentation>
944 The largest value occurring in a distribution of numbers.
945 </xs:documentation>
946 </xs:annotation>
947 </xs:element>
948
949 <xs:element name="fillFactor" type="xs:float" minOccurs="0">
950 <xs:annotation>
951 <xs:documentation>
952 The ratio of not-NULL values to the total number of entries
953 in a table column representing the distribution (or similar).
954 </xs:documentation>
955 </xs:annotation>
956 </xs:element>
957
958 <xs:element name="option" type="vs:TokenWithFrequency"
959 minOccurs="0" maxOccurs="unbounded">
960 <xs:annotation>
961 <xs:documentation>
962 An entry in a discrete distribution.
963 </xs:documentation>
964 </xs:annotation>
965 </xs:element>
966
967 <xs:any namespace="##other" processContents="lax"
968 minOccurs="0" maxOccurs="unbounded"/>
969 </xs:sequence>
970 </xs:complexType>
971
972 <xs:complexType name="BaseParam">
973 <xs:annotation>
974 <xs:documentation>
975 A description of a parameter that places no restriction on
976 the parameter's data type.
977 </xs:documentation>
978 <xs:documentation>
979 As the parameter's data type is usually important, schemas
980 normally employ a sub-class of this type
981 rather than this type directly.
982 </xs:documentation>
983 </xs:annotation>
984
985 <xs:sequence>
986 <xs:element name="name" type="xs:token" minOccurs="0">
987 <xs:annotation>
988 <xs:documentation>
989 The name of the parameter or column.
990 </xs:documentation>
991 </xs:annotation>
992 </xs:element>
993
994 <xs:element name="description" type="xs:token" minOccurs="0">
995 <xs:annotation>
996 <xs:documentation>
997 A free-text description of a parameter's or column's
998 contents.
999 </xs:documentation>
1000 </xs:annotation>
1001 </xs:element>
1002
1003 <xs:element name="unit" type="xs:token" minOccurs="0">
1004 <xs:annotation>
1005 <xs:documentation>
1006 The unit associated with the values in the parameter
1007 or column.
1008 </xs:documentation>
1009 </xs:annotation>
1010 </xs:element>
1011
1012 <xs:element name="ucd" type="xs:token" minOccurs="0">
1013 <xs:annotation>
1014 <xs:documentation>
1015 The name of a unified content descriptor that
1016 describes the scientific content of the parameter.
1017 </xs:documentation>
1018 <xs:documentation>
1019 There are no requirements for compliance with any
1020 particular UCD standard.
1021 </xs:documentation>
1022 </xs:annotation>
1023 </xs:element>
1024
1025 <xs:element name="utype" type="xs:token" minOccurs="0">
1026 <xs:annotation>
1027 <xs:documentation>
1028 An identifier for a concept in a data model that
1029 the data in this schema represent.
1030 </xs:documentation>
1031 <xs:documentation>
1032 The form of the utype string depends on the data
1033 model; common forms are sequences of dotted identifiers
1034 (e.g., in SSA) or URIs (e.g., in RegTAP).
1035 </xs:documentation>
1036 </xs:annotation>
1037 </xs:element>
1038
1039 <xs:element name="stats" type="vs:Stats" minOccurs="0">
1040 <xs:annotation>
1041 <xs:documentation>
1042 Statistics of the distribution underlying this parameter.
1043 </xs:documentation>
1044 <xs:documentation>
1045 What “underlying distribution” means depends on the
1046 semantics of the derived type. For vs:TableParam-s, for
1047 instance, it would be the distribution of the values in
1048 the corresponding table columns. With vs:InputParam-s
1049 that are directly translated into relational constraints,
1050 it would similarly be the distribution of the corresponding
1051 column. For more complex input parameters, the
1052 distribution of an associated physical quantity might also
1053 be appropriate.
1054 </xs:documentation>
1055 </xs:annotation>
1056 </xs:element>
1057 </xs:sequence>
1058
1059 <xs:anyAttribute namespace="##other"/>
1060 </xs:complexType>
1061
1062 <xs:complexType name="TableParam">
1063 <xs:annotation>
1064 <xs:documentation>
1065 A description of a table parameter having a fixed data type.
1066 </xs:documentation>
1067 </xs:annotation>
1068
1069 <xs:complexContent>
1070 <xs:extension base="vs:BaseParam">
1071 <xs:sequence>
1072 <xs:element name="dataType" type="vs:TableDataType"
1073 minOccurs="0">
1074 <xs:annotation>
1075 <xs:documentation>
1076 A type of data contained in the column
1077 </xs:documentation>
1078 </xs:annotation>
1079 </xs:element>
1080
1081 <xs:element name="flag" type="xs:token"
1082 minOccurs="0" maxOccurs="unbounded">
1083 <xs:annotation>
1084 <xs:documentation>
1085 A keyword representing traits of the column.
1086 Recognized values include “indexed”, “primary”, and
1087 “nullable”.
1088 </xs:documentation>
1089 <xs:documentation>
1090 While other values are allowed, the following semantics
1091 is defined by this specification: indexed – The column
1092 has an index on it for faster search against its values;
1093 primary – The values column in the column represent in
1094 total or in part a primary key for its table; nullable –
1095 the column may contain null or empty values.
1096 </xs:documentation>
1097 </xs:annotation>
1098 </xs:element>
1099 </xs:sequence>
1100
1101 <xs:attribute name="std" type="xs:boolean">
1102 <xs:annotation>
1103 <xs:documentation>
1104 If true, the meaning and use of this parameter is
1105 reserved and defined by a standard model. If false,
1106 it represents a parameter specific to the data described
1107 If not provided, then the value is unknown.
1108 </xs:documentation>
1109 </xs:annotation>
1110 </xs:attribute>
1111 </xs:extension>
1112 </xs:complexContent>
1113 </xs:complexType>
1114
1115 <xs:complexType name="InputParam">
1116 <xs:annotation>
1117 <xs:documentation>
1118 A description of a service or function parameter having a
1119 fixed data type.
1120 </xs:documentation>
1121 <xs:documentation>
1122 DALI-compliant services should use VOTableType here, others
1123 should use SimpleDataType.
1124 </xs:documentation>
1125 </xs:annotation>
1126
1127 <xs:complexContent>
1128 <xs:extension base="vs:BaseParam">
1129 <xs:sequence>
1130 <xs:element name="dataType" type="vs:DataType"
1131 minOccurs="0">
1132 <xs:annotation>
1133 <xs:documentation>
1134 A type of data contained in the parameter.
1135 </xs:documentation>
1136 </xs:annotation>
1137 </xs:element>
1138 </xs:sequence>
1139
1140 <xs:attribute name="use" type="vs:ParamUse" default="optional">
1141 <xs:annotation>
1142 <xs:documentation>
1143 An indication of whether this parameter is
1144 required to be provided for the application
1145 or service to work properly.
1146 </xs:documentation>
1147 </xs:annotation>
1148 </xs:attribute>
1149
1150 <xs:attribute name="std" type="xs:boolean" default="true">
1151 <xs:annotation>
1152 <xs:documentation>
1153 If true, the meaning and behavior of this parameter is
1154 reserved and defined by a standard interface. If
1155 false, it represents an implementation-specific
1156 parameter that effectively extends the behavior of the
1157 service or application.
1158 </xs:documentation>
1159 </xs:annotation>
1160 </xs:attribute>
1161
1162 </xs:extension>
1163 </xs:complexContent>
1164 </xs:complexType>
1165
1166 <xs:simpleType name="ParamUse">
1167 <xs:restriction base="xs:string">
1168 <xs:enumeration value="required">
1169 <xs:annotation>
1170 <xs:documentation>
1171 The parameter is required for the application or
1172 service to work properly.
1173 </xs:documentation>
1174 </xs:annotation>
1175 </xs:enumeration>
1176 <xs:enumeration value="optional">
1177 <xs:annotation>
1178 <xs:documentation>
1179 The parameter is optional but supported by the application or
1180 service.
1181 </xs:documentation>
1182 </xs:annotation>
1183 </xs:enumeration>
1184 <xs:enumeration value="ignored">
1185 <xs:annotation>
1186 <xs:documentation>
1187 The parameter is not supported and thus is ignored by the
1188 application or service.
1189 </xs:documentation>
1190 </xs:annotation>
1191 </xs:enumeration>
1192 </xs:restriction>
1193 </xs:simpleType>
1194
1195 <xs:complexType name="DataType">
1196 <xs:annotation>
1197 <xs:documentation>
1198 A type (in the computer language sense) associated with a
1199 parameter with an arbitrary name
1200 </xs:documentation>
1201 <xs:documentation>
1202 This XML type is used as a parent for defining data types
1203 with a restricted set of names.
1204 </xs:documentation>
1205 </xs:annotation>
1206 <xs:simpleContent>
1207 <xs:extension base="xs:token">
1208 <xs:attribute name="arraysize" type="vs:ArrayShape">
1209 <xs:annotation>
1210 <xs:documentation>
1211 The shape of the array that constitutes the value.
1212 </xs:documentation>
1213 <xs:documentation>
1214 Leave arraysize empty for scalar values. In version 1.1,
1215 this defaulted to 1, which was intended to indicate
1216 a scalar. This is now deprecated; an arraysize of 1 should
1217 be avoided now, the future interpretation, in accord with
1218 VOTable, will be “array of size 1”.
1219 </xs:documentation>
1220 </xs:annotation>
1221 </xs:attribute>
1222
1223 <xs:attribute name="delim" type="xs:string">
1224 <xs:annotation>
1225 <xs:documentation>
1226 A string that is used to delimit elements of an array
1227 value in InputParams.
1228 </xs:documentation>
1229 <xs:documentation>
1230 Unless specifically disallowed by the context,
1231 applications should allow optional spaces to
1232 appear in an actual data value before and after
1233 the delimiter (e.g., “1, 5” when delim=“,”).
1234 </xs:documentation>
1235 <xs:documentation>
1236 This should not be used for VOTable types; there,
1237 VOTable (typcially TABLEDATA) conventions for writing
1238 arrays are binding.
1239 </xs:documentation>
1240 </xs:annotation>
1241 </xs:attribute>
1242
1243 <xs:attribute name="extendedType" type="xs:string">
1244 <xs:annotation>
1245 <xs:documentation>
1246 The data value represented by this type can be
1247 interpreted as of a custom type identified by
1248 the value of this attribute.
1249 </xs:documentation>
1250 <xs:documentation>
1251 If an application does not recognize this
1252 extendedType, it should attempt to handle the value
1253 assuming the type given by the element's value.
1254 string is a recommended default type.
1255 </xs:documentation>
1256 <xs:documentation>
1257 This element may make use of the extendedSchema
1258 attribute to refine the identification of the
1259 type. extendedTypes without an extendedSchema
1260 mean VOTable xtypes as defined by DALI.
1261 </xs:documentation>
1262 </xs:annotation>
1263 </xs:attribute>
1264
1265 <xs:attribute name="extendedSchema" type="xs:anyURI">
1266 <xs:annotation>
1267 <xs:documentation>
1268 An identifier for the schema that the value given
1269 by the extended attribute is drawn from.
1270 </xs:documentation>
1271 <xs:documentation>
1272 This attribute is normally ignored if the
1273 extendedType attribute is not present. A missing
1274 extendedSchema indicates that extendedType is a
1275 VOTable xtype.
1276 </xs:documentation>
1277 </xs:annotation>
1278 </xs:attribute>
1279
1280 <xs:anyAttribute namespace="##other" />
1281 </xs:extension>
1282 </xs:simpleContent>
1283 </xs:complexType>
1284
1285 <!--
1286 - this definition is taken from the VOTable arrayDEF type
1287 -->
1288 <xs:simpleType name="ArrayShape">
1289 <xs:annotation>
1290 <xs:documentation>
1291 An expression of a the shape of a multi-dimensional array
1292 of the form LxNxM... where each value between gives the
1293 integer length of the array along a dimension. An
1294 asterisk (*) as the last dimension of the shape indicates
1295 that the length of the last axis is variable or
1296 undetermined.
1297 </xs:documentation>
1298 </xs:annotation>
1299
1300 <xs:restriction base="xs:token">
1301 <xs:pattern value="([0-9]+x)*[0-9]*[0-9*]"/>
1302 </xs:restriction>
1303 </xs:simpleType>
1304
1305 <xs:complexType name="SimpleDataType">
1306 <xs:annotation>
1307 <xs:documentation>
1308 A data type restricted to a small set of names which is
1309 imprecise as to the format of the individual values.
1310 </xs:documentation>
1311 <xs:documentation>
1312 This set is intended for describing simple input parameters to
1313 a service or function.
1314 </xs:documentation>
1315 </xs:annotation>
1316 <xs:simpleContent>
1317 <xs:restriction base="vs:DataType">
1318 <xs:enumeration value="integer"/>
1319 <xs:enumeration value="real"/>
1320 <xs:enumeration value="complex"/>
1321 <xs:enumeration value="boolean"/>
1322 <xs:enumeration value="char"/>
1323 <xs:enumeration value="string"/>
1324
1325 <xs:attribute name="arraysize" type="vs:ArrayShape">
1326 <xs:annotation>
1327 <xs:documentation>See vs:DataType.</xs:documentation>
1328 </xs:annotation>
1329 </xs:attribute>
1330 <xs:attribute name="delim" type="xs:string" default=" ">
1331 <xs:annotation>
1332 <xs:documentation>See vs:DataType.</xs:documentation>
1333 </xs:annotation>
1334 </xs:attribute>
1335 <xs:attribute name="extendedType" type="xs:string">
1336 <xs:annotation>
1337 <xs:documentation>See vs:DataType.</xs:documentation>
1338 </xs:annotation>
1339 </xs:attribute>
1340 <xs:attribute name="extendedSchema" type="xs:anyURI">
1341 <xs:annotation>
1342 <xs:documentation>See vs:DataType.</xs:documentation>
1343 </xs:annotation>
1344 </xs:attribute>
1345 <xs:anyAttribute namespace="##other" />
1346 </xs:restriction>
1347 </xs:simpleContent>
1348 </xs:complexType>
1349
1350 <xs:complexType name="TableDataType" abstract="true">
1351 <xs:annotation>
1352 <xs:documentation>
1353 An abstract parent for a class of data types that can be
1354 used to specify the data type of a table column.
1355 </xs:documentation>
1356 </xs:annotation>
1357 <xs:simpleContent>
1358 <xs:extension base="vs:DataType"/>
1359 </xs:simpleContent>
1360 </xs:complexType>
1361
1362 <xs:complexType name="VOTableType">
1363 <xs:annotation>
1364 <xs:documentation>
1365 A data type supported explicitly by the VOTable format
1366 </xs:documentation>
1367 </xs:annotation>
1368 <xs:simpleContent>
1369 <xs:restriction base="vs:TableDataType">
1370 <xs:enumeration value="boolean"/>
1371 <xs:enumeration value="bit"/>
1372 <xs:enumeration value="unsignedByte"/>
1373 <xs:enumeration value="short"/>
1374 <xs:enumeration value="int"/>
1375 <xs:enumeration value="long"/>
1376 <xs:enumeration value="char"/>
1377 <xs:enumeration value="unicodeChar"/>
1378 <xs:enumeration value="float"/>
1379 <xs:enumeration value="double"/>
1380 <xs:enumeration value="floatComplex"/>
1381 <xs:enumeration value="doubleComplex"/>
1382
1383 <xs:attribute name="arraysize" type="vs:ArrayShape">
1384 <xs:annotation>
1385 <xs:documentation>See vs:DataType.</xs:documentation>
1386 </xs:annotation>
1387 </xs:attribute>
1388 <xs:attribute name="delim" type="xs:string" default=" ">
1389 <xs:annotation>
1390 <xs:documentation>See vs:DataType.</xs:documentation>
1391 </xs:annotation>
1392 </xs:attribute>
1393 <xs:attribute name="extendedType" type="xs:string">
1394 <xs:annotation>
1395 <xs:documentation>See vs:DataType.</xs:documentation>
1396 </xs:annotation>
1397 </xs:attribute>
1398 <xs:attribute name="extendedSchema" type="xs:anyURI">
1399 <xs:annotation>
1400 <xs:documentation>See vs:DataType.</xs:documentation>
1401 </xs:annotation>
1402 </xs:attribute>
1403
1404 <xs:anyAttribute namespace="##other" />
1405 </xs:restriction>
1406 </xs:simpleContent>
1407 </xs:complexType>
1408
1409 <xs:complexType name="TAPDataType" abstract="true">
1410 <xs:annotation>
1411 <xs:documentation>
1412 An abstract parent for the specific data types supported
1413 by the Table Access Protocol.
1414 </xs:documentation>
1415 </xs:annotation>
1416 <xs:simpleContent>
1417 <xs:extension base="vs:TableDataType">
1418 <xs:attribute name="size" type="xs:positiveInteger">
1419 <xs:annotation>
1420 <xs:documentation>
1421 The length of the fixed-length value
1422 </xs:documentation>
1423 <xs:documentation>
1424 This corresponds to the size Column attribute in
1425 the TAP_SCHEMA and can be used with data types
1426 that are defined with a length (CHAR, BINARY).
1427 </xs:documentation>
1428 </xs:annotation>
1429 </xs:attribute>
1430 </xs:extension>
1431 </xs:simpleContent>
1432 </xs:complexType>
1433
1434 <xs:complexType name="TAPType">
1435 <xs:annotation>
1436 <xs:documentation>
1437 A data type supported explicitly by the Table Access
1438 Protocol (v1.0). This is deprecated in VODataService 1.2,
1439 and even TAP 1.0 services are encouraged to declare
1440 their columns using VOTableType.
1441 </xs:documentation>
1442 </xs:annotation>
1443 <xs:simpleContent>
1444 <xs:restriction base="vs:TAPDataType">
1445 <xs:enumeration value="BOOLEAN"/>
1446 <xs:enumeration value="SMALLINT"/>
1447 <xs:enumeration value="INTEGER"/>
1448 <xs:enumeration value="BIGINT"/>
1449 <xs:enumeration value="REAL"/>
1450 <xs:enumeration value="DOUBLE"/>
1451 <xs:enumeration value="TIMESTAMP"/>
1452 <xs:enumeration value="CHAR"/>
1453 <xs:enumeration value="VARCHAR"/>
1454 <xs:enumeration value="BINARY"/>
1455 <xs:enumeration value="VARBINARY"/>
1456 <xs:enumeration value="POINT"/>
1457 <xs:enumeration value="REGION"/>
1458 <xs:enumeration value="CLOB"/>
1459 <xs:enumeration value="BLOB"/>
1460
1461 <xs:attribute name="arraysize" type="vs:ArrayShape"/>
1462 <xs:attribute name="delim" type="xs:string" default=" "/>
1463 <xs:attribute name="extendedType" type="xs:string"/>
1464 <xs:attribute name="extendedSchema" type="xs:anyURI"/>
1465 <xs:attribute name="size" type="xs:positiveInteger"/>
1466 <xs:anyAttribute namespace="##other" />
1467 </xs:restriction>
1468 </xs:simpleContent>
1469 </xs:complexType>
1470
1471 <xs:complexType name="StandardSTC">
1472 <xs:annotation>
1473 <xs:documentation>
1474 A description of standard space-time coordinate systems,
1475 positions, and regions.
1476 </xs:documentation>
1477 <xs:documentation>
1478 This resource type is deprecated, and no resource records
1479 of this type exist in the Registry. It will be removed
1480 in version 1.3 of VODataService.
1481 </xs:documentation>
1482 </xs:annotation>
1483
1484 <xs:complexContent>
1485 <xs:extension base="vr:Resource">
1486 <xs:sequence>
1487
1488 <xs:element name="stcDefinitions"
1489 type="stc:stcDescriptionType"
1490 minOccurs="1" maxOccurs="unbounded">
1491 <xs:annotation>
1492 <xs:documentation>
1493 An STC description of coordinate systems,
1494 positions, and/or regions
1495 </xs:documentation>
1496 <xs:documentation>
1497 Each system, position, and region description
1498 should have a an XML ID assigned to it.
1499 </xs:documentation>
1500 <xs:documentation>
1501 Because the STC schema sets
1502 elementFormDefault="qualified", it is
1503 recommended that this element specify the STC
1504 default namespace via an xmlns namespace.
1505 </xs:documentation>
1506 </xs:annotation>
1507 </xs:element>
1508
1509 </xs:sequence>
1510 </xs:extension>
1511 </xs:complexContent>
1512 </xs:complexType>
1513
1514 <xs:complexType name="ForeignKey">
1515 <xs:annotation>
1516 <xs:documentation>
1517 A description of the mapping a foreign key -- a set of
1518 columns from one table -- to columns in another table.
1519 </xs:documentation>
1520 <xs:documentation>
1521 When foreign keys are declared in this way, clients can expect
1522 that joins constrained with the foreign keys are preformed
1523 efficiently (e.g., using an index).
1524 </xs:documentation>
1525 </xs:annotation>
1526
1527 <xs:sequence>
1528
1529 <xs:element name="targetTable" type="xs:token">
1530 <xs:annotation>
1531 <xs:documentation>
1532 The fully qualified name (including catalogue and schema, as
1533 applicable) of the table that can be joined with the
1534 table containing this foreign key.
1535 </xs:documentation>
1536 </xs:annotation>
1537 </xs:element>
1538
1539 <xs:element name="fkColumn" type="vs:FKColumn"
1540 minOccurs="1" maxOccurs="unbounded">
1541 <xs:annotation>
1542 <xs:documentation>
1543 A pair of column names, one from this table and one
1544 from the target table that should be used to join the
1545 tables in a query.
1546 </xs:documentation>
1547 </xs:annotation>
1548 </xs:element>
1549
1550 <xs:element name="description" type="xs:token" minOccurs="0">
1551 <xs:annotation>
1552 <xs:documentation>
1553 A free-text description of what this key points to
1554 and what the relationship means.
1555 </xs:documentation>
1556 </xs:annotation>
1557 </xs:element>
1558
1559 <xs:element name="utype" type="xs:token" minOccurs="0">
1560 <xs:annotation>
1561 <xs:documentation>
1562 An identifier for a concept in a data model that
1563 the association enabled by this key represents.
1564 </xs:documentation>
1565 <xs:documentation>
1566 The form of the utype string depends on the data
1567 model; common forms are sequences of dotted identifiers
1568 (e.g., in SSA) or URIs (e.g., in RegTAP).
1569 </xs:documentation>
1570 </xs:annotation>
1571 </xs:element>
1572
1573 </xs:sequence>
1574 </xs:complexType>
1575
1576 <xs:complexType name="FKColumn">
1577 <xs:annotation>
1578 <xs:documentation>
1579 A pair of columns that are used to join two tables.
1580 </xs:documentation>
1581 <xs:documentation>
1582 To do an inner join of data from the two tables, a query should
1583 include a constraint that sets the value from the first column equal
1584 to the value in the second column.
1585 </xs:documentation>
1586 <xs:documentation>
1587 This type assumes that it is used in the context of
1588 implied source (i.e., current) and target tables, as in
1589 the ForeignKey type's fkColumn.
1590 </xs:documentation>
1591 </xs:annotation>
1592
1593 <xs:sequence>
1594 <xs:element name="fromColumn" type="xs:token">
1595 <xs:annotation>
1596 <xs:documentation>
1597 The unqualified name of the column from the current table.
1598 </xs:documentation>
1599 </xs:annotation>
1600 </xs:element>
1601
1602 <xs:element name="targetColumn" type="xs:token">
1603 <xs:annotation>
1604 <xs:documentation>
1605 The unqualified name of the column from the target table.
1606 </xs:documentation>
1607 </xs:annotation>
1608 </xs:element>
1609
1610 </xs:sequence>
1611 </xs:complexType>
1612
1613 <xs:simpleType name="FloatInterval">
1614 <xs:annotation>
1615 <xs:documentation>
1616 An interval of floating point numbers.
1617 </xs:documentation>
1618 <xs:documentation>
1619 This uses VOTable TABLEDATA serialisation, i.e., simply
1620 a pair of XSD floating point numbers separated by whitespace;
1621 note that software utilising non-XSD aware parsers has to
1622 perform whitespace normalisation itself here (in particular,
1623 for the internal whitespace).
1624 </xs:documentation>
1625 </xs:annotation>
1626 <xs:restriction base="xs:token">
1627 <xs:pattern value="[+-]?([0-9]+\.?[0-9]*|\.[0-9]+)([eE][+-]?[0-9]+)? [+-]?([0-9]+\.?[0-9]*|\.[0-9]+)([eE][+-]?[0-9]+)?"/>
1628 </xs:restriction>
1629 </xs:simpleType>
1630 </xs:schema>
1631 <!-- vim: et:sw=3:ts=3:sta
1632 -->