Skip to content

Commit

Permalink
multiple service provider kps: fix prefix handling for GO IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Jul 14, 2023
1 parent bd4d5bc commit 3703119
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions go_bp/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -609,7 +609,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -632,7 +632,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -659,7 +659,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: negatively_regulates.go
outputs:
- id: GO
Expand Down Expand Up @@ -687,7 +687,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -714,7 +714,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: positively_regulates.go
outputs:
- id: GO
Expand Down Expand Up @@ -742,7 +742,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -766,7 +766,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: regulates.go
outputs:
- id: GO
Expand All @@ -791,7 +791,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -813,7 +813,7 @@ components:
semantic: BiologicalProcess
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: part_of.go
outputs:
- id: GO
Expand Down
8 changes: 4 additions & 4 deletions go_cc/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ components:
semantic: CellularComponent
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -602,7 +602,7 @@ components:
semantic: CellularComponent
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -625,7 +625,7 @@ components:
semantic: CellularComponent
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -647,7 +647,7 @@ components:
semantic: CellularComponent
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: part_of.go
outputs:
- id: GO
Expand Down
8 changes: 4 additions & 4 deletions go_mf/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ components:
semantic: MolecularActivity
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -602,7 +602,7 @@ components:
semantic: MolecularActivity
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -625,7 +625,7 @@ components:
semantic: MolecularActivity
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: _id
outputs:
- id: GO
Expand All @@ -647,7 +647,7 @@ components:
semantic: MolecularActivity
requestBody:
body:
q: "{{ queryInputs }}"
q: "{{ queryInputs | replPrefix('GO') }}"
scopes: part_of.go
outputs:
- id: GO
Expand Down
6 changes: 3 additions & 3 deletions mygene.info/openapi_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quickgo/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3703119

Please sign in to comment.