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.

Arguments
Import from .json, .json.gz, .xml, .xml.gz, .ocel.csv, .ocel.csv.gz, .ocel.zip, .ocel-parquet.zip, .sqlite, .duckdb, .xes, .xes.gz, or pass OCEL or IndexLinkedOCEL (converted automatically)

A self-contained, serializable path schema: edges are embedded, so no [`TypeGraph`]

Parameters for connection finding.

PathSchemaConnections

Connections of a single schema, with metrics and throughput.

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)

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.

Arguments
Import from .json, .json.gz, .xml, .xml.gz, .ocel.csv, .ocel.csv.gz, .ocel.zip, .ocel-parquet.zip, .sqlite, .duckdb, .xes, .xes.gz, or pass OCEL or IndexLinkedOCEL (converted automatically)

A reference to an OCEL type: an event type or an object type, by name.

bool= false
i64<uint>= 10000
PathSchemaEnumeration

Result of [`path_schema_enumerate`].

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,
)