Skip to main content
Rust4PM

reader

process_mining::core::event_data::object_centric::ocel_sql::duckdb::schema::reader

Functions in this Module(2)

read_consolidated_slim_ocel_from_duckdb

core::event_data::object_centric::ocel_sql::duckdb::schema::readerSource
Read a SlimLinkedOCEL from a DuckDB database file in the consolidated schema, i.e. one
written by stream_ocel_file_to_duckdb(super::stream::stream_ocel_file_to_duckdb).
Rows are read into the linked structure directly, without building an OCEL first.
Stringrequired
Option<String>Store the result under this id instead of a generated one.
import r4pm

ocel = r4pm.bindings.read_consolidated_slim_ocel_from_duckdb('example')
# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
r4pm.export_item(ocel, 'ocel.xml')

process_mining/src/core/event_data/object_centric/ocel_sql/duckdb/schema/reader.rs:54

read_consolidated_ocel_from_duckdb

core::event_data::object_centric::ocel_sql::duckdb::schema::readerSource
Read an OCEL from a DuckDB database file in the consolidated schema, i.e. one written by
stream_ocel_file_to_duckdb(super::stream::stream_ocel_file_to_duckdb).
Databases in the per-type table layout of the OCEL 2.0 standard are read by
import_ocel_duckdb_from_path(crate::core::event_data::object_centric::ocel_sql::import_ocel_duckdb_from_path)
instead.
Stringrequired
Option<String>Store the result under this id instead of a generated one.
import r4pm

ocel = r4pm.bindings.read_consolidated_ocel_from_duckdb('example')
# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
r4pm.export_item(ocel, 'ocel.xml')

process_mining/src/core/event_data/object_centric/ocel_sql/duckdb/schema/reader.rs:42