diff --git a/example_files/example.json b/example_files/example.json new file mode 100644 index 0000000000000000000000000000000000000000..0e51c9bd3d072bd32aee3220175f2f922944f0d3 --- /dev/null +++ b/example_files/example.json @@ -0,0 +1,56 @@ +{ + "eventTypes": [ + { + "name": "create-order", + "attributes": [ + { + "name": "total-items", + "type": "integer" + } + ] + } + ], + "objectTypes": [ + { + "name": "order", + "attributes": [ + { + "name": "item", + "type": "integer" + } + ] + } + ], + "events": [ + { + "id": "e1", + "type": "create-order", + "time": "1970-01-01T00:00:00Z", + "attributes": [ + { + "name": "total-items", + "value": 1 + } + ], + "relationships": [ + { + "objectId": "o1", + "qualifier": "item" + } + ] + } + ], + "objects": [ + { + "id": "o1", + "type": "order", + "attributes": [ + { + "name": "item", + "time": "1970-01-01T00:00:00Z", + "value": 1 + } + ] + } + ] +} \ No newline at end of file diff --git a/example_files/example.sqlite b/example_files/example.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9945ec0e3f226e477cec18bd3a3a15c49e4c3ed1 --- /dev/null +++ b/example_files/example.sqlite @@ -0,0 +1,46 @@ +PRAGMA foreign_keys=OFF; +BEGIN TRANSACTION; +CREATE TABLE IF NOT EXISTS "event" ( +"ocel_id" TEXT, + "ocel_type" TEXT +); +INSERT INTO event VALUES('e1','Create Order'); +CREATE TABLE IF NOT EXISTS "event_object" ( +"ocel_event_id" TEXT, + "ocel_object_id" TEXT, + "ocel_qualifier" TEXT +); +INSERT INTO event_object VALUES('e1','o1','order'); +CREATE TABLE IF NOT EXISTS "object" ( +"ocel_id" TEXT, + "ocel_type" TEXT +); +INSERT INTO object VALUES('o1','Order'); +CREATE TABLE IF NOT EXISTS "object_object" ( +"ocel_source_id" TEXT, + "ocel_target_id" TEXT, + "ocel_qualifier" TEXT +); +CREATE TABLE IF NOT EXISTS "event_CreateOrder" ( +"ocel_id" TEXT, + "ocel_time" TEXT +, "total items" INTEGER); +INSERT INTO event_CreateOrder VALUES('e1','1970-01-01 00:00:00',1); +CREATE TABLE IF NOT EXISTS "event_map_type" ( +"ocel_type" TEXT, + "ocel_type_map" TEXT +); +INSERT INTO event_map_type VALUES('Create Order','CreateOrder'); +CREATE TABLE IF NOT EXISTS "object_map_type" ( +"ocel_type" TEXT, + "ocel_type_map" TEXT +); +INSERT INTO object_map_type VALUES('Order','Order'); +CREATE TABLE IF NOT EXISTS "object_Order" ( + "ocel_id" TEXT, + "ocel_time" TEXT, + "ocel_changed_field" TEXT, + "item" INTEGER +); +INSERT INTO object_Order VALUES('o1','1970-01-01 00:00:00',NULL,1); +COMMIT;