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
File details
Details for the file ocel-standard-0.0.3.1.tar.gz
.
File metadata
- Download URL: ocel-standard-0.0.3.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf48f845d2525347af74d640f19fbf713cc92e0e1bc7a0b806bef7f0da308085 |
|
MD5 | e2b2bd662d2b2595106a29f592d1c7a2 |
|
BLAKE2b-256 | 7fa4f6fd5a063a75e026dfd76c060d04321b0fe286207c72b7d52988c4615020 |
File details
Details for the file ocel_standard-0.0.3.1-py3-none-any.whl
.
File metadata
- Download URL: ocel_standard-0.0.3.1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fff3e080a904b34425e51bd9a33efcc9ffe12b589e602b27604a09db21f2263 |
|
MD5 | c597f0d0fa4e67cbae49d22930f7efb0 |
|
BLAKE2b-256 | a722b586d12989f982a0829142fa88999594376c25f90120c434b6e4a76215c0 |