RTXteam / RTX

Software repo for Team Expander Agent (Oregon State U., Institute for Systems Biology, and Penn State U.)
https://arax.ncats.io/
MIT License
34 stars 20 forks source link

TRAPI validator complaining about "biolink:undefined" #1576

Closed amykglen closed 3 years ago

amykglen commented 3 years ago

see this query: https://arax.ncats.io/?r=16346

Screen Shot 2021-07-16 at 10 30 06 AM

think maybe just need to change it to biolink:Undefined

edeutsch commented 3 years ago

yes, changing it to biolink:Undefined would fix the validation error. But is that valid BioLink? biolink:NamedThing would be the most generic category I think?

amykglen commented 3 years ago

oh, yeah, that's strange that it's being used as a node category - before reading the error message closely I was assuming it must be an attribute type of some sort. there aren't any nodes with the category biolink:undefined in KG2/c... so maybe this is coming from another KP?

yep, confirmed it seems to be some other KP that's the problem - here's the same query using only KG2: https://arax.ncats.io/?r=16386

hmm... not great if an external KP is making ARAX fail TRAPI validation... should we try to do a check to correct this kind of thing? or not worth it?

amykglen commented 3 years ago

looks like Multiomics KP might be the culprit: https://arax.ncats.io/?r=16389

edeutsch commented 3 years ago

It's actually really easy to do validation. Just need a try except block like this: https://github.com/RTXteam/RTX/blob/90e1676736643208ee90de1b77f3d33d1f596026/code/ARAX/ResponseCache/response_cache.py#L367

But the validation seems rather slow, so I wonder if it introduces an unpleasant delay. Plus, what would you do?

I'm under the impression that we're already suffering from WARNING fatigue. Many responses have warnings and they are rarely checked. Or?

I'm thinking it might be a nice addition to do validation but then include as is, but it's not obvious that it needs to be done.

amykglen commented 3 years ago

yep, good points. I'm not sure it's worth doing any extra validation.

I did just report this issue to Ryan Roper though. perhaps that's all we should do when we see things like this!

amykglen commented 3 years ago

Ryan said they weren't aware of this problem and that they'll fix it.

guess I'll close this issue since it seems there isn't anything further to do on our end.