From 085ed25bcd0e7441404c30cb96ac67f1b6bd890c Mon Sep 17 00:00:00 2001 From: GitHubbit <10294502+GitHubbit@users.noreply.github.com> Date: Wed, 10 May 2023 11:11:25 -0400 Subject: [PATCH 1/3] Update smartapi.yaml Updates for compatibility with TRAPI 1.4 edge sources specification --- multiomics_clinical_trials/smartapi.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/multiomics_clinical_trials/smartapi.yaml b/multiomics_clinical_trials/smartapi.yaml index 97bff931..43669025 100644 --- a/multiomics_clinical_trials/smartapi.yaml +++ b/multiomics_clinical_trials/smartapi.yaml @@ -596,7 +596,8 @@ components: parameters: fields: >- object.UMLS, - association.edge_attributes + association.edge_attributes, + source.edge_sources size: 1000 predicate: related_to response_mapping: @@ -620,7 +621,8 @@ components: parameters: fields: >- subject.UMLS, - association.edge_attributes + association.edge_attributes, + source.edge_sources size: 1000 predicate: related_to response_mapping: @@ -632,6 +634,8 @@ components: treatment: UMLS: object.UMLS ## no prefix edge-attributes: association.edge_attributes + trapi_sources: source.edge_sources disease: UMLS: subject.UMLS ## no prefix edge-attributes: association.edge_attributes + trapi_sources: source.edge_sources From 97dd9fb0c52dfa5737293e86462ea93669751485 Mon Sep 17 00:00:00 2001 From: GitHubbit <10294502+GitHubbit@users.noreply.github.com> Date: Fri, 2 Jun 2023 14:21:05 -0400 Subject: [PATCH 2/3] Update smartapi.yaml https://github.com/biothings/biothings_explorer/issues/617#issuecomment-1562026459 Did mandatory TRAPI 1.3 edits --- multiomics_clinical_trials/smartapi.yaml | 30 ++++++++++-------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/multiomics_clinical_trials/smartapi.yaml b/multiomics_clinical_trials/smartapi.yaml index 87c593d2..cca88459 100644 --- a/multiomics_clinical_trials/smartapi.yaml +++ b/multiomics_clinical_trials/smartapi.yaml @@ -55,7 +55,7 @@ paths: - name: id in: path required: true - example: "00065273_C0025362_C0009079" + example: "00065273_C0009079_C0025362" schema: type: string - "$ref": "#/components/parameters/fields" @@ -119,8 +119,8 @@ paths: application/json: example: ids: - - "00065273_C0025362_C0009079" - - "00065273_C0025362_C0171023" + - "00065273_C0009079_C0025362" + - "00065273_C0171023_C0025362" schema: type: object properties: @@ -175,7 +175,7 @@ paths: API](https://docs.mychem.info/en/latest/doc/chem_query_service.html#query-syntax). in: query required: true - example: "subject.UMLS:C0006012" + example: "object.UMLS:C0006012" schema: type: string - "$ref": "#/components/parameters/fields" @@ -276,7 +276,7 @@ paths: - "C0006012" - "C0524620" scopes: - - "subject.UMLS" + - "object.UMLS" schema: type: object properties: @@ -589,15 +589,14 @@ components: ## API data has no prefix ## joinSafe is only needed if the delimiter isn't a comma q: "{{ queryInputs }}" - scopes: subject.UMLS + scopes: object.UMLS outputs: - id: UMLS semantic: Treatment parameters: fields: >- - object.UMLS, - association.edge_attributes, - source.edge_sources + subject.UMLS, + association.edge_attributes size: 1000 predicate: related_to response_mapping: @@ -614,15 +613,14 @@ components: requestBody: body: q: "{{ queryInputs }}" - scopes: object.UMLS + scopes: subject.UMLS outputs: - id: UMLS semantic: Disease parameters: fields: >- - subject.UMLS, - association.edge_attributes, - source.edge_sources + object.UMLS, + association.edge_attributes size: 1000 predicate: related_to response_mapping: @@ -632,10 +630,8 @@ components: # oneOutput: "UMLS:C0334579" ## anaplastic astrocytoma x-bte-response-mapping: treatment: - UMLS: object.UMLS ## no prefix + UMLS: subject.UMLS ## no prefix edge-attributes: association.edge_attributes - trapi_sources: source.edge_sources disease: - UMLS: subject.UMLS ## no prefix + UMLS: object.UMLS ## no prefix edge-attributes: association.edge_attributes - trapi_sources: source.edge_sources From 92d12e359e702a5740dc84a923ae03b750727071 Mon Sep 17 00:00:00 2001 From: GitHubbit <10294502+GitHubbit@users.noreply.github.com> Date: Wed, 14 Jun 2023 18:22:55 -0400 Subject: [PATCH 3/3] Changed YAML for TRAPI 1.3 --- multiomics_clinical_trials/smartapi.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/multiomics_clinical_trials/smartapi.yaml b/multiomics_clinical_trials/smartapi.yaml index cca88459..d0bb4669 100644 --- a/multiomics_clinical_trials/smartapi.yaml +++ b/multiomics_clinical_trials/smartapi.yaml @@ -29,12 +29,17 @@ servers: url: http://biothings.ncats.io/multiomics_clinicaltrials_kp x-maturity: production tags: -- name: association - name: treatment +- name: intervention - name: disease -- name: query +- name: condition - name: translator - name: biothings +- name: multiomics +- name: clinical +- name: trials +- name: clinical_trials +- name: bte paths: "/association/{id}": get: @@ -634,4 +639,4 @@ components: edge-attributes: association.edge_attributes disease: UMLS: object.UMLS ## no prefix - edge-attributes: association.edge_attributes + edge-attributes: association.edge_attributes \ No newline at end of file