from pystackt import *
export_to_ocel2(
quack_db="./stackt.duckdb",
schema_in="main",
schema_out="ocel2",
sqlite_db="./ocel2_stackt.sqlite"
)
Parameter | Type | Description |
---|---|---|
quack_db |
str |
Path to the DuckDB database file containing the input data. |
schema_in |
str |
Name of the schema in the DuckDB file that contains the input data. Needs to be stored using in Stack’t relational schema. |
schema_out |
str |
Name of the schema where the OCEL 2.0 tables will be created first. If schema already exists, it will be cleared first. |
sqlite_db |
str |
Path to the SQLite file used to export the OCEL 2.0 tables. A new file is created if it doesn’t exist yet (recommended). Existing tables will be overwritten but will not be deleted first. |
quack_db
,schema_in
)The input data for this function needs to be stored in a DuckDB database file using the Stack’t relational schema. The path to the DuckDB file is defined in quack_db
. The schema in which the data is stored is defined by schema_in
.
schema_out
,sqlite_db
)The output data in OCEL 2.0 format will be first written to the schema schema_out
in quack_db
. If this schema already exists, all existing tables in the schema will be deleted first.
Afterwards all tables in schema_out
will be copied to a SQLite database file defined by sqlite_db
. If the file does not exist yet, a new file will be created (recommended). Otherwise, existing tables will be overwritten. However, existing tables will not be deleted first, so if the new output uses different object/event types you should always create a new SQLite file!
Below is a list of information that is lost when exporting to OCEL 2.0.