Newer
Older
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
_____________________________________________________________________________
INAF - OATS National Institute for Astrophysics - Astronomical Observatory of
Trieste INAF - IA2 Italian Center for Astronomical Archives
_____________________________________________________________________________
Copyright (C) 2016 Istituto Nazionale di Astrofisica
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License Version 3 as published by the
Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<tap_schema version="1.0" description="a special schema to describe a TAP tableset">
<table name="schemas" description="description of schemas in this tableset">
<add>
<property>
<name>schema_name</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>false</updatable>
<nullable>false</nullable>
<key>schema_name</key>
<description>schema name for reference to TAP_SCHEMA.schemas</description>
</property>
<property>
<name>utype</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>lists the utypes of schemas in the tableset</description>
</property>
<property>
<name>description</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>describes schemas in the tableset</description>
</property>
</add>
</table>
<table name="tables" description="description of tables in this tableset">
<add>
<property>
<name>schema_name</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>false</updatable>
<nullable>false</nullable>
<key>schema_name</key>
<description>the schema this table belongs to</description>
</property>
<property>
<name>table_name</name>
<type>java.lang.String</type>
<size>128</size>
<updatable>false</updatable>
<nullable>false</nullable>
<key>table_name</key>
<description>the fully qualified table name</description>
</property>
<property>
<name>table_type</name>
<size>8</size>
<type>java.lang.String</type>
<updatable>false</updatable>
<key>table_type</key>
<description>one of: table view</description>
</property>
<property>
<name>utype</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>lists the utype of tables in the tableset</description>
</property>
<property>
<name>description</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>describes tables in the tableset</description>
</property>
</add>
</table>
<table name="columns" description="description of columns in this tableset">
<add>
<property>
<name>table_name</name>
<required>true</required>
<type>java.lang.String</type>
<size>128</size>
<updatable>false</updatable>
<nullable>false</nullable>
<key>table_name</key>
<description>the table this column belongs to</description>
</property>
<property>
<name>column_name</name>
<required>true</required>
<type>java.lang.String</type>
<size>64</size>
<updatable>false</updatable>
<nullable>false</nullable>
<key>column_name</key>
<description>the column name</description>
</property>
<property>
<name>datatype</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>false</updatable>
<key>datatype</key>
<description>lists the ADQL datatype of columns in the tableset</description>
</property>
<property>
<name>size</name>
<type>java.lang.Integer</type>
<updatable>false</updatable>
<key>size</key>
<description>lists the size of variable-length columns in the tableset</description>
</property>
<property>
<name>description</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>describes the columns in the tableset</description>
</property>
<property>
<name>utype</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>lists the utypes of columns in the tableset</description>
</property>
<property>
<name>unit</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>true</updatable>
<description>lists the unit used for column values in the tableset</description>
</property>
<property>
<name>ucd</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>true</updatable>
<description>lists the UCDs of columns in the tableset</description>
</property>
<property>
<name>indexed</name>
<type>java.lang.Integer</type>
<updatable>false</updatable>
<nullable>false</nullable>
<key>indexed</key>
<default-value>0</default-value>
<description>an indexed column; 1 means true, 0 means false</description>
</property>
<property>
<name>principal</name>
<type>java.lang.Integer</type>
<updatable>true</updatable>
<nullable>false</nullable>
<default-value>0</default-value>
<description>a principal column; 1 means true, 0 means false</description>
</property>
<property>
<name>std</name>
<type>java.lang.Integer</type>
<updatable>true</updatable>
<nullable>false</nullable>
<default-value>0</default-value>
<description>a standard column; 1 means true, 0 means false</description>
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
246
247
248
249
250
251
252
253
254
255
256
</property>
</add>
</table>
<table name="keys" description="description of foreign keys in this tableset">
<add>
<property>
<name>key_id</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>true</updatable>
<description>unique key to join to TAP_SCHEMA.key_columns</description>
</property>
<property>
<name>from_table</name>
<type>java.lang.String</type>
<size>128</size>
<updatable>false</updatable>
<key>from_table</key>
<description>the table with the foreign key</description>
</property>
<property>
<name>target_table</name>
<type>java.lang.String</type>
<size>128</size>
<updatable>false</updatable>
<key>target_table</key>
<description>the table with the primary key</description>
</property>
<property>
<name>description</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>describes keys in the tableset</description>
</property>
<property>
<name>utype</name>
<type>java.lang.String</type>
<size>255</size>
<updatable>true</updatable>
<description>lists the utype of keys in the tableset</description>
</property>
</add>
</table>
<table name="key_columns" description="description of foreign key columns in this tableset">
<add>
<property>
<name>key_id</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>true</updatable>
<description>key to join to TAP_SCHEMA.keys</description>
</property>
<property>
<name>from_column</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>false</updatable>
<key>from_column</key>
<description>column in the from_table</description>
</property>
<property>
<name>target_column</name>
<type>java.lang.String</type>
<size>64</size>
<updatable>false</updatable>
<key>target_column</key>
<description>column in the target_table</description>
</property>
</add>
</table>
</tap_schema>