Comments (7)
- need to consume new /meta_knowledge_graph endpoint to get the predicates information
- update input query graph to use new v1.1 format (mostly change word to its plural)
from call-apis.js.
Can potentially test with this TRAPI v1.1 example:
http://smart-api.info/registry?q=305a2909830b776df7a02b7207e4acc5
e.g. this should work:
http://api.bte.ncats.io/v1/smartapi/305a2909830b776df7a02b7207e4acc5/meta_knowledge_graph
from call-apis.js.
Also test an actual TRAPI query to a specific http://api.bte.ncats.io/v1/smartapi/<api_id>/query URL to confirm it's working.
from call-apis.js.
Update:
OpenPredict (trapi 1.1.0) works for testing this endpoint:
https://api.bte.ncats.io/v1/smartapi/e9f69b81e755e163fdf6c41a2b5e07c0/meta_knowledge_graph
However, the previous test url provided uses Automat KEGG (trapi 1.1.0) and it does not work (but should), it appears that this API is not making it into the specs file collected by our cron job that looks at the registry. We need to investigate why that is.
from call-apis.js.
@andrewsu @newgene I think the reason that API (Automat KEGG ) doesn't appear is because they have "/1.1/meta_knowledge_graph" instead of "/meta_knowledge_graph" thus failing our check and not being included. What should we do about it?
from call-apis.js.
*Note on why some of these APIs don't work for this endpoint: /v1/<ID>/meta_knowledge_graph
This endpoint will ultimately look through the specs.json (response from a query to SmartAPI for all translator APIs) for this API and look in the paths for a property "x-bte-kgs-operations" in them, if that is not found the operations returned will be 0 and that triggers an "error" on our side but it simply means that nothing was found. As I understand, this was the old way to specify operations now moved to its own endpoint: /meta_knowledge_graph
. How do we want to handle such cases? or is this endpoint going to be deprecated at some point?
from call-apis.js.
Can this issue be closed? I have another one currently open that's related...biothings/biothings_explorer#269
from call-apis.js.
Related Issues (12)
- Enable Debug module for this nodejs package HOT 1
- Enable semantic versioning for this packagge HOT 1
- Add logs to support BTE TRAPI interface
- migrate to TypeScript HOT 4
- fix url error in .versionrc
- Set up github actions for testing and coverage HOT 1
- clean up unused files and dependencies
- update biomedical_id_resolver dependency HOT 1
- add testing for query_queue and query_builder HOT 1
- Support Query TRAPI APIs HOT 1
- support templating language when constructing API calls HOT 3
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.
from call-apis.js.