Skip to content

Commit

Permalink
adding resource id back to analyses
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Aug 1, 2024
1 parent 0ba22a3 commit 411be74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reasoner_transpiler/cypher.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ def transform_result(cypher_result,
if result_node_ids_key != '': # avoid adding results for the default node binding key ''
# if we haven't encountered this specific group of result nodes before, create a new result
if result_node_ids_key not in results:
results[result_node_ids_key] = {'analyses': [{'edge_bindings': edge_bindings}],
results[result_node_ids_key] = {'analyses': [{'edge_bindings': edge_bindings,
'resource_id': PROVENANCE_TAG}],
'node_bindings': node_bindings}
else:
# otherwise append new edge bindings to the existing result
Expand Down Expand Up @@ -462,6 +463,7 @@ def transform_attributes(result_item, node=False):
return transformed_attributes


@cache
def get_attribute_type_and_value_type(attribute_name):
# Determine the attribute_type_id and value_type_id for an attribute.
# Look in biolink model for the correct values,
Expand Down

0 comments on commit 411be74

Please sign in to comment.