Objects
ObjectsManager ¶
Bases: BaseManager
Manages object-level information within an OCEL instance.
Provides access to: - the objects table - the object_changes table - object types and counts - object attribute names - per-object lookup helpers such as type-by-id
Acts as a facade over the underlying PM4PY OCEL object.
Source code in src/ocelescope/src/ocelescope/ocel/managers/objects.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | |
df property ¶
Return the object table from the underlying OCEL.
Returns:
| Name | Type | Description |
|---|---|---|
DataFrame | DataFrame | A pandas DataFrame containing all objects and their static attributes. |
changes property ¶
Return the dynamic object attribute change table.
Returns:
| Name | Type | Description |
|---|---|---|
DataFrame | DataFrame | A pandas DataFrame containing all dynamic updates to object attributes. |
types property ¶
Return the list of all object types present in the log.
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: Sorted list of unique object type names. |
counts property ¶
Count how many objects exist for each object type.
Returns:
| Name | Type | Description |
|---|---|---|
Series | Series | A pandas Series indexed by object type with occurrence counts. |
type_by_id property ¶
Return a mapping from object ID to object type.
Returns:
| Name | Type | Description |
|---|---|---|
Series | Series | A pandas Series indexed by object ID, containing object types as values. |
static_attribute_names property ¶
Return the names of all static object attributes.
Static attributes are non-OCEL-prefixed columns in the objects table that contain at least one non-null value.
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: Sorted list of static object attribute names. |
dynamic_attribute_names property ¶
Return the names of all dynamic object attributes.
Dynamic attributes are derived from the object_changes table, excluding OCEL system columns and internal counters.
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: Sorted list of dynamic object attribute names. |
attribute_names property ¶
Return all object attribute names.
Combines both static and dynamic attributes into a unified list.
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: Sorted list of all object attribute names. |
attribute_summary property ¶
Summarize all object attributes grouped by object type.
Summaries include inferred attribute data types, ranges, value distributions, and other type-specific metadata.
Returns:
| Type | Description |
|---|---|
dict[str, list[AttributeSummary]] | dict[str, list[AttributeSummary]]: Mapping of object types to |
dict[str, list[AttributeSummary]] | lists of structured attribute summaries. |
has_types ¶
Check whether all provided object types exist in the OCEL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
types | Iterable[str] | Iterable of object type names to verify. | required |
Returns:
| Name | Type | Description |
|---|---|---|
bool | bool | True if all types exist, False otherwise. |