
select get_event() as event
\gset

INSERT INTO namespaces (iri, prefix) VALUES 
    ('http://cyberconcepts.org/cco-common#', 'cco'),        -- 1
    ('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdf'), -- 2
    ('http://www.w3.org/2000/01/rdf-schema#', 'rdfs');      -- 3

INSERT INTO datatypes (dtname, tablename) VALUES 
    ('namespace', 'namespaces'),    -- 1
    ('node', 'nodes'),              -- 2
    ('datatype', 'datatypes'),      -- 3
    ('event', 'events'),            -- 4
    ('triple', 'triples'),          -- 5
    ('text', 'texts');              -- 6
INSERT INTO datatypes (dtname) VALUES 
    ('int'), ('decimal'), ('timestamp'); -- 7, 8, 9

-- basic triples: type assignments for 
-- type -> Property; Property, Class -> Class

select load_triple('node', 'rdf:type', 'rdf:type', 'node', 'rdf.Property', :event);
select load_triple('node', 'rdf:Property', 'rdf:type', 'node', 'rdfs.Class', :event);
select load_triple('node', 'rdfs:Class', 'rdf:type', 'node', 'rdfs.Class', :event);
