/[volute]/trunk/projects/dm/vo-dml/models-xsd/ivoa.types.xsd
ViewVC logotype

Contents of /trunk/projects/dm/vo-dml/models-xsd/ivoa.types.xsd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2574 - (show annotations)
Fri May 2 10:45:18 2014 UTC (7 years, 4 months ago) by gerard.lemson
File size: 14644 byte(s)
firct commit of some xsd-s generated form vo-dml

1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:map="http://volute.googlecode.com/dm/vo-dml-mapping/v0.9"
3 xmlns:vo-dml="http://volute.googlecode.com/dm/vo-dml/v0.9"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5 xmlns:ivoa="http://volute.googlecode.com/dm/vo-dml-mapping/v0.9/xsd/ivoa"
6 xmlns:vodml-base="http://www.ivoa.net/xml/vo-dml/xsd/base/v0.1"
7 targetNamespace="http://volute.googlecode.com/dm/vo-dml-mapping/v0.9/xsd/ivoa">
8 <xsd:import namespace="http://www.ivoa.net/xml/vo-dml/xsd/base/v0.1"
9 schemaLocation="https://volute.googlecode.com/svn/trunk/projects/dm/vo-dml/xsd/vodml-base.xsd"/>
10 <xsd:complexType name="Identity">
11 <xsd:annotation>
12 <xsd:documentation>This datatype represents an identifier for an object in the data model. It consists of 3 attributes that each are assumed to work in a particular context or representation of a data model instance.</xsd:documentation>
13 <xsd:appinfo>
14 <vo-dml:utype>Identity</vo-dml:utype>
15 </xsd:appinfo>
16 </xsd:annotation>
17 <xsd:sequence>
18 <xsd:element name="id" type="xsd:integer" minOccurs="0" maxOccurs="1">
19 <xsd:annotation>
20 <xsd:documentation>The id attribute is assumed to represent an object in a database storing instances of the data model. </xsd:documentation>
21 <xsd:appinfo>
22 <vo-dml:utype>Identity.id</vo-dml:utype>
23 </xsd:appinfo>
24 </xsd:annotation>
25 </xsd:element>
26 <xsd:element name="xmlId" type="xsd:string" minOccurs="0" maxOccurs="1">
27 <xsd:annotation>
28 <xsd:documentation>This attribute is used to support identifing of and referring to an object in an XML document using the ID/IDREF mechanism.</xsd:documentation>
29 <xsd:appinfo>
30 <vo-dml:utype>Identity.xmlId</vo-dml:utype>
31 </xsd:appinfo>
32 </xsd:annotation>
33 </xsd:element>
34 <xsd:element name="ivoId" type="xsd:anyURI" minOccurs="0" maxOccurs="1">
35 <xsd:annotation>
36 <xsd:documentation>The ivoId attribute is assumed to represent an object in a database following the design of the data model and accessible through a standardised registration and discovery protocols.
37 It is assumed to be unique within the IVOA and its format follows (a generalisation of) the IVO Resource Identifier standard (see http://www.ivoa.net/Documents/REC/Identifiers/Identifiers-20070302.html).
38 Since the ivoId is assumed to represent the resource as registered in a standard database for the data model, it is assumed to be allocated by such a database service. This is in contrast to the use of the IVO Identifier in resource registries, where the id is assumed to be allocated by the publisher. We have the publisherDID attribute for that purpose. Also in contrast to that usage is the fact that each object in the model is assigned this identifier, not only the root resources.
39 We suggest as algorithm for assigning these ivoId to use as root the ivoId of the registered database service, and to append to this a # then the UTYPE of the element and finally its id attribute, separetd from the UTYPE by a forward slash.</xsd:documentation>
40 <xsd:appinfo>
41 <vo-dml:utype>Identity.ivoId</vo-dml:utype>
42 </xsd:appinfo>
43 </xsd:annotation>
44 </xsd:element>
45 <xsd:element name="publisherDID" type="xsd:anyURI" minOccurs="0" maxOccurs="1">
46 <xsd:annotation>
47 <xsd:documentation>This attribute identifies an element in the context of the publisher.
48 It is supposed to be unique in the IVO context and should likely be constrained to have the publisher's authority IVO id. This may need to be rediscussed when protocols for accessing a database built around a data model are to be designed.</xsd:documentation>
49 <xsd:appinfo>
50 <vo-dml:utype>Identity.publisherDID</vo-dml:utype>
51 </xsd:appinfo>
52 </xsd:annotation>
53 </xsd:element>
54 </xsd:sequence>
55 </xsd:complexType>
56
57 <xsd:complexType name="rational">
58 <xsd:annotation>
59 <xsd:documentation>A rational number from Q, represented by two integers, a numerator and a denominator. A native mapping to a serialisation context does in general not exists.</xsd:documentation>
60 <xsd:appinfo>
61 <vo-dml:utype>rational</vo-dml:utype>
62 </xsd:appinfo>
63 </xsd:annotation>
64 <xsd:sequence>
65 <xsd:element name="numerator" type="xsd:integer" minOccurs="1" maxOccurs="1">
66 <xsd:annotation>
67 <xsd:documentation>The numerator of the quotient defining the rational.</xsd:documentation>
68 <xsd:appinfo>
69 <vo-dml:utype>rational.numerator</vo-dml:utype>
70 </xsd:appinfo>
71 </xsd:annotation>
72 </xsd:element>
73 <xsd:element name="denominator" type="xsd:integer" minOccurs="1" maxOccurs="1">
74 <xsd:annotation>
75 <xsd:documentation>The denominator of the rational. Must be greater than 0.</xsd:documentation>
76 <xsd:appinfo>
77 <vo-dml:utype>rational.denominator</vo-dml:utype>
78 </xsd:appinfo>
79 </xsd:annotation>
80 </xsd:element>
81 </xsd:sequence>
82 </xsd:complexType>
83
84 <xsd:complexType name="complex">
85 <xsd:annotation>
86 <xsd:documentation>Represents a complex number, consisting of a real and imaginary component, both of which are reals. Note that in many contexts there is no native mapping for this type and it must be treated with a custom mapping.</xsd:documentation>
87 <xsd:appinfo>
88 <vo-dml:utype>complex</vo-dml:utype>
89 </xsd:appinfo>
90 </xsd:annotation>
91 <xsd:sequence>
92 <xsd:element name="re" type="xsd:float" minOccurs="1" maxOccurs="1">
93 <xsd:annotation>
94 <xsd:documentation>The real part of the complex number.</xsd:documentation>
95 <xsd:appinfo>
96 <vo-dml:utype>complex.re</vo-dml:utype>
97 </xsd:appinfo>
98 </xsd:annotation>
99 </xsd:element>
100 <xsd:element name="im" type="xsd:float" minOccurs="1" maxOccurs="1">
101 <xsd:annotation>
102 <xsd:documentation>The imaginary part of the complex number.</xsd:documentation>
103 <xsd:appinfo>
104 <vo-dml:utype>complex.im</vo-dml:utype>
105 </xsd:appinfo>
106 </xsd:annotation>
107 </xsd:element>
108 </xsd:sequence>
109 </xsd:complexType>
110
111 <xsd:complexType name="duration">
112 <xsd:annotation>
113 <xsd:documentation>Represents an interval of time from beginning to end. Is not equivalent to a simple real value indicating the number of seconds (for example). In general a custom mapping to a particular serialisation context must be provided.</xsd:documentation>
114 <xsd:appinfo>
115 <vo-dml:utype>duration</vo-dml:utype>
116 </xsd:appinfo>
117 </xsd:annotation>
118 <xsd:sequence>
119 <xsd:element name="_from" type="xsd:dateTime" minOccurs="1" maxOccurs="1">
120 <xsd:annotation>
121 <xsd:documentation>
122 TODO : Missing description : please, update your UML model asap.
123 </xsd:documentation>
124 <xsd:appinfo>
125 <vo-dml:utype>duration._from</vo-dml:utype>
126 </xsd:appinfo>
127 </xsd:annotation>
128 </xsd:element>
129 <xsd:element name="_to" type="xsd:dateTime" minOccurs="1" maxOccurs="1">
130 <xsd:annotation>
131 <xsd:documentation>
132 TODO : Missing description : please, update your UML model asap.
133 </xsd:documentation>
134 <xsd:appinfo>
135 <vo-dml:utype>duration._to</vo-dml:utype>
136 </xsd:appinfo>
137 </xsd:annotation>
138 </xsd:element>
139 </xsd:sequence>
140 </xsd:complexType>
141
142 <xsd:complexType name="quantity.AtomicValue" abstract="true">
143 <xsd:annotation>
144 <xsd:documentation>
145 TODO : Missing description : please, update your UML model asap.
146 </xsd:documentation>
147 <xsd:appinfo>
148 <vo-dml:utype>quantity.AtomicValue</vo-dml:utype>
149 </xsd:appinfo>
150 </xsd:annotation>
151 <xsd:sequence>
152 <xsd:element name="ucd" type="xsd:string" minOccurs="0" maxOccurs="1">
153 <xsd:annotation>
154 <xsd:documentation>This attribute should hold on to a valid UCD.
155 For that purpose the attribute isa skosconcept, but a proper SKOS vocabulary for UCDs would be required to formalize this further.</xsd:documentation>
156 <xsd:appinfo>
157 <vo-dml:utype>quantity.AtomicValue.ucd</vo-dml:utype>
158 </xsd:appinfo>
159 </xsd:annotation>
160 </xsd:element>
161 </xsd:sequence>
162 </xsd:complexType>
163
164 <xsd:complexType name="quantity.BooleanValue">
165 <xsd:annotation>
166 <xsd:documentation>
167 TODO : Missing description : please, update your UML model asap.
168 </xsd:documentation>
169 <xsd:appinfo>
170 <vo-dml:utype>quantity.BooleanValue</vo-dml:utype>
171 </xsd:appinfo>
172 </xsd:annotation>
173 <xsd:complexContent>
174 <xsd:extension base="ivoa:quantity.AtomicValue">
175 <xsd:sequence>
176 <xsd:element name="value" type="xsd:boolean" minOccurs="1" maxOccurs="1">
177 <xsd:annotation>
178 <xsd:documentation>
179 TODO : Missing description : please, update your UML model asap.
180 </xsd:documentation>
181 <xsd:appinfo>
182 <vo-dml:utype>quantity.BooleanValue.value</vo-dml:utype>
183 </xsd:appinfo>
184 </xsd:annotation>
185 </xsd:element>
186 </xsd:sequence>
187 </xsd:extension>
188 </xsd:complexContent>
189 </xsd:complexType>
190
191 <xsd:complexType name="quantity.IntegerQuantity">
192 <xsd:annotation>
193 <xsd:documentation>
194 TODO : Missing description : please, update your UML model asap.
195 </xsd:documentation>
196 <xsd:appinfo>
197 <vo-dml:utype>quantity.IntegerQuantity</vo-dml:utype>
198 </xsd:appinfo>
199 </xsd:annotation>
200 <xsd:complexContent>
201 <xsd:extension base="ivoa:quantity.Quantity">
202 <xsd:sequence>
203 <xsd:element name="value" type="xsd:integer" minOccurs="1" maxOccurs="1">
204 <xsd:annotation>
205 <xsd:documentation>
206 TODO : Missing description : please, update your UML model asap.
207 </xsd:documentation>
208 <xsd:appinfo>
209 <vo-dml:utype>quantity.IntegerQuantity.value</vo-dml:utype>
210 </xsd:appinfo>
211 </xsd:annotation>
212 </xsd:element>
213 </xsd:sequence>
214 </xsd:extension>
215 </xsd:complexContent>
216 </xsd:complexType>
217
218 <xsd:complexType name="quantity.Quantity" abstract="true">
219 <xsd:annotation>
220 <xsd:documentation>Meant to represent the value of a numerical physical quantity. May be integer, what units can apply there?</xsd:documentation>
221 <xsd:appinfo>
222 <vo-dml:utype>quantity.Quantity</vo-dml:utype>
223 </xsd:appinfo>
224 </xsd:annotation>
225 <xsd:complexContent>
226 <xsd:extension base="ivoa:quantity.AtomicValue">
227 <xsd:sequence>
228 <xsd:element name="unit" type="ivoa:quantity.Unit" minOccurs="0" maxOccurs="1">
229 <xsd:annotation>
230 <xsd:documentation>
231 TODO : Missing description : please, update your UML model asap.
232 </xsd:documentation>
233 <xsd:appinfo>
234 <vo-dml:utype>quantity.Quantity.unit</vo-dml:utype>
235 </xsd:appinfo>
236 </xsd:annotation>
237 </xsd:element>
238 </xsd:sequence>
239 </xsd:extension>
240 </xsd:complexContent>
241 </xsd:complexType>
242
243 <xsd:complexType name="quantity.RealQuantity">
244 <xsd:annotation>
245 <xsd:documentation>
246 TODO : Missing description : please, update your UML model asap.
247 </xsd:documentation>
248 <xsd:appinfo>
249 <vo-dml:utype>quantity.RealQuantity</vo-dml:utype>
250 </xsd:appinfo>
251 </xsd:annotation>
252 <xsd:complexContent>
253 <xsd:extension base="ivoa:quantity.Quantity">
254 <xsd:sequence>
255 <xsd:element name="value" type="xsd:float" minOccurs="1" maxOccurs="1">
256 <xsd:annotation>
257 <xsd:documentation>
258 TODO : Missing description : please, update your UML model asap.
259 </xsd:documentation>
260 <xsd:appinfo>
261 <vo-dml:utype>quantity.RealQuantity.value</vo-dml:utype>
262 </xsd:appinfo>
263 </xsd:annotation>
264 </xsd:element>
265 </xsd:sequence>
266 </xsd:extension>
267 </xsd:complexContent>
268 </xsd:complexType>
269
270 <xsd:complexType name="quantity.StringValue">
271 <xsd:annotation>
272 <xsd:documentation>
273 TODO : Missing description : please, update your UML model asap.
274 </xsd:documentation>
275 <xsd:appinfo>
276 <vo-dml:utype>quantity.StringValue</vo-dml:utype>
277 </xsd:appinfo>
278 </xsd:annotation>
279 <xsd:complexContent>
280 <xsd:extension base="ivoa:quantity.AtomicValue">
281 <xsd:sequence>
282 <xsd:element name="value" type="xsd:string" minOccurs="1" maxOccurs="1">
283 <xsd:annotation>
284 <xsd:documentation>
285 TODO : Missing description : please, update your UML model asap.
286 </xsd:documentation>
287 <xsd:appinfo>
288 <vo-dml:utype>quantity.StringValue.value</vo-dml:utype>
289 </xsd:appinfo>
290 </xsd:annotation>
291 </xsd:element>
292 </xsd:sequence>
293 </xsd:extension>
294 </xsd:complexContent>
295 </xsd:complexType>
296
297 <xsd:simpleType name="quantity.Unit">
298 <xsd:annotation>
299 <xsd:documentation>Must conform to definition of unit in VOUnit spec.</xsd:documentation>
300 <xsd:appinfo>
301 <vo-dml:utype>quantity.Unit</vo-dml:utype>
302 </xsd:appinfo>
303 </xsd:annotation>
304 <xsd:restriction base="xsd:string"/>
305 </xsd:simpleType>
306
307 </xsd:schema>

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26