From 370311917f650c3261cabb0c7c3553096c978a15 Mon Sep 17 00:00:00 2001 From: Colleen Xu Date: Thu, 13 Jul 2023 22:27:23 -0700 Subject: [PATCH] multiple service provider kps: fix prefix handling for GO IDs --- go_bp/smartapi.yaml | 20 ++++++++++---------- go_cc/smartapi.yaml | 8 ++++---- go_mf/smartapi.yaml | 8 ++++---- mygene.info/openapi_full.yml | 6 +++--- quickgo/smartapi.yaml | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/go_bp/smartapi.yaml b/go_bp/smartapi.yaml index 04759d41..86f9dd0f 100644 --- a/go_bp/smartapi.yaml +++ b/go_bp/smartapi.yaml @@ -586,7 +586,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -609,7 +609,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -632,7 +632,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -659,7 +659,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: negatively_regulates.go outputs: - id: GO @@ -687,7 +687,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -714,7 +714,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: positively_regulates.go outputs: - id: GO @@ -742,7 +742,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -766,7 +766,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: regulates.go outputs: - id: GO @@ -791,7 +791,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -813,7 +813,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: part_of.go outputs: - id: GO diff --git a/go_cc/smartapi.yaml b/go_cc/smartapi.yaml index 057d347c..fb130b36 100644 --- a/go_cc/smartapi.yaml +++ b/go_cc/smartapi.yaml @@ -580,7 +580,7 @@ components: semantic: CellularComponent requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -602,7 +602,7 @@ components: semantic: CellularComponent requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -625,7 +625,7 @@ components: semantic: CellularComponent requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -647,7 +647,7 @@ components: semantic: CellularComponent requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: part_of.go outputs: - id: GO diff --git a/go_mf/smartapi.yaml b/go_mf/smartapi.yaml index 2effb4ef..6952cc62 100644 --- a/go_mf/smartapi.yaml +++ b/go_mf/smartapi.yaml @@ -580,7 +580,7 @@ components: semantic: MolecularActivity requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -602,7 +602,7 @@ components: semantic: MolecularActivity requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -625,7 +625,7 @@ components: semantic: MolecularActivity requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: _id outputs: - id: GO @@ -647,7 +647,7 @@ components: semantic: MolecularActivity requestBody: body: - q: "{{ queryInputs }}" + q: "{{ queryInputs | replPrefix('GO') }}" scopes: part_of.go outputs: - id: GO diff --git a/mygene.info/openapi_full.yml b/mygene.info/openapi_full.yml index 61c38748..f0145cbc 100644 --- a/mygene.info/openapi_full.yml +++ b/mygene.info/openapi_full.yml @@ -957,7 +957,7 @@ components: semantic: BiologicalProcess requestBody: body: - q: "{{ queryInputs }}" ## HAS PREFIX (GO) + q: "{{ queryInputs | replPrefix('GO') }}" ## HAS PREFIX (GO) scopes: go.BP.id outputs: - id: NCBIGene @@ -1012,7 +1012,7 @@ components: semantic: MolecularActivity requestBody: body: - q: "{{ queryInputs }}" ## HAS PREFIX (GO) + q: "{{ queryInputs | replPrefix('GO') }}" ## HAS PREFIX (GO) scopes: go.MF.id outputs: - id: NCBIGene @@ -1067,7 +1067,7 @@ components: semantic: CellularComponent requestBody: body: - q: "{{ queryInputs }}" ## HAS PREFIX (GO) + q: "{{ queryInputs | replPrefix('GO') }}" ## HAS PREFIX (GO) scopes: go.CC.id outputs: - id: NCBIGene diff --git a/quickgo/smartapi.yaml b/quickgo/smartapi.yaml index 7432ea2c..d3fc83fc 100644 --- a/quickgo/smartapi.yaml +++ b/quickgo/smartapi.yaml @@ -54,7 +54,7 @@ components: - id: GO semantic: MolecularActivity parameters: - goid: "{{ queryInputs }}" ## has prefix (GO) + goid: "{{ queryInputs | replPrefix('GO') }}" ## has prefix (GO) outputs: - id: GO semantic: MolecularActivity