Skip to content

Commit

Permalink
add agent type/knowledge level to pathfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed Aug 2, 2024
1 parent e54bb73 commit 915598b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/inferred_mode/pathfinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit 915598b

Please sign in to comment.