kg_edit_utils
update_metric_values(exe_kg, task_output_dict, bottom_level_namespace, top_level_namespace)
¶
Updates the metric values in the given ExeKG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exe_kg | Graph | The knowledge graph to update. | required |
task_output_dict | Dict[str, Union[str, int, float, bool]] | A dictionary containing the task output names and values. | required |
bottom_level_namespace | Namespace | The bottom level namespace for the output entity IRI. | required |
top_level_namespace | Namespace | The top level namespace for the hasValue property. | required |
Returns:
Type | Description |
---|---|
None | None |
Source code in exe_kg_lib/utils/kg_edit_utils.py
11 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 39 40 41 42 43 44 45 |
|
update_pipeline_input_path(exe_kg, pipeline_iri, new_input_data_path, top_level_namespace)
¶
Updates the input data path of a pipeline in the given ExeKG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exe_kg | Graph | The knowledge graph to update. | required |
pipeline_iri | Union[str, URIRef] | The IRI of the pipeline to update. | required |
new_input_data_path | str | The new input data path to set for the pipeline. | required |
top_level_namespace | Namespace | The namespace containing the relevant RDF predicates. | required |
Returns:
Type | Description |
---|---|
None | None |
Source code in exe_kg_lib/utils/kg_edit_utils.py
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 |
|