cli_utils
get_input_for_existing_data_entities(existing_data_entity_list)
¶
Asks user to choose data entities from an existing list
Parameters:
Name | Type | Description | Default |
---|---|---|---|
existing_data_entity_list | List[DataEntity] | contains DataEntity objects for the user to choose from | required |
Returns:
Type | Description |
---|---|
List[DataEntity] | List[DataEntity]: contains the chosen DataEntity objects |
Source code in exe_kg_lib/utils/cli_utils.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
get_input_for_new_data_entities(data_semantics_list, data_structure_list, namespace, data_entity)
¶
Asks user to specify info of new data entities and creates relevant objects
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_semantics_list | List[Entity] | contains data semantics for the user to choose from | required |
data_structure_list | List[Entity] | contains data structures for the user to choose from | required |
namespace | Namespace | KG schema namespace to use when initializing the new entities | required |
data_entity | Entity | Entity object to assign as parent entity of the new entities | required |
Returns:
Type | Description |
---|---|
List[DataEntity] | List[DataEntity]: contains the created DataEntity objects |
Source code in exe_kg_lib/utils/cli_utils.py
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 |
|
input_pipeline_info()
¶
Asks user to provide a name for the pipeline and a path for the input data
Returns:
Type | Description |
---|---|
Tuple[str, str] | Tuple[str, str]: contains the provided strings |
Source code in exe_kg_lib/utils/cli_utils.py
81 82 83 84 85 86 87 88 89 90 |
|
Last update: October 20, 2023