Open newgene opened 4 months ago
A reference metakg
object for the above API is here:
https://github.com/newgene/bte-py/blob/main/mygene_metakg.json
we should also have a validate_metakg
method to validate bte.query_operation
against the API metadata, e.g. api endpoint, parameters should match.
We want to create a new module, let's call it
call-apis_v2
module for now. It can be at a new folder ofbiothings_explorer.call-apis_v2
for now.Parsing of the metakg can reference this
get_metakg
method, usingutils.metakg.parser
(which is a slightly modified version ofsmartapi-kg
module here): https://github.com/SmartAPI/smartAPI/blob/aaebe5ac65b9cf67987afb1c69b2387960fce83e/src/controller/smartapi.py#L378Let's start with this one API, there will be other types of APIs in the future (e.g. TRAPI APIs, or APIs with different metakg fields).