Debian Codegraph @

gavo/resources/schemata/SIA.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
4 xmlns:sia="http://www.ivoa.net/xml/SIA/v1.1"
5 xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1"
6 targetNamespace="http://www.ivoa.net/xml/SIA/v1.1"
7 elementFormDefault="unqualified" attributeFormDefault="unqualified"
8 version="1.2">
9
10 <xs:annotation>
11 <xs:appinfo>
12 <vm:schemaName>SIA</vm:schemaName>
13 <vm:schemaPrefix>xs</vm:schemaPrefix>
14 <vm:targetPrefix>sia</vm:targetPrefix>
15 </xs:appinfo>
16 <xs:documentation>
17 Implementation of an XML Schema describing a Simple Image
18 Access Service. Based on the Simple Image Access Specification
19 by Doug Tody et al.
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
26 <xs:complexType name="SimpleImageAccess">
27 <xs:annotation>
28 <xs:documentation>
29 The capabilities of an SIA implementation.
30 </xs:documentation>
31 </xs:annotation>
32
33 <xs:complexContent>
34 <xs:extension base="vr:Capability">
35 <xs:sequence>
36 <xs:element name="imageServiceType" type="sia:ImageServiceType">
37 <xs:annotation>
38 <xs:documentation>
39 The class of image service: Cutout, Mosaic, Atlas, Pointed
40 </xs:documentation>
41 </xs:annotation>
42 </xs:element>
43
44 <xs:element name="maxQueryRegionSize" type="sia:SkySize"
45 minOccurs="0" maxOccurs="1">
46 <xs:annotation>
47 <xs:documentation>
48 The maximum image query region size, expressed in
49 decimal degrees. Not providing this element or
50 specifying a value of 360 degrees indicates that
51 there is no limit and the entire data collection
52 (entire sky) can be queried.
53 </xs:documentation>
54 <xs:documentation>
55 Not providing a value is the preferred way to indicate
56 that there is no limit.
57 </xs:documentation>
58 </xs:annotation>
59 </xs:element>
60
61 <xs:element name="maxImageExtent" type="sia:SkySize"
62 minOccurs="0" maxOccurs="1">
63 <xs:annotation>
64 <xs:documentation>
65 An upper bound on a region of the sky that can
66 be covered by returned images. That is, no image
67 returned by this service will cover more than
68 this limit. Not providing this element or
69 specifying a value of 360 degrees indicates that
70 there is no fundamental limit to the region covered
71 by a returned image.
72 </xs:documentation>
73 <xs:documentation>
74 When the imageServiceType is “Cutout” or “Mosaic”,
75 this represents the largest area that can be requested.
76 In this case, the “no limit” value means that all-sky
77 images can be requested. When the type is “Atlas” or
78 “Pointed”, it should be a region that most closely
79 encloses largest images in the archive, and the ”no
80 limit” value means that the archive contains all-sky
81 (or nearly so) images.
82 </xs:documentation>
83 <xs:documentation>
84 Not providing a value is the preferred way to indicate
85 that there is no limit.
86 </xs:documentation>
87 </xs:annotation>
88 </xs:element>
89
90 <xs:element name="maxImageSize" type="xs:positiveInteger"
91 minOccurs="0" maxOccurs="1">
92 <xs:annotation>
93 <xs:documentation>
94 A measure of the largest image the service
95 can produce given as the maximum number of
96 pixels along the first or second axes.
97 Not providing a value indicates that there is
98 no effective limit to the size of the images
99 that can be returned.
100 </xs:documentation>
101 <xs:documentation>
102 This is primarily relevant when the imageServiceType
103 is “Cutout” or “Mosaic”, indicating the largest
104 image that can be created. When the imageServiceType
105 is “Atlas” or “Pointed”, this should be specified only
106 when there are static images in the archive that can
107 be searched for but not returned because they are
108 too big.
109 </xs:documentation>
110 <xs:documentation>
111 When a service is more fundamentally limited
112 by the total number of pixels in the image, this
113 value should be set to the square-root of that
114 number. This number will then represent a
115 lower limit on the maximum length of a side.
116 </xs:documentation>
117 </xs:annotation>
118 </xs:element>
119
120 <xs:element name="maxFileSize" type="xs:positiveInteger"
121 minOccurs="0" maxOccurs="1">
122 <xs:annotation>
123 <xs:documentation>
124 The maximum image file size in bytes. Not providing
125 a value indicates that there is no effective limit
126 the size of files that can be returned.
127 </xs:documentation>
128 <xs:documentation>
129 This is primarily relevant when the imageServiceType
130 is “Cutout” or “Mosaic”, indicating the largest
131 files that can be created. When the imageServiceType
132 is “Atlas” or “Pointed”, this should be specified only
133 when there are static images in the archive that can
134 be searched for but not returned because they are
135 too big.
136 </xs:documentation>
137 </xs:annotation>
138 </xs:element>
139
140 <xs:element name="maxRecords" type="xs:positiveInteger"
141 minOccurs="0" maxOccurs="1">
142 <xs:annotation>
143 <xs:documentation>
144 The largest number of records that the Image Query web
145 method will return. Not providing this value means that
146 there is no effective limit.
147 </xs:documentation>
148 <xs:documentation>
149 This does not refer to the total number of images in
150 the archive but rather maximum number of records the
151 service is capable of returning. A limit that is
152 greater than the number of images available in the
153 archive is equivalent to their being no effective
154 limit. (See RM, Hanisch 2007.)
155 </xs:documentation>
156 </xs:annotation>
157 </xs:element>
158
159 <xs:element name="testQuery" type="sia:Query"
160 minOccurs="0" maxOccurs="1">
161 <xs:annotation>
162 <xs:documentation>
163 a set of query parameters that is expected
164 to produce at least one matched record which
165 can be used to test the service.
166 </xs:documentation>
167 </xs:annotation>
168 </xs:element>
169
170 </xs:sequence>
171 </xs:extension>
172 </xs:complexContent>
173 </xs:complexType>
174
175 <xs:complexType name="SkySize">
176 <xs:sequence>
177 <xs:element name="long" type="xs:double">
178 <xs:annotation>
179 <xs:documentation>
180 The maximum size in the longitude (R.A.) direction
181 given in degrees
182 </xs:documentation>
183 </xs:annotation>
184 </xs:element>
185 <xs:element name="lat" type="xs:double">
186 <xs:annotation>
187 <xs:documentation>
188 The maximum size in the latitude (Dec.) direction
189 given in degrees
190 </xs:documentation>
191 </xs:annotation>
192 </xs:element>
193 </xs:sequence>
194 </xs:complexType>
195
196 <xs:complexType name="SkyPos">
197 <xs:sequence>
198 <xs:element name="long" type="xs:double">
199 <xs:annotation>
200 <xs:documentation>
201 The sky position in the longitude (R.A.) direction
202 </xs:documentation>
203 </xs:annotation>
204 </xs:element>
205 <xs:element name="lat" type="xs:double">
206 <xs:annotation>
207 <xs:documentation>
208 The sky position in the latitude (Dec.) direction
209 </xs:documentation>
210 </xs:annotation>
211 </xs:element>
212 </xs:sequence>
213 </xs:complexType>
214
215 <xs:simpleType name="ImageServiceType">
216 <xs:annotation>
217 <xs:documentation>
218 The class of image service: Cutout, Mosaic, Atlas, Pointed
219 </xs:documentation>
220 </xs:annotation>
221
222 <xs:restriction base="xs:token">
223
224 <xs:enumeration value="Cutout">
225 <xs:annotation>
226 <xs:documentation>
227 This is a service which extracts or “cuts out” rectangular
228 regions of some larger image, returning an image of the
229 requested size to the client. Such images are usually drawn
230 from a database or a collection of survey images that cover
231 some large portion of the sky. To be considered a cutout
232 service, the returned image should closely approximate (or at
233 least not exceed) the size of the requested region; however,
234 a cutout service will not normally resample (rescale or
235 reproject) the pixel data. A cutout service may mosaic image
236 segments to cover a large region but is still considered a
237 cutout service if it does not resample the data. Image
238 cutout services are fast and avoid image degradation due to
239 resampling.
240 </xs:documentation>
241 </xs:annotation>
242 </xs:enumeration>
243
244 <xs:enumeration value="Mosaic">
245 <xs:annotation>
246 <xs:documentation>
247 This service is similar to the image cutout service
248 but adds the capability to compute an image of the
249 size, scale, and projection specified by the
250 client. Mosaic services include services which
251 resample and reproject existing image data, as well
252 as services which generate pixels from some more
253 fundamental dataset, e.g., a high energy event list
254 or a radio astronomy measurement set. Image mosaics
255 can be expensive to generate for large regions but
256 they make it easier for the client to overlay image
257 data from different sources. Image mosaicing
258 services which resample already pixelated data will
259 degrade the data slightly, unlike the simpler cutout
260 service which returns the data unchanged.
261 </xs:documentation>
262 </xs:annotation>
263 </xs:enumeration>
264
265 <xs:enumeration value="Atlas">
266 <xs:annotation>
267 <xs:documentation>
268 This category of service provides access to
269 pre-computed images that make up a survey of some
270 large portion of the sky. The service, however, is
271 not capable of dynamically cutting out requested
272 regions, and the size of atlas images is
273 predetermined by the survey. Atlas images may range
274 in size from small cutouts of extended objects to
275 large calibrated survey data frames.
276 </xs:documentation>
277 </xs:annotation>
278 </xs:enumeration>
279
280 <xs:enumeration value="Pointed">
281 <xs:annotation>
282 <xs:documentation>
283 This category of service provides access to
284 collections of images of many small, “pointed”
285 regions of the sky. “Pointed” images normally focus
286 on specific sources in the sky as opposed to being
287 part of a sky survey. This type of service usually
288 applies to instrumental archives from observatories
289 with guest observer programs (e.g., the HST archive)
290 and other general purpose image archives (e.g., the
291 ADIL). If a service provides access to both survey
292 and pointed images, then it should be considered a
293 Pointed Image Archive for the purposes of this
294 specification; if a differentiation between the
295 types of data is desired the pointed and survey data
296 collections should be registered as separate image
297 services.
298 </xs:documentation>
299 </xs:annotation>
300 </xs:enumeration>
301
302 </xs:restriction>
303 </xs:simpleType>
304
305 <xs:complexType name="Query">
306 <xs:annotation>
307 <xs:documentation>
308 A query to be sent to the service
309 </xs:documentation>
310 </xs:annotation>
311
312 <xs:sequence>
313 <xs:element name="pos" type="sia:SkyPos" minOccurs="0">
314 <xs:annotation>
315 <xs:documentation>
316 the center position of the rectangular region that
317 should be used as part of the query to the SIA service.
318 </xs:documentation>
319 </xs:annotation>
320 </xs:element>
321
322 <xs:element name="size" type="sia:SkySize" minOccurs="0">
323 <xs:annotation>
324 <xs:documentation>
325 the rectangular size of the region that should be
326 used as part of the query to the SIA service.
327 </xs:documentation>
328 </xs:annotation>
329 </xs:element>
330
331 <xs:element name="verb" type="xs:positiveInteger" minOccurs="0">
332 <xs:annotation>
333 <xs:documentation>
334 the verbosity level to use where 0 means the bare
335 minimum set of columns and 3 means the full set of
336 available columns.
337 </xs:documentation>
338 </xs:annotation>
339 </xs:element>
340
341 <xs:element name="extras" type="xs:string" minOccurs="0">
342 <xs:annotation>
343 <xs:documentation>
344 any extra (particularly non-standard) parameters that must
345 be provided (apart from what is part of base URL given by
346 the accessURL element).
347 </xs:documentation>
348 <xs:documentation>
349 this value should be in the form of name=value
350 pairs delimited with ampersands (&amp;).
351 </xs:documentation>
352 </xs:annotation>
353 </xs:element>
354
355 </xs:sequence>
356
357 </xs:complexType>
358
359 </xs:schema>