locel_get_ev_id
Get the ID string of an event. Panics if the index is out of bounds.
Arguments
Returns
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_id(ocel, 1)
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.locel_get_ev_id(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_obj_activity_trace(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_id(ocel, 1)
(qualifier, object_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_e2o(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')
(qualifier, object_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_o2o_rev(ocel, 1)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_event_ids_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_object_type(ocel, 'order', [{"name": 'example', "type": 'string'}])
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_construct_ocel(ocel)
(qualifier, object_index) pairs.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_o2o(ocel, 1)
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.locel_get_evs_of_type(ocel, 'pay order')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ob_type_of(ocel, 1)
(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')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_time(ocel, 1)
add_* calls,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]])
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_ev_types(ocel)
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.get_event_type_of_id(ocel, 'ev-893f8ab9')
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)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_type_of(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)
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)
(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')
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.get_o2o_ids(ocel, 'ob-893f8ab9')
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')
res = r4pm.bindings.get_e2o_ids(ocel, 'ev-893f8ab9')
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)
None if unknown.import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
res = r4pm.bindings.locel_get_ev_type(ocel, 'pay order')
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)
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.get_event_timestamp_of_id(ocel, 'ev-893f8ab9')
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')
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.locel_get_ob_types(ocel)
import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
r4pm.bindings.locel_add_event_type(ocel, 'pay order', [{"name": 'example', "type": 'string'}])
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')