GithubHelp home page GithubHelp logo

bte-py's People

Contributors

newgene avatar sengineer0 avatar

Watchers

 avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.