24 lines
1.2 KiB
SQL
24 lines
1.2 KiB
SQL
-- storage-common/qgsql/graph/load_basic.sql
|
|
-- load bootstrap and basic semantic steps
|
|
|
|
-- basic concepts with fixed IDs
|
|
insert into steps (id, item, property, valtype, numval, textval) values
|
|
(1, 1, 2, 3, 1, null), -- root: root assert root
|
|
(2, 1, 2, 3, 2, null), -- assert: root assert assert
|
|
(3, 1, 2, 3, 3, null), -- Class: root assert Class
|
|
(4, 1, 2, 3, 4, null), -- type: root assert type
|
|
(5, 1, 2, 3, 5, null), -- Property: root assert Property
|
|
(6, 1, 2, 3, 6, null); -- ref: root assert ref
|
|
|
|
-- basic types and refs
|
|
insert into steps (item, property, valtype, numval, textval) values
|
|
(3, 4, 3, 3, null), -- Class type Class
|
|
(5, 4, 3, 3, null), -- property type Class
|
|
(4, 4, 3, 5, null), -- type type Property
|
|
(6, 4, 3, 5, null), -- ref type Property
|
|
(1, 6, 1, null, 'root'), -- root ref "root"
|
|
(2, 6, 1, null, 'assert'), -- assert ref "assert"
|
|
(4, 6, 1, null, 'type'), -- type ref "type"
|
|
(3, 6, 1, null, 'Class'), -- Class ref "Class"
|
|
(5, 6, 1, null, 'Property'), -- Property ref "Property"
|
|
(6, 6, 1, null, 'ref'); -- ref ref "ref"
|