Skip to content

Commit c8b0c98

Browse files
committed
Add annotate-nodes operation to MolePro TRAPI 1.2.1
1 parent aa08df1 commit c8b0c98

File tree

1 file changed

+49
-34
lines changed

1 file changed

+49
-34
lines changed

molecular_data_provider/MolePro-TRAPI-1.2.yaml

Lines changed: 49 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.1
22
info:
33
description: Molecular Data Provider for NCATS Biomedical Translator
4-
version: 1.2.0.0
4+
version: 1.2.1.0
55
title: Molecular Data Provider for NCATS Biomedical Translator
66
contact:
77
@@ -23,10 +23,11 @@ info:
2323
url: https://github.com/NCATSTranslator/translator_extensions/blob/\
2424
production/x-translator/
2525
x-trapi:
26-
version: 1.2.0
26+
version: 1.2.1
2727
asyncquery: false
2828
operations:
2929
- lookup
30+
- annotate_nodes
3031
externalDocs:
3132
description: >-
3233
The values for version are restricted according to the regex in
@@ -187,27 +188,31 @@ components:
187188
nullable: true
188189
workflow:
189190
description: List of workflow steps to be executed.
190-
type: array
191-
items:
192-
type: object
193-
properties:
194-
id:
195-
type: string
191+
allOf:
192+
- $ref: http://standards.ncats.io/workflow/1.0.0/schema
193+
nullable: true
194+
submitter:
195+
type: string
196+
description: >-
197+
Any string for self-identifying the submitter of a query. The
198+
purpose of this optional field is to aid in the tracking of
199+
the source of queries for development and issue resolution.
200+
nullable: true
196201
additionalProperties: true
197202
example:
198203
message:
199204
query_graph:
200205
edges:
201206
e00:
202207
subject: n00
203-
predicate: 'biolink:affects'
208+
predicates: ['biolink:affects']
204209
object: n01
205210
nodes:
206211
n00:
207-
id: 'PUBCHEM.COMPOUND:2244'
208-
category: 'biolink:ChemicalSubstance'
212+
ids: ['PUBCHEM.COMPOUND:2244']
213+
categories: ['biolink:SmallMolecule']
209214
n01:
210-
category: 'biolink:Gene'
215+
categories: ['biolink:Gene']
211216
required:
212217
- message
213218
AsyncQuery:
@@ -245,12 +250,16 @@ components:
245250
nullable: true
246251
workflow:
247252
description: List of workflow steps to be executed.
248-
type: array
249-
items:
250-
type: object
251-
properties:
252-
id:
253-
type: string
253+
allOf:
254+
- $ref: http://standards.ncats.io/workflow/1.0.0/schema
255+
nullable: true
256+
submitter:
257+
type: string
258+
description: >-
259+
Any string for self-identifying the submitter of a query. The
260+
purpose of this optional field is to aid in the tracking of
261+
the source of queries for development and issue resolution.
262+
nullable: true
254263
additionalProperties: true
255264
required:
256265
- callback
@@ -291,12 +300,9 @@ components:
291300
nullable: true
292301
workflow:
293302
description: List of workflow steps that were executed.
294-
type: array
295-
items:
296-
type: object
297-
properties:
298-
id:
299-
type: string
303+
allOf:
304+
- $ref: http://standards.ncats.io/workflow/1.0.0/schema
305+
nullable: true
300306
additionalProperties: true
301307
required:
302308
- message
@@ -421,6 +427,7 @@ components:
421427
A numerical score associated with this result indicating the
422428
relevance or confidence of this result relative to others in the
423429
returned set. Higher MUST be better.
430+
nullable: true
424431
additionalProperties: true
425432
required:
426433
- node_bindings
@@ -561,18 +568,18 @@ components:
561568
to AND)
562569
items:
563570
$ref: '#/components/schemas/QueryConstraint'
564-
nullable: true
571+
default: []
565572
additionalProperties: true
566573
QEdge:
567574
type: object
568575
description: >-
569576
An edge in the QueryGraph used as an filter pattern specification in a
570-
query. If optional predicate or relation properties are not specified,
571-
they are assumed to be wildcard matches to the target knowledge space.
577+
query. If the optional predicate property is not specified,
578+
it is assumed to be a wildcard match to the target knowledge space.
572579
If specified, the ontological inheritance hierarchy associated with
573-
the terms provided is assumed, such that edge bindings returned may be
574-
an exact match to the given QEdge predicate or relation term ('class'),
575-
or to a term which is a subclass of the QEdge specified term.
580+
the term provided is assumed, such that edge bindings returned may be
581+
an exact match to the given QEdge predicate term,
582+
or to a term that is a descendant of the QEdge predicate term.
576583
properties:
577584
predicates:
578585
type: array
@@ -602,7 +609,7 @@ components:
602609
to AND)
603610
items:
604611
$ref: '#/components/schemas/QueryConstraint'
605-
nullable: true
612+
default: []
606613
additionalProperties: true
607614
required:
608615
- subject
@@ -879,7 +886,9 @@ components:
879886
for which the predicate is the most specific available.
880887
items:
881888
$ref: '#/components/schemas/MetaEdge'
882-
minItems: 1
889+
required:
890+
- nodes
891+
- edges
883892
MetaNode:
884893
type: object
885894
description: >-
@@ -900,6 +909,7 @@ components:
900909
Node attributes provided by this TRAPI web service.
901910
items:
902911
$ref: '#/components/schemas/MetaAttribute'
912+
nullable: true
903913
required:
904914
- id_prefixes
905915
additionalProperties: false
@@ -930,6 +940,7 @@ components:
930940
Edge attributes provided by this TRAPI web service.
931941
items:
932942
$ref: '#/components/schemas/MetaAttribute'
943+
nullable: true
933944
required:
934945
- subject
935946
- predicate
@@ -949,12 +960,15 @@ components:
949960
description: >-
950961
Source of an attribute provided by this TRAPI web service.
951962
example: infores:chembl
963+
nullable: true
952964
original_attribute_names:
953965
type: array
954966
items:
955967
type: string
956968
description: >-
957969
Names of an the attribute as provided by the source.
970+
nullable: true
971+
minItems: 1
958972
constraint_use:
959973
type: boolean
960974
description: >-
@@ -967,6 +981,7 @@ components:
967981
Human-readable name or label for the constraint concept.
968982
Required whenever constraint_use is true.
969983
example: p-value
984+
nullable: true
970985
required:
971986
- attribute_type_id
972987
QueryConstraint:
@@ -985,7 +1000,6 @@ components:
9851000
submit the new type for consideration by the appropriate
9861001
authority.
9871002
example: EDAM:data_0844
988-
nullable: false
9891003
name:
9901004
type: string
9911005
description: >-
@@ -994,7 +1008,6 @@ components:
9941008
as the 'id'. This is redundant but required for human
9951009
readability.
9961010
example: molecular mass
997-
nullable: false
9981011
not:
9991012
type: boolean
10001013
default: false
@@ -1035,6 +1048,7 @@ components:
10351048
property. The Units of Measurement Ontology (UO) should be used
10361049
if possible. The unit_id MUST be provided for (lists of)
10371050
numerical values that correspond to a quantity that has units.
1051+
nullable: true
10381052
unit_name:
10391053
example: kilodalton
10401054
description: >-
@@ -1043,6 +1057,7 @@ components:
10431057
property. The Units of Measurement Ontology (UO) SHOULD be used
10441058
if possible. This property SHOULD be provided if a unit_id is
10451059
provided. This is redundant but recommended for human readability.
1060+
nullable: true
10461061
required:
10471062
- name
10481063
- id

0 commit comments

Comments
 (0)