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

Treats refactor tmkp #143

Merged
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
50 changes: 23 additions & 27 deletions text_mining/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ info:
- Service Provider
biolink-version: "4.1.6"
servers:
- description: Encrypted Production server
url: https://biothings.ncats.io/text_mining_targeted_association
x-maturity: production
- url: https://biothings.test.transltr.io/text_mining_targeted_association
description: ITRB Test server
x-maturity: testing
- url: https://biothings.ci.transltr.io/text_mining_targeted_association
description: ITRB CI server
x-maturity: staging
tags:
- name: gene
- name: chemical
Expand Down Expand Up @@ -605,6 +608,7 @@ components:
## - for reverse operations, some edge attributes may seem odd (reversed subj/obj)
## - don't use subject.type/object.type in q, that came from SRI ID resolver and differs a lot between IDs of same namespace
## - use heuristics to specify input / output type. BTE will handle any discrepancies w/ SRI ID resolver...
## - DRUGBANK :SmallMolecule
## - MONDO: Disease
## - HP: PhenotypicFeaure
## - UniProtKB: Gene
Expand All @@ -620,15 +624,13 @@ components:
- id: DRUGBANK
semantic: SmallMolecule
requestBody:
body: >-
{
"q": [ {{ queryInputs | wrap( '["' , '","treats_or_applied_or_studied_to_treat"]') }} ],
"scopes": ["subject.DRUGBANK", "association.edge_label"]
}
body:
q: "{{ queryInputs }}"
scopes: subject.DRUGBANK
parameters:
fields: object.MONDO,association.edge_attributes,association.sources
size: 1000
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats AND _exists_:object.MONDO
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats_or_applied_or_studied_to_treat AND _exists_:object.MONDO
outputs:
- id: MONDO
semantic: Disease
Expand All @@ -647,15 +649,13 @@ components:
- id: MONDO
semantic: Disease
requestBody:
body: >-
{
"q": [ {{ queryInputs | wrap( '["' , '","treats_or_applied_or_studied_to_treat"]') }} ],
"scopes": ["object.MONDO", "association.edge_label"]
}
body:
q: "{{ queryInputs }}"
scopes: object.MONDO
parameters:
fields: subject.DRUGBANK,association.edge_attributes,association.sources
size: 1000
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats AND _exists_:object.MONDO
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats_or_applied_or_studied_to_treat AND _exists_:object.MONDO
outputs:
- id: DRUGBANK
semantic: SmallMolecule
Expand All @@ -674,15 +674,13 @@ components:
- id: DRUGBANK
semantic: SmallMolecule
requestBody:
body: >-
{
"q": [ {{ queryInputs | wrap( '["' , '","treats_or_applied_or_studied_to_treat"]') }} ],
"scopes": ["subject.DRUGBANK", "association.edge_label"]
}
body:
q: "{{ queryInputs }}"
scopes: subject.DRUGBANK
parameters:
fields: object.HP,association.edge_attributes,association.sources
size: 1000
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats AND _exists_:object.HP
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats_or_applied_or_studied_to_treat AND _exists_:object.HP
outputs:
- id: HP
semantic: PhenotypicFeature
Expand All @@ -701,15 +699,13 @@ components:
- id: HP
semantic: PhenotypicFeature
requestBody:
body: >-
{
"q": [ {{ queryInputs | wrap( '["' , '","treats_or_applied_or_studied_to_treat"]') }} ],
"scopes": ["object.HP", "association.edge_label"]
}
body:
q: "{{ queryInputs }}"
scopes: object.HP
parameters:
fields: subject.DRUGBANK,association.edge_attributes,association.sources
size: 1000
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats AND _exists_:object.HP
filter: _exists_:subject.DRUGBANK AND association.edge_label:treats_or_applied_or_studied_to_treat AND _exists_:object.HP
outputs:
- id: DRUGBANK
semantic: SmallMolecule
Expand Down