Skip to content

Commit

Permalink
add treats parent predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Woozl committed May 20, 2024
1 parent b17fe6a commit adf5507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/useBiolinkModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export default function useBiolinkModel() {
*/
function getEdgePredicates() {
const newPredicates = Object.entries(biolinkModel.slots).filter(checkIfDescendantOfRelatedTo);
// hard code in treats, it's techincally not a descendant of `related to`
// hard code in treats + parent, they're techincally not descendants of `related to`
// TODO: we'll want the more correct parsing using mixins at some point
newPredicates.push(['treats', biolinkModel.slots.treats]);
newPredicates.push(['treats or applied or studied to treat', biolinkModel.slots['treats or applied or studied to treat']]);
return newPredicates.map(([identifier, predicate]) => ({
predicate: strings.edgeFromBiolink(identifier),
domain: strings.nodeFromBiolink(predicate.domain),
Expand Down

0 comments on commit adf5507

Please sign in to comment.