string_utils
camel_to_snake(text)
¶
Converts camel-case string to snake-case
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | string to convert | required |
Returns:
Name | Type | Description |
---|---|---|
str | str | converted string |
Source code in exe_kg_lib/utils/string_utils.py
7 8 9 10 11 12 13 14 15 16 17 |
|
property_name_to_field_name(property_name)
¶
Extracts property name from IRI and converts it to snake-case
Parameters:
Name | Type | Description | Default |
---|---|---|---|
property_name | str | IRI to parse | required |
Returns:
Name | Type | Description |
---|---|---|
str | str | converted string |
Source code in exe_kg_lib/utils/string_utils.py
20 21 22 23 24 25 26 27 28 29 |
|
Last update: October 20, 2023