Debian Codegraph @

gavo/resources/schemata/SLAP.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:slap="http://www.ivoa.net/xml/SLAP/v1.0"
5 xmlns:vm="http://www.ivoa.net/xml/VOMetadata/v0.1"
6 targetNamespace="http://www.ivoa.net/xml/SLAP/v1.0"
7 elementFormDefault="unqualified" attributeFormDefault="unqualified"
8 version="1.1">
9
10 <!--
11 First version 09/09/09
12 Authors: Jesus Salgado/Aurelien Stebe (ESAVO)
13 -->
14 <xs:annotation>
15 <xs:appinfo>
16 <vm:schemaName>SLAP</vm:schemaName>
17 <vm:schemaPrefix>xs</vm:schemaPrefix>
18 <vm:targetPrefix>slap</vm:targetPrefix>
19 </xs:appinfo>
20 <xs:documentation>
21 XML Schema used to describe the capabilities of a service instance
22 conforming to the Simple Line Access Protocol (SLAP).
23 </xs:documentation>
24 </xs:annotation>
25
26 <xs:import namespace="http://www.ivoa.net/xml/VOResource/v1.0"
27 schemaLocation="http://docs.g-vo.org/schemata/VOResource.xsd"/>
28
29 <!-- SLAP Capabilities -->
30 <xs:complexType name="SimpleLineAccess">
31 <xs:annotation>
32 <xs:documentation>
33 The capabilities of an SLAP service implementation.
34 </xs:documentation>
35 </xs:annotation>
36
37 <xs:complexContent>
38 <xs:extension base="vr:Capability">
39 <xs:sequence>
40
41 <xs:element name="complianceLevel" type="slap:ComplianceLevel">
42 <xs:annotation>
43 <xs:documentation>
44 The category indicating the level to which this
45 service instance complies with the SLAP standard.
46 </xs:documentation>
47 <xs:documentation>
48 Allowed values are "minimal" and "full".
49 See definitions of allowed values for details.
50 </xs:documentation>
51 </xs:annotation>
52 </xs:element>
53
54 <xs:element name="dataSource" type="slap:DataSource">
55 <xs:annotation>
56 <xs:documentation>
57 The category specifying where the data accessed by
58 the service originally came from.
59 </xs:documentation>
60 <xs:documentation>
61 Allowed values are "observational/astrophysical",
62 "observational/laboratory", "theoretical"
63 </xs:documentation>
64 </xs:annotation>
65 </xs:element>
66
67 <xs:element name="maxRecords" type="xs:positiveInteger"
68 minOccurs="0" maxOccurs="1">
69 <xs:annotation>
70 <xs:documentation>
71 The hard limit on the largest number of records that
72 the query operation will return in a single response.
73 Not providing this value means that there is no
74 effective limit.
75 </xs:documentation>
76 <xs:documentation>
77 This does not refer to the total number of spectra in
78 the archive but rather maximum number of records the
79 service is capable of returning. A limit that is
80 greater than the number of spectra available in the
81 archive is equivalent to their being no effective
82 limit. (See RM, Hanisch 2007.)
83 </xs:documentation>
84 </xs:annotation>
85 </xs:element>
86
87 <xs:element name="testQuery" type="slap:Query"
88 minOccurs="0" maxOccurs="1">
89 <xs:annotation>
90 <xs:documentation>
91 A set of queryData parameters that is expected to
92 produce at least one matched record which can be
93 used to test the service.
94 </xs:documentation>
95 <xs:documentation>
96 The value should include all parameters required
97 for the test query but should exclude the baseURL
98 and the REQUEST parameter.
99 </xs:documentation>
100 </xs:annotation>
101 </xs:element>
102
103 </xs:sequence>
104 </xs:extension>
105 </xs:complexContent>
106 </xs:complexType>
107
108 <xs:simpleType name="ComplianceLevel">
109 <xs:annotation>
110 <xs:documentation>
111 The allowed values for indicating the level at which a service
112 instance complies with the SLAP standard.
113 </xs:documentation>
114 </xs:annotation>
115
116 <xs:restriction base="xs:token">
117 <xs:enumeration value="minimal">
118 <xs:annotation>
119 <xs:documentation>
120 The service supports all of the capabilities and features
121 of the SLAP protocol identified as "must" in the
122 specification.
123 </xs:documentation>
124 <xs:documentation>
125 In brief, this includes:
126 * implementing the GET interface,
127 * WAVELENGTH, REQUEST for input query,
128 * ssldm:Line.wavelength.value and ssldm:Line.title for output
129 fields
130 * supports the "FORMAT=METADATA" metadata query.
131 </xs:documentation>
132 </xs:annotation>
133 </xs:enumeration>
134
135 <xs:enumeration value="full">
136 <xs:annotation>
137 <xs:documentation>
138 The service supports, at a minimum, all of the capabilities
139 and features of the SLAP protocol identified as "must" or
140 "should" in the specification.
141 </xs:documentation>
142 </xs:annotation>
143 </xs:enumeration>
144 </xs:restriction>
145 </xs:simpleType>
146
147 <xs:simpleType name="DataSource">
148 <xs:annotation>
149 <xs:documentation>
150 The defined categories that specify where the line data
151 originally came from, i.e., the type of data collections to
152 which the service provides access.
153 </xs:documentation>
154 </xs:annotation>
155
156 <xs:restriction base="xs:token">
157 <xs:enumeration value="observational/astrophysical">
158 <xs:annotation>
159 <xs:documentation>
160 Lines observed and identified in real spectra of
161 astrophysical observations by different
162 instrument/projects
163 </xs:documentation>
164 </xs:annotation>
165 </xs:enumeration>
166
167 <xs:enumeration value="observational/laboratory">
168 <xs:annotation>
169 <xs:documentation>
170 Lines observed and identified in real spectra of
171 laboratory measurements
172 </xs:documentation>
173 </xs:annotation>
174 </xs:enumeration>
175
176 <xs:enumeration value="theoretical">
177 <xs:annotation>
178 <xs:documentation>
179 Servers containing theoretical spectral lines
180 </xs:documentation>
181 </xs:annotation>
182 </xs:enumeration>
183
184 </xs:restriction>
185 </xs:simpleType>
186
187 <xs:complexType name="Query">
188 <xs:annotation>
189 <xs:documentation>
190 A query to be sent to the service, e.g., a test query.
191 </xs:documentation>
192 </xs:annotation>
193
194 <xs:sequence>
195 <xs:element name="wavelength" type="slap:WavelengthRange" minOccurs="0">
196 <xs:annotation>
197 <xs:documentation>
198 Spectral range in meters to be used to constrain the query
199 of spectral lines.
200 </xs:documentation>
201 </xs:annotation>
202 </xs:element>
203
204 <xs:element name="queryDataCmd" type="xs:string" minOccurs="0">
205 <xs:annotation>
206 <xs:documentation>
207 Fully specified queryData test query formatted as an URL
208 argument list in the syntax specified by the SLAP standard.
209 The list must exclude the REQUEST argument which is
210 assumed to be set to "queryData". VERSION may be
211 included if the test query applies to a specific version
212 of the service protocol.
213 </xs:documentation>
214 <xs:documentation>
215 If queryDataCmd is used to form a query, the default
216 value of WAVELENGTH specified above is not
217 used; if the test query requires WAVELENGTH it
218 should be included directly in queryDataCmd.
219 </xs:documentation>
220 <xs:documentation>
221 This value must be a string in the form of name=value
222 pairs delimited with ampersands (&amp;). A query may
223 then be formed by appending to the baseURL the request
224 argument, "REQUEST=queryData&amp;", followed by the
225 contents of this element.
226 </xs:documentation>
227 </xs:annotation>
228 </xs:element>
229 </xs:sequence>
230 </xs:complexType>
231
232 <xs:complexType name="WavelengthRange">
233 <xs:annotation>
234 <xs:documentation>
235 Spectral range in meters to be used to constrain the query
236 of spectral lines
237 </xs:documentation>
238 </xs:annotation>
239
240 <xs:sequence>
241 <xs:element name="minWavelength" type="xs:double" minOccurs="0">
242 <xs:annotation>
243 <xs:documentation>
244 Minimum wavelength in meters to be used to constrain the query
245 of spectral lines
246 </xs:documentation>
247 </xs:annotation>
248 </xs:element>
249
250 <xs:element name="maxWavelength" type="xs:double" minOccurs="0">
251 <xs:annotation>
252 <xs:documentation>
253 Maximum wavelength in meters to be used to constrain the query
254 of spectral lines
255 </xs:documentation>
256 </xs:annotation>
257 </xs:element>
258 </xs:sequence>
259 </xs:complexType>
260
261 </xs:schema>