pm4py.llm.abstract_ocel_ocdfg#

pm4py.llm.abstract_ocel_ocdfg(ocel: OCEL, include_header: bool = True, include_timestamps: bool = True, max_len: int = 10000) str[source]#

Obtains the abstraction of an object-centric event log, representing the object-centric directly-follows graph in text.

Return type:

str

Parameters:
  • ocel (OCEL) – The object-centric event log to abstract.

  • include_header (bool) – Whether to include a header in the abstraction.

  • include_timestamps (bool) – Whether to include timestamp information in the abstraction.

  • max_len (int) – Maximum length of the abstraction (default: constants.OPENAI_MAX_LEN).

Returns:

The object-centric DFG abstraction as a string.

import pm4py

ocel = pm4py.read_ocel("tests/input_data/ocel/example_log.jsonocel")
print(pm4py.llm.abstract_ocel_ocdfg(ocel))