Skip to main content

path_schema_bindings

process_mining::bindings::path_schema_bindings

Functions in this Module(4)

path_schema_connections

Find the concrete instance connections of a single (resolved) schema, with metrics and
throughput. Entities are referenced by their compact OCEL index.
Source
fn path_schema_connections(ocel*: SlimLinkedOCEL, schema*: ResolvedPathSchema, params: PathConnectionParams)PathSchemaConnections

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
schema = {"source": {"Event": 'example'}, "steps": [{"edge": {"qualifier": 'places', "source": {"Event": 'example'}, "target": {"Event": 'example'}}, "reverse": False}], "target": {"Event": 'example'}}
# Optional argument: params, can also be omitted
params = {"dedup_targets": False, "selection": 'All', "temporal": 'None'}
res = r4pm.bindings.path_schema_connections(ocel, schema, params)
Defined inprocess_mining/src/bindings/path_schema_bindings.rs:113

path_schema_discover

Discover path schemas between the query types and score each by support / coverage /
selectivity / reach / exclusivity and throughput.
Source
fn path_schema_discover(ocel*: SlimLinkedOCEL, query*: PathSchemaQuery)PathSchemaDiscovery

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')
query = {"allow_cycles": False, "max_length": 1, "params": {"dedup_targets": False, "selection": 'All', "temporal": 'None'}, "source": {"Event": 'example'}}
res = r4pm.bindings.path_schema_discover(ocel, query)
Defined inprocess_mining/src/bindings/path_schema_bindings.rs:106

path_schema_enumerate

Enumerate type-level path schemas between two types (or from one type), without any
instance traversal. Each schema is self-contained (ResolvedPathSchema).
Source
fn path_schema_enumerate(ocel*: SlimLinkedOCEL, source*: TypeRef, target: Nullable_TypeRef, max_length*: i64<uint>, allow_cycles: bool, allowed_types: Option<Vec<_>>)Vec<ResolvedPathSchema>

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.path_schema_enumerate(ocel, {"Event": 'example'}, {"Event": 'example'}, 1, False, [{"Event": 'example'}])
Defined inprocess_mining/src/bindings/path_schema_bindings.rs:80

path_schema_type_graph

Build the OCEL type graph (typed nodes with entity counts, plus relationship edges).
Source
fn path_schema_type_graph(ocel*: SlimLinkedOCEL)PathSchemaTypeGraph

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.path_schema_type_graph(ocel)