forked from OpenExoplanetCatalogue/open_exoplanet_catalogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oec.xsd
245 lines (245 loc) · 11.5 KB
/
oec.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- System -->
<xs:element name="system">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="name" type="nametype" minOccurs="1"/>
<xs:element ref="binary" minOccurs="0" maxOccurs="1"/>
<xs:element ref="planet" minOccurs="0" maxOccurs="1"/>
<xs:element ref="star" maxOccurs="1"/>
<xs:element name="spectraltype" type="spectraltypedef" minOccurs="0" maxOccurs="1"/>
<xs:element name="rightascension" type="rightascensiondef" minOccurs="1" maxOccurs="1"/>
<xs:element name="declination" type="declinationdef" minOccurs="1" maxOccurs="1"/>
<xs:element name="distance" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="epoch" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="videolink" type="webreference" minOccurs="0" maxOccurs="1"/>
<xs:element name="magB" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magH" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magI" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magJ" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magK" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magR" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magU" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magV" type="number" minOccurs="0" maxOccurs="1"/>
</xs:choice>
</xs:complexType>
</xs:element>
<!-- Planet -->
<xs:element name="planet">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="name" type="nametype" minOccurs="1"/>
<xs:element name="list" type="listtype" minOccurs="0" maxOccurs="1"/>
<xs:element name="semimajoraxis" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="eccentricity" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="periastron" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="longitude" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="ascendingnode" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="inclination" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="impactparameter" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="meananomaly" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="period" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="transittime" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="periastrontime" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="maximumrvtime" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="separation" type="number"/>
<xs:element name="mass" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="radius" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="temperature" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="age" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="discoverymethod" type="discoverymethodtype" minOccurs="0" maxOccurs="1"/>
<xs:element name="istransiting" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
<xs:element name="new" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="discoveryyear" type="year" minOccurs="0" maxOccurs="1"/>
<xs:element name="lastupdate" type="lastupdatedef" minOccurs="0" maxOccurs="1"/>
<xs:element name="image" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="imagedescription" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="spinorbitalignment" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="positionangle" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="metallicity" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="spectraltype" type="spectraltypedef" minOccurs="0" maxOccurs="1"/>
<xs:element name="magB" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magH" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magI" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magJ" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magK" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magR" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magU" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magV" type="number" minOccurs="0" maxOccurs="1"/>
</xs:choice>
</xs:complexType>
</xs:element>
<!-- Star -->
<xs:element name="star">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="name" type="nametype" minOccurs="1"/>
<xs:element ref="planet" minOccurs="0" maxOccurs="1"/>
<xs:element name="mass" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="radius" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="temperature" type="number" minOccurs="1" maxOccurs="1"/>
<xs:element name="age" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="metallicity" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="spectraltype" type="spectraltypedef" minOccurs="0" maxOccurs="1"/>
<xs:element name="magB" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magH" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magI" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magJ" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magK" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magR" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magU" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magV" type="number" minOccurs="0" maxOccurs="1"/>
</xs:choice>
</xs:complexType>
</xs:element>
<!-- Binary -->
<xs:element name="binary">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="name" type="nametype"/>
<xs:element ref="binary" minOccurs="0" maxOccurs="2"/>
<xs:element ref="star" minOccurs="0" maxOccurs="2"/>
<xs:element ref="planet"/>
<xs:element name="semimajoraxis" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="eccentricity" type="number"/>
<xs:element name="periastron" type="number"/>
<xs:element name="longitude" type="number"/>
<xs:element name="meananomaly" type="number"/>
<xs:element name="ascendingnode" type="number"/>
<xs:element name="inclination" type="number"/>
<xs:element name="period" type="number"/>
<xs:element name="transittime" type="number"/>
<xs:element name="periastrontime" type="number"/>
<xs:element name="maximumrvtime" type="number"/>
<xs:element name="separation" type="number"/>
<xs:element name="positionangle" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magB" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magH" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magI" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magJ" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magK" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magR" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magU" type="number" minOccurs="0" maxOccurs="1"/>
<xs:element name="magV" type="number" minOccurs="0" maxOccurs="1"/>
</xs:choice>
</xs:complexType>
</xs:element>
<!-- Name Definition -->
<xs:complexType name="nametype">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- Empty String -->
<xs:simpleType name="empty-string">
<xs:restriction base="xs:string">
<xs:enumeration value="" />
</xs:restriction>
</xs:simpleType>
<!-- Number Or Empty -->
<xs:simpleType name="number-or-empty">
<xs:union memberTypes="xs:double empty-string" />
</xs:simpleType>
<!-- Number -->
<xs:complexType name="number">
<xs:simpleContent>
<xs:extension base="number-or-empty">
<xs:attribute name="errorminus" type="xs:double" use="optional"/>
<xs:attribute name="errorplus" type="xs:double" use="optional"/>
<xs:attribute name="lowerlimit" type="xs:double" use="optional"/>
<xs:attribute name="upperlimit" type="xs:double" use="optional"/>
<xs:attribute name="unit" type="xs:string" use="optional"/>
<xs:attribute name="type" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- Spectraltype Definition -->
<xs:complexType name="spectraltypedef">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="errorminus" type="xs:double" use="optional"/>
<xs:attribute name="errorplus" type="xs:double" use="optional"/>
<xs:attribute name="error" type="xs:double" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- Right Ascension Definition -->
<xs:simpleType name="rightascensiondef">
<xs:restriction base="xs:string">
<xs:pattern value="[0-2]\d [0-5]\d [0-5]\d(\.\d+)?"/>
</xs:restriction>
</xs:simpleType>
<!-- Declination Definition -->
<xs:simpleType name="declinationdef">
<xs:restriction base="xs:string">
<xs:pattern value="(\+|\-)\d{2} [0-5]\d [0-5]\d(\.\d+)?"/>
</xs:restriction>
</xs:simpleType>
<!-- DateTime -->
<xs:simpleType name="datetime">
<xs:restriction base="xs:string">
<xs:pattern value="\d{2}/[0-1]\d/[0-3]\d"/>
</xs:restriction>
</xs:simpleType>
<!-- List Definition -->
<xs:simpleType name="listtype">
<xs:restriction base="xs:string">
<xs:enumeration value="Confirmed planets"/>
<xs:enumeration value="Not confirmed planets"/>
<xs:enumeration value="Planets in binary systems, S-type"/>
<xs:enumeration value="Planets in binary systems, P-type"/>
<xs:enumeration value="Orphan planets"/>
<xs:enumeration value="Controversial"/>
<xs:enumeration value="Solar System"/>
<xs:enumeration value="Kepler Objects of Interest"/>
<xs:enumeration value="Retracted planet candidate"/>
<xs:enumeration value="Planets in open clusters"/>
<xs:enumeration value="Planets in globular clusters"/>
</xs:restriction>
</xs:simpleType>
<!-- Discoverymethod Definition -->
<xs:simpleType name="discoverymethodtype">
<xs:restriction base="xs:string">
<xs:enumeration value="imaging"/>
<xs:enumeration value="microlensing"/>
<xs:enumeration value="RV"/>
<xs:enumeration value="timing"/>
<xs:enumeration value="transit"/>
</xs:restriction>
</xs:simpleType>
<!-- Year -->
<xs:simpleType name="year">
<xs:restriction base="xs:integer">
<xs:minInclusive value="1781"/>
<xs:maxInclusive value="2020"/>
</xs:restriction>
</xs:simpleType>
<!-- Positive Integer -->
<xs:simpleType name="positiveinteger">
<xs:restriction base="xs:nonNegativeInteger">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
<!-- Positive Double -->
<xs:simpleType name="positivedouble">
<xs:restriction base="xs:double">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
<!-- Webreference -->
<xs:simpleType name="webreference">
<xs:restriction base="xs:string">
<xs:pattern value="https?://.*"/>
</xs:restriction>
</xs:simpleType>
<!-- Last Update -->
<xs:simpleType name="lastupdatedef">
<xs:restriction base="xs:string">
<xs:pattern value="\d\d/[01][0-9]/[0-3]\d"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>