Debian Codegraph @

gavo/resources/dm/IVOA.vo-dml.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <vo-dml:model xmlns:vo-dml="http://www.ivoa.net/xml/VODML/v1"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4 <name>ivoa</name>
5 <description>This is the main reference data model containing primitive types used in other data models.</description>
6 <uri>http://www.ivoa.net/xml/VODML/v1</uri>
7 <title>IVOA Reference Types Data Model ala VO-URP</title>
8 <version>1.0</version>
9 <lastModified>2017-09-23T09:33:12</lastModified>
10 <primitiveType>
11 <vodml-id>Unit</vodml-id>
12 <name>Unit</name>
13 <description>Must conform to definition of unit in VOUnit spec.</description>
14 <extends>
15 <vodml-ref>ivoa:string</vodml-ref>
16 </extends>
17 </primitiveType>
18
19 <primitiveType>
20 <vodml-id>anyURI</vodml-id>
21 <name>anyURI</name>
22 <description>Represents a URI in the same way as the datatype of the same name in XML Schema is used.</description>
23 <extends>
24 <vodml-ref>ivoa:string</vodml-ref>
25 </extends>
26 </primitiveType>
27
28 <primitiveType>
29 <vodml-id>boolean</vodml-id>
30 <name>boolean</name>
31 <description>The standard boolean, having values true or false.</description>
32 </primitiveType>
33
34 <primitiveType>
35 <vodml-id>complex</vodml-id>
36 <name>complex</name>
37 <description>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.</description>
38 </primitiveType>
39
40 <primitiveType>
41 <vodml-id>datetime</vodml-id>
42 <name>datetime</name>
43 <description>Represents a moment in time using a date+timestamp. </description>
44 </primitiveType>
45
46 <primitiveType>
47 <vodml-id>integer</vodml-id>
48 <name>integer</name>
49 <description>An integer number (from Z).</description>
50 </primitiveType>
51
52 <primitiveType>
53 <vodml-id>nonnegativeInteger</vodml-id>
54 <name>nonnegativeInteger</name>
55 <description>An integer number from N, therefore greater than or equal to 0.</description>
56 </primitiveType>
57
58 <primitiveType>
59 <vodml-id>rational</vodml-id>
60 <name>rational</name>
61 <description>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.</description>
62 </primitiveType>
63
64 <primitiveType>
65 <vodml-id>real</vodml-id>
66 <name>real</name>
67 <description>A real number (from R).</description>
68 </primitiveType>
69
70 <primitiveType>
71 <vodml-id>string</vodml-id>
72 <name>string</name>
73 <description>A string, represented as an array of characters treated as a single, primitive value. Ala Java, a string can not be updated, that is any update leads to a different string. However in contrast to Java we assume that two strings that are identical in all their constituent characters are the same.
74 I.e. string has value type semantics.</description>
75 </primitiveType>
76
77 <dataType>
78 <vodml-id>IntegerQuantity</vodml-id>
79 <name>IntegerQuantity</name>
80 <description>An integer number with a unit. Examples of such units that can be used for attributes are bit/byte/kiloByte etc.</description>
81 <extends>
82 <vodml-ref>ivoa:Quantity</vodml-ref>
83 </extends>
84 <attribute>
85 <vodml-id>IntegerQuantity.value</vodml-id>
86 <name>value</name>
87 <description>
88 TODO : Missing description : please, update your UML model asap.
89 </description>
90 <datatype>
91 <vodml-ref>ivoa:integer</vodml-ref>
92 </datatype>
93 <multiplicity>
94 <minOccurs>1</minOccurs>
95 <maxOccurs>1</maxOccurs>
96 </multiplicity>
97 </attribute>
98 </dataType>
99
100 <dataType abstract="true">
101 <vodml-id>Quantity</vodml-id>
102 <name>Quantity</name>
103 <description>Meant to represent the value of a numerical physical quantity.
104 Can be mapped in VOTables to FIELDrefs and PARAM(ref)s, in which case the @unit attribute of those VOTable elements is assumed to be mapped to the attribute on the Quantity.
105 Ths is only allowed for these predefined ivoa types.</description>
106 <attribute>
107 <vodml-id>Quantity.unit</vodml-id>
108 <name>unit</name>
109 <description>
110 TODO : Missing description : please, update your UML model asap.
111 </description>
112 <datatype>
113 <vodml-ref>ivoa:Unit</vodml-ref>
114 </datatype>
115 <multiplicity>
116 <minOccurs>0</minOccurs>
117 <maxOccurs>1</maxOccurs>
118 </multiplicity>
119 </attribute>
120 </dataType>
121
122 <dataType>
123 <vodml-id>RealQuantity</vodml-id>
124 <name>RealQuantity</name>
125 <description>A real value with a unit.</description>
126 <extends>
127 <vodml-ref>ivoa:Quantity</vodml-ref>
128 </extends>
129 <attribute>
130 <vodml-id>RealQuantity.value</vodml-id>
131 <name>value</name>
132 <description>
133 TODO : Missing description : please, update your UML model asap.
134 </description>
135 <datatype>
136 <vodml-ref>ivoa:real</vodml-ref>
137 </datatype>
138 <multiplicity>
139 <minOccurs>1</minOccurs>
140 <maxOccurs>1</maxOccurs>
141 </multiplicity>
142 </attribute>
143 </dataType>
144
145 </vo-dml:model>