OCEL (object-centric event log) support for Python
Project description
# ocel-support Support to the OCEL standard
## Available commands:
### Importing / Exporting / Validation
log_object = ocel.import_log(log_path): imports a log from the specified path (both JSON-OCEL and XML-OCEL). ocel.export_log(log_object, log_path): exports a log into the specified path (both JSON-OCEL and XML-OCEL). is_valid = ocel.validate(log_path, schema_path): validates the specified log against the schema (both JSON-OCEL and XML-OCEL).
### Interface
ocel.get_events(log_object): returns a Python dictionary associating event identifiers to their pr (activity, timestamp, object map, attribute map). ocel.get_objects(log_object): returns a Python dictionary associating object identifiers to their attributes (object type, attribute map). ocel.get_attribute_names(log_object): returns a list of attribute names involved in events/objects of the log. ocel.get_object_types(log_object): returns a list of object types involved in events/objects of the log. ocel.get_version(log_object): gets the OCEL version (as a string) from the current OCEL object. ocel.get_global_event(log_object): gets the global values of attributes for the events. ocel.get_global_object(log_object): gets the global values of attributes for the objects.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ocel_standard-0.0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fff3e080a904b34425e51bd9a33efcc9ffe12b589e602b27604a09db21f2263 |
|
MD5 | c597f0d0fa4e67cbae49d22930f7efb0 |
|
BLAKE2b-256 | a722b586d12989f982a0829142fa88999594376c25f90120c434b6e4a76215c0 |