Skip to content
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

Use TRAPI 1.5 KP registrations #27

Merged
merged 4 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 33 additions & 30 deletions config/api_list.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
# APIs in this list are accessible by the main endpoints v1/query and v1/asyncquery
include:
# external (not Su / Wu Lab), non-TRAPI APIs
# annotated with SmartAPI x-bte
# also accessible by v1/team/Service Provider/ endpoints and by api-specific endpoints
- id: d22b657426375a5295e7da8a303b9893
name: Monarch API
- id: 0212611d1c670f9107baf00b77f0889a
Expand Down Expand Up @@ -103,45 +106,45 @@ include:
# not accessible by team or api-specific endpoints
# Notes: We don't ingest the following:
# - Automat-robokop: seems to repeat a lot of data that is in the other APIs
- id: 97da45e75266b021fae885735befad07
name: Automat-ctd(Trapi v1.4.0)
- id: a80b9c70e756453d1ce8971b59fe1778
name: Automat-drug-central(Trapi v1.4.0)
- id: 2575e053d0a631433b447995e1bc9602
name: Automat-gtex(Trapi v1.4.0)
- id: 387f7a2c21656ddfcce5ccf9ea459049
name: Automat-gtopdb(Trapi v1.4.0)
- id: cd9fc0ca8cc6d9f56bd56a34766de791
name: Automat-gwas-catalog(Trapi v1.4.0)
- id: 8a1e2c2eade9fe3a932ba1dbb7f85688
name: Automat-hetio(Trapi v1.4.0)
- id: 067d3a847117c6f42896cc8cd140a704
name: Automat-hgnc(Trapi v1.4.0)
- id: 0658e8749b9601a5faba5157ba12eb06
name: Automat-hmdb(Trapi v1.4.0)
- id: 43cf256c660cc5bdeac23fdd3063d474
name: Automat-human-goa(Trapi v1.4.0)
- id: 76a164ff43e7ab39a5b98a782f6361bf
name: Automat-icees-kg(Trapi v1.4.0)
- id: 0b0a4d48ccd9ad2fd34ee53c34f87e94
name: Automat-intact(Trapi v1.4.0)
- id: 26ca4939d437c411bcb65b85a9dc2b99
name: Automat-panther(Trapi v1.4.0)
- id: 1c71f68839a44b1b857e79ae7f7e3381
name: Automat-pharos(Trapi v1.4.0)
- id: 465ff6de7ddf35ca8b2df6c0b01e6554
name: Automat-viral-proteome(Trapi v1.4.0)
- id: f82c01b15c46e024212c1a3271aaef0b
name: Automat-ctd(Trapi v1.5.0)
- id: 673b9fc76973dfa5fe3ed151fdbfc807
name: Automat-drug-central(Trapi v1.5.0)
- id: eef72049e4e01c020b7799f711e0e65b
name: Automat-gtex(Trapi v1.5.0)
- id: 759df287a21c30cd514df323be02a84b
name: Automat-gtopdb(Trapi v1.5.0)
- id: 349fed5531c094c33f10c071efe9d0de
name: Automat-gwas-catalog(Trapi v1.5.0)
- id: a5fe24f987331b58191e67598118f369
name: Automat-hetionet(Trapi v1.5.0)
- id: 8671309d2b94e413a4c1f9a9f82e4660
name: Automat-hgnc(Trapi v1.5.0)
- id: 0a1c0f46f4950b82b1aa7dad27aad10a
name: Automat-hmdb(Trapi v1.5.0)
- id: cb7a43d444cb3dcbe8e3c78d314334cf
name: Automat-human-goa(Trapi v1.5.0)
- id: c64d583402f21cc85810d33befe49c86
name: Automat-icees-kg(Trapi v1.5.0)
- id: b4023595664163e0aec5e825da150e16
name: Automat-intact(Trapi v1.5.0)
- id: 3f78d3fb8a7a577fbc7cc0a913ac3fc5
name: Automat-panther(Trapi v1.5.0)
- id: 1f057c53d42694686369f0e542f965c6
name: Automat-pharos(Trapi v1.5.0)
- id: 2aca41fc6c3dc426ec6583d42603be02
name: Automat-viral-proteome(Trapi v1.5.0)
# TRAPI (Translator standard) APIs: COHD
# not accessible by team or api-specific endpoints
# notes on COHD:
# - DON'T INGEST 'Columbia Open Health Data (COHD)'/70117385218edc9bc01633829011dfcf
# IT IS NOT TRAPI (and may be outdated?)
# - COHD for COVID-19 should work but BTE gets a 500 when retrieving meta_knowledge_graph...
# smartapi ID fc8245e92c970298449294fc04211869
- id: af364143267ad5235bf78c1511223875
- id: d4290b6b5741e6da6cc6a6f42e0cfdb5
name: COHD TRAPI
# TRAPI (Translator standard) APIs: CHP
# not accessible by team or api-specific endpoints
- id: 23f770568b92b7a82063989b3ddd9706
- id: 412af63e15b73e5a30778aac84ce313f
name: Connections Hypothesis Provider API
exclude: [] # if adding exclude remove these square brackets
2 changes: 1 addition & 1 deletion src/controllers/cron/update_local_smartapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function getTRAPIWithPredicatesEndpoint(specs: Spec[]): API[] {
if ("/meta_knowledge_graph" in spec.paths) {
if (
Object.prototype.hasOwnProperty.call(spec.info["x-trapi"], "version") &&
spec.info["x-trapi"].version.includes("1.4")
spec.info["x-trapi"].version.includes("1.5")
) {
api["predicates_path"] = "/meta_knowledge_graph";
trapi.push(api);
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/threading/taskHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function runTask({
}: InnerTaskData) {
debug(`Worker thread ${threadId} beginning ${Piscina.workerData.queue} task.`);

global.SCHEMA_VERSION = "1.4.0";
global.SCHEMA_VERSION = "1.5.0";

global.parentPort = port;
port.postMessage({ threadId, registerId: true });
Expand Down
Loading