pm4py.read.read_ocel2_sqlite#
- pm4py.read.read_ocel2_sqlite(file_path: str, variant_str: str | None = None, encoding: str = 'utf-8') OCEL[source]#
Reads an OCEL 2.0 event log from a SQLite database.
- Parameters:
file_path (
str) – Path/URI to the OCEL 2.0 SQLite database file (.sqlite).variant_str – [Optional] Specification of the importer variant to be used.
encoding (
str) – Encoding to be used (default: utf-8).
- Return type:
OCEL
import pm4py ocel = pm4py.read_ocel2_sqlite("<path_or_uri_to_ocel_file.sqlite>")