-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add trapi version to Connections Hypothesis Provider #624
Conversation
This would bring our internal representation out of spec with the API name from SmartAPI, resulting in console warnings. We can still do it if the clarity is preferred. |
On a related note, currently we specify |
I'm not sure what @andrewsu's intent is: is it to change the API name in SmartAPI metaKG? I'm also not clear if the PR actually accomplishes this intent too... My understanding is that the API names in the API_LIST objects work like the registry IDs in those objects....they identify the registrations of KP APIs that we want BTE to use. So our current practice of making these names exact matches to the And for context:
|
And for what @tokebe asked, it looks like the COHD owners changed the I'd prefer not having these warnings....so I guess a quick fix is to change the API name for COHD so it matches the current But.....I don't want to confuse the original intent and stuff in this PR with the COHD stuff you're asking about... |
Yeah, I'd forgotten about the check we do relative to SmartAPI, a check that I still think is valuable. My intent was to have an easy and automated way to differentiate TRAPI APIs and x-bte APIs in the config file (for the purposes of creating a visualization of the BTE meta-kg). But I didn't think this one through enough -- not the right solution for that. I'd welcome alternate ideas on the goal above, but going to close this PR... (And yes, creating another PR for the COHD change sounds good to me...) |
@andrewsu you have a point that we only use comments to differentiate the different "categories" of APIs we have in the config file. I wonder if you have access to the SmartAPI yaml tags, since the TRAPI KPs will have the "trapi" tag and the APIs we use x-bte with won't...So, we actually don't have a tag for "this SmartAPI yaml has x-bte annotation"; and maybe it'd be useful to have this. I think BTE does keep track of which APIs are using x-bte annotations, which are BioThings APIs, which are TRAPI APIs.....but I'm not fully sure of how or where it does that. I think there's some amount of parsing in https://github.com/biothings/biothings_explorer/blob/main/src/controllers/cron/update_local_smartapi.js |
minor change to standardize with other entries, make it easier to parse out the x-bte meta-kg