Expand description
§Ebi - a process mining tool
Ebi is a process mining software suite, maintained by the BPM group of the RWTH Aachen University, Germany. It contains several algorithms and techniques that perform analyses on event logs and process models.
Ebi can be used in several manners:
- Directly in a browser,
- as a command-line utility,
- in the ProM framework,
- in the Knime analytics platform,
- from Rust,
- from Python,
- from Java and
- from Javascript.
Ebi provides process mining and stochastic process mining algorithms, and supports exact arithmetic for most of these algorithms.
More information on its use can be found in its manual.
§Using Ebi
§Use Ebi from a browser
Most commands of Ebi can be used directly from the browser on the commands page.
This will run fully on your computer, is limited to 4GB of RAM and single-threaded. Ebi does not upload or store files; everything is ran locally on your computer or smart device.
§Use Ebi as a command line utility
-
Download Ebi CLI for Windows, for Linux or for Mac. Older versions are available here.
-
In Linux or on a Mac, give the file execution permissions:
sudo chmod +x [ebi executable]On Windows, this step is not necessary.
-
Open a command prompt and run the executable. Installation is not necessary, and Ebi does not require internet access.
-
For an overview of the commands, refer to the commands page or the manual.
Ebi runs on many other platforms by self-compilation; please see the development section.
A good way to get started is to try ebi info followed by the name of a file, which will parse the file and print some information about it.
§Use Ebi in ProM
Ebi is also available in the ProM framework on Windows and Linux. In the ProM Package Manager, install Ebi. Then, several Ebi commands can be used like any other ProM plug-in. As Ebi is extremely flexible in its inputs and outputs, please ensure you choose the correct input and output plug-in (there are many).
The manual indicates which commands are available in ProM.
§Use Ebi in the Knime analytics platform
Ebi is available in the Knime analytics platform on Windows and Linux. For instructions to install and use it, please refer to here.
§Call Ebi from Python
Ebi can be used as a Python package, which integrates with PM4Py.
-
Install the Ebi-pm package using pip:
pip install ebi-pm pip install pm4py -
Then, one can use Ebi as follows:
import pm4py import ebi log = pm4py.read_xes("myLog.xes", return_legacy_log_object=True) with open('mymodel.slpn', 'r') as file: model = file.read() result = ebi.conformance_earth_movers_sample( log, model, 1000 ) print(result)
The names of the Ebi functions can be found on the commands page or in the manual.
Some PM4Py objects, such as event logs, are read directly by Ebi, but most are passed as strings. If Ebi returns an exact fraction, it is returned as an array consisting of 1) a floating-point approximation, 2) the full numerator, and 3) the full denominator.
§Call Ebi from Rust
Ebi can be used as a Rust crate, available from crates.io.
-
Add the following to the Cargo.toml file:
[dependencies] ebi = "*" -
Then, one can use Ebi as follows:
use ebi::ebi_objects::FiniteStochasticLanguage; use ebi::{ ebi_traits::ebi_trait_finite_stochastic_language::EbiTraitFiniteStochasticLanguage, techniques::earth_movers_stochastic_conformance::EarthMoversStochasticConformance, }; use ebi_objects::ebi_arithmetic::{Fraction, One}; use std::fs; // Read the first file, box it and cast it as a trait let fin1 = fs::read_to_string("testfiles/empty_trace.slang").unwrap(); let slang1 = fin1.parse::<FiniteStochasticLanguage>().unwrap(); let mut object1: Box<dyn EbiTraitFiniteStochasticLanguage> = Box::new(slang1); // Read the second file, box it and cast it as a trait let fin2 = fs::read_to_string("testfiles/empty_trace.slang").unwrap(); let slang2 = fin2.parse::<FiniteStochasticLanguage>().unwrap(); let mut object2: Box<dyn EbiTraitFiniteStochasticLanguage> = Box::new(slang2); // Compute EMSC let emsc = object1 .earth_movers_stochastic_conformance(object2.as_mut()) .unwrap(); assert_eq!(emsc, Fraction::one());
§Call Ebi from Java
To use Ebi from Java:
-
Download the Ebi Java library and add it to the Class Path of your program.
-
Then, one can use Ebi as follows:
import org.ebitools.Ebi; import java.nio.file.Files; import java.nio.charset.StandardCharsets; //Load the inputs as strings. String log = Files.readString("log.xes", StandardCharsets.UTF_8); //Call Ebi through a generic function. //The first argument is the full name of the Ebi command, // the second is the desired output format, // and the third is an array of command parameters in string format. String result = Ebi.callEbi("Ebi analyse completeness", ".frac", new String[] {log}); //Call Ebi through a command-specific function. //The first argument is the desired output format, the remaining arguments are the command's inputs. String info = Ebi.information(".txt", log);
The commands page indicates the commands that can be called from Java.
§Call Ebi from Javascript
Ebi is available as an NPM library.
§Feedback & Development
Got a feature request? Found a bug? Please use our Github issue page.
Ebi is hosted on Github. To get started with development, or to compile Ebi yourself:
- Install Rustup
- Log out and in again
- Install Visual Studio Code
- In Visual Studio Code, install the extension rust-analyzer
- With a browser, go to the project on Github, choose “Clone”, “Visual Studio Code (SSH)”, and clone it in Visual Studio Code.
- To run Ebi, use the terminal of Visual Studio Code to give the command “cargo run –” instead of “ebi”. Everything else is equivalent to the commands mentioned in the manual.
- To compile Ebi, give the command “cargo build –release”. The binary is then placed in the project folder, in the “build/release” sub-folder.
Information on the architecture of Ebi, including its sub-crates, can be found in the manual and in the code documentation.
We welcome pull requests on Github. Before submitting a pull request:
- Run
cargo clippyand address lints if they are sensible. - Test Ebi locally using
src/tests/test.sh. On Windows, rename this file to .bat and remove the first 7 lines. Testing may take up to an hour to run, depending on your machine.
§License
Ebi has a dual MIT and GPL license.
§Sister crates
Ebi has several sister crates:
- The crate Ebi contains the framework, surfaces (CLI and libraries for other languages), traits, documentation and manual.
- The crate Ebi_objects contains the logs, models and other object structs, as well as conversions between them.
- The crate Ebi_bpmn takes care of BPMN models.
- The crate Ebi_arithmetic contains exact and approximate arithmetic machinery.
- The crate Ebi_activity_key contains a string-deduplication abstraction.
- The crate Ebi_optimisation contains optimisation routines.
- The crate Ebi_derive contains derivation macros.
Modules§
- ebi_
commands - A command makes a technique available to the Ebi framework. This module contains the command hierarchy.
- ebi_
file_ handlers - A file handler is an importer and exporter for a particular file format. In Ebi, a file handler defines how a file type is to be handled, as which objects and traits it can be imported, and which objects can be exported to it.
- ebi_
framework - The framework module contains the Ebi framework.
- ebi_
traits - An Ebi trait is a contract or interface on objects. A trait allows to call methods on the object without knowing what object it is, thereby providing an abstraction. For documentation on Ebi traits and mathematical definitions, please refer to the manual.
- math
- The math module contains helper code for mathematical operations.
- python
- semantics
- Semantics provide meaning and interpretation to behaviour. This module contains code that defines the behaviour of objects, if that is not included in the Ebi_objects crate.
- surfaces
- Ebi can be used through a surface, such as as a Python or Javascript library. In this module, these surfaces are provided.
- techniques
- The implementations of algorithms can be found in this module.
- tests
- Ebi generates its some of its own tests, for which generation code is found in this module.
Macros§
- EbiInput
Type Enum - If an input of a command can be a fixed set of options, this macro creates the input type (without a default).
- EbiInput
Type Enum Default - If an input of a command can be a fixed set of options, this macro creates the input type (with a default).
- ebi_
info - ebi_
validate - trait_
definition_ finalisation - trait_
definition_ logs