Skip to content

Commit adf5507

Browse files
committed
add treats parent predicate
1 parent b17fe6a commit adf5507

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stores/useBiolinkModel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export default function useBiolinkModel() {
2929
*/
3030
function getEdgePredicates() {
3131
const newPredicates = Object.entries(biolinkModel.slots).filter(checkIfDescendantOfRelatedTo);
32-
// hard code in treats, it's techincally not a descendant of `related to`
32+
// hard code in treats + parent, they're techincally not descendants of `related to`
3333
// TODO: we'll want the more correct parsing using mixins at some point
3434
newPredicates.push(['treats', biolinkModel.slots.treats]);
35+
newPredicates.push(['treats or applied or studied to treat', biolinkModel.slots['treats or applied or studied to treat']]);
3536
return newPredicates.map(([identifier, predicate]) => ({
3637
predicate: strings.edgeFromBiolink(identifier),
3738
domain: strings.nodeFromBiolink(predicate.domain),

0 commit comments

Comments
 (0)