bte-py's People
bte-py's Issues
Create a new version of call-apis module
We want to create a new module, let's call it call-apis_v2
module for now. It can be at a new folder of biothings_explorer.call-apis_v2
for now.
Class SmartAPI:
url # https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/master/mygene.info/openapi_full.yml
metadata # content of the above url, the OpenAPI metadata of this API
metakg # parsed metakg object for this API, see below
def list_metakg(self):
<return a list of metakg edges from self.metakg>
def get_edge(self, one_metakg_edge, input_id):
<call API with the input_id, based on one_metakg_edge, process response, then return response edge(s)>
def get_edges(self, one_metakg_edge, a_list_of_input_ids):
<batch of the get_edge>
Parsing of the metakg can reference this get_metakg
method, using utils.metakg.parser
(which is a slightly modified version of smartapi-kg
module here):
https://github.com/SmartAPI/smartAPI/blob/aaebe5ac65b9cf67987afb1c69b2387960fce83e/src/controller/smartapi.py#L378
Let'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).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.