pm4py.read#

The pm4py.read module contains all funcationality related to reading files/objects from disk.

Functions

read_bpmn(file_path[, encoding])

Reads a BPMN model from a .bpmn file

read_dfg(file_path[, encoding])

Reads a DFG object from a .dfg file.

read_ocel(file_path[, objects_path, encoding])

Reads an object-centric event log from a file (see: http://www.ocel-standard.org/).

read_ocel2(file_path[, variant_str, encoding])

Reads an OCEL2.0 event log

read_ocel2_json(file_path[, variant_str, ...])

Reads an OCEL2.0 event log from a JSON-OCEL(2) file

read_ocel2_sqlite(file_path[, variant_str, ...])

Reads an OCEL2.0 event log from a SQLite database

read_ocel2_xml(file_path[, variant_str, ...])

Reads an OCEL2.0 event log from an XML file

read_ocel_csv(file_path[, objects_path, ...])

Reads an object-centric event log from a CSV file (see: http://www.ocel-standard.org/).

read_ocel_json(file_path[, encoding])

Reads an object-centric event log from a JSON-OCEL file (see: http://www.ocel-standard.org/).

read_ocel_sqlite(file_path[, encoding])

Reads an object-centric event log from a SQLite database (see: http://www.ocel-standard.org/).

read_ocel_xml(file_path[, encoding])

Reads an object-centric event log from a XML-OCEL file (see: http://www.ocel-standard.org/).

read_pnml(file_path[, ...])

Reads a Petri net object from a .pnml file.

read_ptml(file_path[, encoding])

Reads a process tree object from a .ptml file

read_xes(file_path[, variant, ...])

Reads an event log stored in XES format (see xes-standard) Returns a table (pandas.DataFrame) view of the event log.