Skip to content

Commit 8b76f40

Browse files
committed
NodeBinding and EdgeBinding now requires attributes to at least have empty list
1 parent 85f7220 commit 8b76f40

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

cohd/cohd_trapi_15.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,18 +1056,21 @@ def _add_result(self, kg_node_1_id, kg_node_2_id, kg_edge_id, score):
10561056
result = {
10571057
'node_bindings': {
10581058
self._concept_1_qnode_key: [{
1059-
'id': kg_node_1_id
1059+
'id': kg_node_1_id,
1060+
'attributes': []
10601061
}],
10611062
self._concept_2_qnode_key: [{
1062-
'id': kg_node_2_id
1063+
'id': kg_node_2_id,
1064+
'attributes': []
10631065
}]
10641066
},
10651067
'analyses': [
10661068
{
10671069
'resource_id': CohdTrapi._INFORES_ID,
10681070
'edge_bindings': {
10691071
self._query_edge_key: [{
1070-
'id': kg_edge_id
1072+
'id': kg_edge_id,
1073+
'attributes': []
10711074
}]
10721075
},
10731076
'score': score,

0 commit comments

Comments
 (0)