-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathext_tables.sql
289 lines (207 loc) · 8.18 KB
/
ext_tables.sql
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
CREATE TABLE tx_lod_domain_model_namespace (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
prefix varchar(20) DEFAULT '' NOT NULL,
iri varchar(255) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY prefix (prefix),
KEY iri (iri),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_domain_model_iri (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
type int(11) DEFAULT '0' NOT NULL,
label varchar(255) COLLATE utf8mb4_bin DEFAULT '' NOT NULL,
label_language varchar(2) DEFAULT '' NOT NULL,
comment text NOT NULL,
comment_language varchar(2) DEFAULT '' NOT NULL,
value varchar(255) COLLATE utf8mb4_bin DEFAULT '' NOT NULL,
namespace int(11) DEFAULT '0' NOT NULL,
representations int(11) DEFAULT '0' NOT NULL,
record varchar(255) DEFAULT '' NOT NULL,
record_uid int(11) DEFAULT '0' NOT NULL,
record_tablename varchar(255) DEFAULT '' NOT NULL,
statements int(11) unsigned DEFAULT '0' NOT NULL,
prefix_value varchar(255) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
# needed for identifying a copy of a record
t3_origuid int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY type (type),
KEY label (label),
KEY value (value),
KEY comment (comment(255)),
KEY namespace (namespace),
KEY representations (representations),
KEY record (record),
KEY record_uid (record_uid),
KEY record_tablename (record_tablename),
KEY statements (statements),
KEY prefix_value (comment(255))
) ENGINE=InnoDB CHARACTER SET utf8mb4;
CREATE TABLE tx_lod_domain_model_bnode (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
label varchar(255) DEFAULT '' NOT NULL,
comment text NOT NULL,
value varchar(255) DEFAULT '' NOT NULL,
statements int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
# needed for identifying a copy of a record
t3_origuid int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY label (label),
KEY value (value),
KEY statements (statements),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_domain_model_literal (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
value text NOT NULL,
language varchar(2) DEFAULT '' NOT NULL,
datatype varchar(255) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY value (value(255)),
KEY language (language),
KEY datatype (datatype),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_domain_model_representation (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
# generic 1:1 relation to parent iri
parent int(11) unsigned DEFAULT '0' NOT NULL,
scheme varchar(255) DEFAULT '' NOT NULL,
authority varchar(255) DEFAULT '' NOT NULL,
path text NOT NULL,
query text NOT NULL,
fragment text NOT NULL,
content_type varchar(255) DEFAULT '' NOT NULL,
content_language varchar(10) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY parent (parent),
KEY scheme (scheme),
KEY authority (authority),
KEY content_type (content_type),
KEY content_language (content_language),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_domain_model_statement (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
subject varchar(255) DEFAULT '' NOT NULL,
subject_type varchar(255) DEFAULT '' NOT NULL,
subject_uid int(11) DEFAULT '0' NOT NULL,
predicate varchar(255) DEFAULT '' NOT NULL,
predicate_type varchar(255) DEFAULT '' NOT NULL,
predicate_uid int(11) DEFAULT '0' NOT NULL,
object varchar(255) DEFAULT '' NOT NULL,
object_type varchar(255) DEFAULT '' NOT NULL,
object_uid int(11) DEFAULT '0' NOT NULL,
object_recursion tinyint(4) unsigned DEFAULT '0' NOT NULL,
object_inversion tinyint(4) unsigned DEFAULT '0' NOT NULL,
graph int(11) DEFAULT '0' NOT NULL,
reference_statements int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
graph_sorting int(11) unsigned DEFAULT '0' NOT NULL,
iri_sorting int(11) unsigned DEFAULT '0' NOT NULL,
bnode_sorting int(11) unsigned DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY subject (subject),
KEY subject_uid (subject_uid),
KEY predicate (predicate),
KEY predicate_uid (predicate_uid),
KEY object (object),
KEY object_uid (object_uid),
KEY graph (graph),
KEY reference_statements (reference_statements),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_domain_model_graph (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
iri int(11) unsigned DEFAULT '0' NOT NULL,
label varchar(255) DEFAULT '' NOT NULL,
comment text NOT NULL,
statements int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY iri (iri),
KEY statements (statements),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_domain_model_vocabulary (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
iri int(11) unsigned DEFAULT '0' NOT NULL,
label varchar(255) DEFAULT '' NOT NULL,
comment text NOT NULL,
terms int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY pid (pid),
KEY iri (iri),
KEY terms (terms),
) ENGINE=InnoDB;
CREATE TABLE tx_lod_vocabulary_iri_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign),
) ENGINE=InnoDB;
CREATE TABLE pages (
iri int(11) unsigned DEFAULT '0' NOT NULL,
KEY iri (iri),
);
CREATE TABLE sys_category (
iri int(11) unsigned DEFAULT '0' NOT NULL,
KEY iri (iri),
);