discover_oc_declare
discovery::object_centric::oc_declareSourceDiscover behavioral OC-DECLARE constraints from the given OCEL
Reports progress to a Control in the stages "Preparing", "Finding candidates" (one unit per activity pair), and, if enabled, "Reducing constraints" (one unit per arc) and "Refining constraints" (one unit per activity pair with arcs).
Options for the automatic discovery of OC-DECLARE constraints
import r4pm
# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.discover_oc_declare(ocel)