diff --git a/cohd/cohd_trapi.py b/cohd/cohd_trapi.py index e38bf2a..80279ea 100644 --- a/cohd/cohd_trapi.py +++ b/cohd/cohd_trapi.py @@ -82,6 +82,8 @@ def operate(self): _INFORES_ID = 'infores:cohd' _SERVICE_NAME = 'COHD' + _KNOWLEDGE_LEVEL = 'statistical_association' + _AGENT_TYPE = 'data_analysis_pipeline' def _get_kg_predicate(self) -> str: """ Determines which predicate should be used to represent the COHD analysis diff --git a/cohd/cohd_trapi_15.py b/cohd/cohd_trapi_15.py index a281e19..d842bdf 100644 --- a/cohd/cohd_trapi_15.py +++ b/cohd/cohd_trapi_15.py @@ -42,7 +42,7 @@ class CohdTrapi150(CohdTrapi): edge_types_negative = ['biolink:negatively_correlated_with'] default_negative_predicate = edge_types_negative[0] - tool_version = f'{CohdTrapi._SERVICE_NAME} 6.5.1' + tool_version = f'{CohdTrapi._SERVICE_NAME} 6.5.2' schema_version = '1.5.0' biolink_version = bm_version @@ -1557,13 +1557,13 @@ def _add_kg_edge(self, node_1, node_2, cohd_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ] @@ -1606,13 +1606,13 @@ def _add_kg_edge(self, node_1, node_2, cohd_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ] @@ -1662,13 +1662,13 @@ def _add_kg_edge(self, node_1, node_2, cohd_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ] @@ -1725,13 +1725,13 @@ def _add_kg_edge(self, node_1, node_2, cohd_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ] @@ -1780,13 +1780,13 @@ def _add_kg_edge(self, node_1, node_2, cohd_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ] @@ -1794,13 +1794,13 @@ def _add_kg_edge(self, node_1, node_2, cohd_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ] @@ -1888,13 +1888,13 @@ def _add_kg_set_edge(self, node_2, is_subject, set_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID }, # Observed-expected frequency ratio analysis @@ -1925,13 +1925,13 @@ def _add_kg_set_edge(self, node_2, is_subject, set_result): # Knowledge Level { 'attribute_type_id': 'biolink:knowledge_level', - 'value': 'statistical_association', + 'value': CohdTrapi._KNOWLEDGE_LEVEL, 'attribute_source': CohdTrapi._INFORES_ID }, # Agent Type { 'attribute_type_id': 'biolink:agent_type', - 'value': 'computational_model', + 'value': CohdTrapi._AGENT_TYPE, 'attribute_source': CohdTrapi._INFORES_ID } ]