Skip to main content
Rust4PM

path_schema_bindings

process_mining::bindings::path_schema_bindings

Functions in this Module(2)

path_schema_connections

bindings::path_schema_bindingsSource
Find the concrete instance connections of a single (resolved) schema, with metrics and
throughput. Entities are referenced by their compact OCEL index.
See Control::find_connections for the progress reported.
SlimLinkedOCELrequired
ResolvedPathSchemarequiredA self-contained, serializable path schema: edges are embedded, so no [`TypeGraph`]
PathConnectionParamsParameters for connection finding.
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
schema = {
    "source": {"Event": 'example'},
    "steps": [
        {
            "edge": {
                "qualifier": 'places',
                "source": {"Event": 'example'},
                "target": {"Event": 'example'},
            },
            "reverse": False,
        },
    ],
    "target": {"Event": 'example'},
}
res = r4pm.bindings.path_schema_connections(ocel, schema)

process_mining/src/bindings/path_schema_bindings.rs:88

path_schema_enumerate

bindings::path_schema_bindingsSource
Enumerate type-level path schemas between two types (or from one type), without any
instance traversal. Each schema is self-contained (ResolvedPathSchema). Returns at
most max_schemas schemas, see enumerate_schemas for the other limits and the progress
reported.
One partial value is one ResolvedPathSchema, as in PathSchemaEnumeration::schemas,
streamed as soon as it is found.
enumerate_schemas: crate::analysis::object_centric::path_schemas::enumerate_schemas
SlimLinkedOCELrequired
TypeRefrequiredA reference to an OCEL type: an event type or an object type, by name.
i64<uint>required
bool
Option<Vec<_>>
i64<uint>
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.path_schema_enumerate(
    ocel,
    {"Event": 'example'},
    max_length=1,
)

process_mining/src/bindings/path_schema_bindings.rs:51