
-- load base data

select new_event() as event
\gset

-- load data

select load_namespace('http://cyberconcepts.org/cco-common#', 'cco');
select load_namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdf');
select load_namespace('http://www.w3.org/2000/01/rdf-schema#', 'rdfs');

select load_datatype('namespace', 'namespaces');
select load_datatype('node', 'nodes');
select load_datatype('datatype', 'datatypes');
select load_datatype('event', 'events');
select load_datatype('triple', 'triples');
select load_datatype('text', 'texts');
select load_datatype('int');
select load_datatype('decimal');
select load_datatype('timestamp');

-- 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);
