Arguments
Returns
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_e2o_rev_ids(ocel, 'ob-893f8ab9')
process_mining::bindings::slim_ocel_bindings
Construct an OCEL end-to-end: Declare event and object types, add events/objects with E2O/O2O relations, and export the resulting OCEL 2.0 to different formats.
Read events, objects, and relationships from CSV tables and build an OCEL 2.0 log. Works the same way for Pandas or Polars dataframes.
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_e2o_rev_ids(ocel, 'ob-893f8ab9')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_object_type_of_id(ocel, 'ob-893f8ab9')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_event_ids_of_type(ocel, 'pay order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_object_ids_of_type(ocel, 'order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_construct_ocel(ocel, 'example')
(timestamp, value) pairs. Empty if absent.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_attr_vals(ocel, 1, 'price')
None if the attribute does not exist.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_attr_val(ocel, 1, 'price')
locel_get_ob_* accessors for single fields.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_full_ob(ocel, 1)
locel_get_ev_* accessors for single fields.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_full_ev(ocel, 1)
(qualifier, object_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_o2o_rev(ocel, 1)
(qualifier, object_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_o2o(ocel, 1)
((from_activity, to_activity), count), counting adjacent pairs in eachimport r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_dfg_of_object_type(ocel, 'order')
(activity_trace, count), where activity_trace is the sequence of event typescount is the number of objects of theimport r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_variants_of_object_type(ocel, 'order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_obj_activity_trace(ocel, 1)
(qualifier, event_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_e2o_rev(ocel, 1)
(qualifier, object_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_e2o(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_time(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_type_of(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_type_of(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_id(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_id(ocel, 1)
None if not found.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_by_id(ocel, 'ob-893f8ab9')
None if not found.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_by_id(ocel, 'ev-893f8ab9')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_obs_of_type(ocel, 'order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_evs_of_type(ocel, 'pay order')
None if unknown.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_type(ocel, 'order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
r4pm.bindings.locel_add_event_type(ocel, 'pay order', [{"name": 'example', "type": 'string'}])
event_time - latest_predecessor_time in integer microseconds. Returns one row(event_id, sojourn_us) per qualifying event.top_k: if Some(k), return only the k rows with the largest sojourn_us, ties broken byNone returns every qualifying event.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_oc_perf_sojourn_per_event(ocel, 1)
max_predecessor_time - min_predecessor_time in integer microseconds (the span between its(event_id, sync_us, delaying_object_id) per qualifying event.top_k: if Some(k), return only the k rows with the largest sync_us, ties broken byNone returns every qualifying event.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_oc_perf_sync_per_event(ocel, 1)
source_type to target_type via O2O, restricted to targets touched by activity.source_type objects that have at least one outgoing O2O edge to atarget_type object related (via E2O) to some event of the given event type.activity names no declared event type, or if either object type is not0.0 cannot mean a misspelled name.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_conversion_rate(ocel, 'example', 'example', 'example')
(event_type, object_type) pair.(event_type, object_type, count). A single (event, object) pair connectedimport r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_event_object_type_counts(ocel)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_event_timestamp_of_id(ocel, 'ev-893f8ab9')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_event_type_of_id(ocel, 'ev-893f8ab9')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_o2o_ids(ocel, 'ob-893f8ab9')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_e2o_ids(ocel, 'ev-893f8ab9')
None if unknown.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_type(ocel, 'pay order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_types(ocel)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_types(ocel)
from_obj to to_obj (across every qualifier).true on success, false if either index is out of bounds (with a stderr warning).import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_delete_o2o(ocel, 1, 1)
true on success, false if either index is out of bounds (with a stderr warning).import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_delete_e2o(ocel, 1, 1)
from_obj to to_obj with the given qualifier.(from_obj, to_obj) pair are allowed. Re-adding the exact(from_obj, to_obj, qualifier) triple is a no-op. Returns true on success, false ifimport r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_add_o2o(ocel, 1, 1, 'places')
(event, object) pair are allowed. Re-adding the exact(event, object, qualifier) triple is a no-op. Returns true on success, false ifimport r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_add_e2o(ocel, 1, 1, 'places')
locel_add_object_type first.None.id: If None, a UUID is assigned. Returns None if the id is already taken.attributes: Positional list of time-indexed attribute histories (one (timestamp, value) list per declared attribute, in order). Use 1970-01-01T00:00:00Z for constant/initial values. Padded with empty lists or truncated on length mismatch (with a warning).relationships: Outgoing O2O relationships as (qualifier, object_index) pairs (can also be added later via locel_add_o2o).import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_add_object(ocel, 'order', '893f8ab9', [[['2020-01-01T10:30:00Z', 1]]], [['example', 1]])
locel_add_event_type first.None.id: If None, a UUID is assigned. Returns None if the id is already taken.attributes: Positional values in the declared attribute order. Padded with Null or truncated on length mismatch (with a warning).relationships: E2O relationships as (qualifier, object_index) pairs (can also be added later via locel_add_e2o).import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_add_event(ocel, 'pay order', '2020-01-01T10:30:00Z', '893f8ab9', [1], [['example', 1]])
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
r4pm.bindings.locel_add_object_type(ocel, 'order', [{"name": 'example', "type": 'string'}])
add_* calls,import r4pm
res = r4pm.bindings.locel_new('example')