Skip to Content
OCPQ v0.7.2 was released: Stability Improvements for Large Queries Download
DocumentationFilter Guide

Filter Guide

In this guide, we present how OCPQ can be used to filter OCEL 2.0 files. The resulting OCEL will have a subset of the events, objects, object-to-object and event-to-object relationships of the input dataset, and no additional ones.

Start

First, to get started refer to the Query Guide and follow the steps to load an OCEL, create a node with some object and event variables. In our example, we start with the node shown below.

Starting node

Defining Filters

To enable filtering, first toggle the filter switch on the top right 1.

Starting node

The filter mode adds small filter icons next to each object or event variable, as well as each event-to-object (E2O) or object-to-object (O2O) relationship predicate. Clicking on the filter icon toggles it between three possible modes:

  1. Ignore (default) Starting node
  2. Include Starting node
  3. Exclude Starting node

The output OCEL is then constructed as follows: First, the query is executed. Then, one global set for included and one for excluded objects, events, E2O, and O2O relationships is constructed. In the end, all elements of the excluded set are removed from the correpsonding included set and an OCEL is constructed based on only the included objects, events, and relationships.

Exporting

The filtered result can be exported as an OCEL 2.0 file (in the formats JSON, XML, or SQLite), using the button on the top right 1.

Starting node
Last updated on