From 915598b48055430691496b4cbad5738d1f2bae83 Mon Sep 17 00:00:00 2001 From: rjawesome Date: Fri, 2 Aug 2024 14:15:33 -0700 Subject: [PATCH] add agent type/knowledge level to pathfinder --- src/inferred_mode/pathfinder.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/inferred_mode/pathfinder.ts b/src/inferred_mode/pathfinder.ts index 97e7d9f2..5e810403 100644 --- a/src/inferred_mode/pathfinder.ts +++ b/src/inferred_mode/pathfinder.ts @@ -321,7 +321,11 @@ export default class PathfinderQueryHandler { resource_role: 'primary_knowledge_source', }, ], - attributes: [{ attribute_type_id: 'biolink:support_graphs', value: [`pathfinder-${kgSrc}-${intermediateNode}-support`] }], + attributes: [ + { attribute_type_id: 'biolink:support_graphs', value: [`pathfinder-${kgSrc}-${intermediateNode}-support`] }, + { attribute_type_id: 'biolink:knowledge_level', value: "prediction" }, + { attribute_type_id: 'biolink:agent_type', value: "computational_model" }, + ], }; creativeResponse.message.knowledge_graph.edges[`pathfinder-${intermediateNode}-${kgDst}`] = { predicate: 'biolink:related_to', @@ -335,7 +339,11 @@ export default class PathfinderQueryHandler { resource_role: 'primary_knowledge_source', }, ], - attributes: [{ attribute_type_id: 'biolink:support_graphs', value: [`pathfinder-${intermediateNode}-${kgDst}-support`] }], + attributes: [ + { attribute_type_id: 'biolink:support_graphs', value: [`pathfinder-${intermediateNode}-${kgDst}-support`] }, + { attribute_type_id: 'biolink:knowledge_level', value: "prediction" }, + { attribute_type_id: 'biolink:agent_type', value: "computational_model" }, + ], }; creativeResponse.message.knowledge_graph.edges[`pathfinder-${intermediateNode}`] = { predicate: 'biolink:related_to', @@ -349,7 +357,11 @@ export default class PathfinderQueryHandler { resource_role: 'primary_knowledge_source', }, ], - attributes: [{ attribute_type_id: 'biolink:support_graphs', value: [`pathfinder-${intermediateNode}-support`] }], + attributes: [ + { attribute_type_id: 'biolink:support_graphs', value: [`pathfinder-${intermediateNode}-support`] }, + { attribute_type_id: 'biolink:knowledge_level', value: "prediction" }, + { attribute_type_id: 'biolink:agent_type', value: "computational_model" }, + ], }; // calculate score