Skip to content

Commit

Permalink
Add annotate-nodes operation to MolePro TRAPI 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vdancik committed Sep 28, 2021
1 parent aa08df1 commit c8b0c98
Showing 1 changed file with 49 additions and 34 deletions.
83 changes: 49 additions & 34 deletions molecular_data_provider/MolePro-TRAPI-1.2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
description: Molecular Data Provider for NCATS Biomedical Translator
version: 1.2.0.0
version: 1.2.1.0
title: Molecular Data Provider for NCATS Biomedical Translator
contact:
email: [email protected]
Expand All @@ -23,10 +23,11 @@ info:
url: https://github.com/NCATSTranslator/translator_extensions/blob/\
production/x-translator/
x-trapi:
version: 1.2.0
version: 1.2.1
asyncquery: false
operations:
- lookup
- annotate_nodes
externalDocs:
description: >-
The values for version are restricted according to the regex in
Expand Down Expand Up @@ -187,27 +188,31 @@ components:
nullable: true
workflow:
description: List of workflow steps to be executed.
type: array
items:
type: object
properties:
id:
type: string
allOf:
- $ref: http://standards.ncats.io/workflow/1.0.0/schema
nullable: true
submitter:
type: string
description: >-
Any string for self-identifying the submitter of a query. The
purpose of this optional field is to aid in the tracking of
the source of queries for development and issue resolution.
nullable: true
additionalProperties: true
example:
message:
query_graph:
edges:
e00:
subject: n00
predicate: 'biolink:affects'
predicates: ['biolink:affects']
object: n01
nodes:
n00:
id: 'PUBCHEM.COMPOUND:2244'
category: 'biolink:ChemicalSubstance'
ids: ['PUBCHEM.COMPOUND:2244']
categories: ['biolink:SmallMolecule']
n01:
category: 'biolink:Gene'
categories: ['biolink:Gene']
required:
- message
AsyncQuery:
Expand Down Expand Up @@ -245,12 +250,16 @@ components:
nullable: true
workflow:
description: List of workflow steps to be executed.
type: array
items:
type: object
properties:
id:
type: string
allOf:
- $ref: http://standards.ncats.io/workflow/1.0.0/schema
nullable: true
submitter:
type: string
description: >-
Any string for self-identifying the submitter of a query. The
purpose of this optional field is to aid in the tracking of
the source of queries for development and issue resolution.
nullable: true
additionalProperties: true
required:
- callback
Expand Down Expand Up @@ -291,12 +300,9 @@ components:
nullable: true
workflow:
description: List of workflow steps that were executed.
type: array
items:
type: object
properties:
id:
type: string
allOf:
- $ref: http://standards.ncats.io/workflow/1.0.0/schema
nullable: true
additionalProperties: true
required:
- message
Expand Down Expand Up @@ -421,6 +427,7 @@ components:
A numerical score associated with this result indicating the
relevance or confidence of this result relative to others in the
returned set. Higher MUST be better.
nullable: true
additionalProperties: true
required:
- node_bindings
Expand Down Expand Up @@ -561,18 +568,18 @@ components:
to AND)
items:
$ref: '#/components/schemas/QueryConstraint'
nullable: true
default: []
additionalProperties: true
QEdge:
type: object
description: >-
An edge in the QueryGraph used as an filter pattern specification in a
query. If optional predicate or relation properties are not specified,
they are assumed to be wildcard matches to the target knowledge space.
query. If the optional predicate property is not specified,
it is assumed to be a wildcard match to the target knowledge space.
If specified, the ontological inheritance hierarchy associated with
the terms provided is assumed, such that edge bindings returned may be
an exact match to the given QEdge predicate or relation term ('class'),
or to a term which is a subclass of the QEdge specified term.
the term provided is assumed, such that edge bindings returned may be
an exact match to the given QEdge predicate term,
or to a term that is a descendant of the QEdge predicate term.
properties:
predicates:
type: array
Expand Down Expand Up @@ -602,7 +609,7 @@ components:
to AND)
items:
$ref: '#/components/schemas/QueryConstraint'
nullable: true
default: []
additionalProperties: true
required:
- subject
Expand Down Expand Up @@ -879,7 +886,9 @@ components:
for which the predicate is the most specific available.
items:
$ref: '#/components/schemas/MetaEdge'
minItems: 1
required:
- nodes
- edges
MetaNode:
type: object
description: >-
Expand All @@ -900,6 +909,7 @@ components:
Node attributes provided by this TRAPI web service.
items:
$ref: '#/components/schemas/MetaAttribute'
nullable: true
required:
- id_prefixes
additionalProperties: false
Expand Down Expand Up @@ -930,6 +940,7 @@ components:
Edge attributes provided by this TRAPI web service.
items:
$ref: '#/components/schemas/MetaAttribute'
nullable: true
required:
- subject
- predicate
Expand All @@ -949,12 +960,15 @@ components:
description: >-
Source of an attribute provided by this TRAPI web service.
example: infores:chembl
nullable: true
original_attribute_names:
type: array
items:
type: string
description: >-
Names of an the attribute as provided by the source.
nullable: true
minItems: 1
constraint_use:
type: boolean
description: >-
Expand All @@ -967,6 +981,7 @@ components:
Human-readable name or label for the constraint concept.
Required whenever constraint_use is true.
example: p-value
nullable: true
required:
- attribute_type_id
QueryConstraint:
Expand All @@ -985,7 +1000,6 @@ components:
submit the new type for consideration by the appropriate
authority.
example: EDAM:data_0844
nullable: false
name:
type: string
description: >-
Expand All @@ -994,7 +1008,6 @@ components:
as the 'id'. This is redundant but required for human
readability.
example: molecular mass
nullable: false
not:
type: boolean
default: false
Expand Down Expand Up @@ -1035,6 +1048,7 @@ components:
property. The Units of Measurement Ontology (UO) should be used
if possible. The unit_id MUST be provided for (lists of)
numerical values that correspond to a quantity that has units.
nullable: true
unit_name:
example: kilodalton
description: >-
Expand All @@ -1043,6 +1057,7 @@ components:
property. The Units of Measurement Ontology (UO) SHOULD be used
if possible. This property SHOULD be provided if a unit_id is
provided. This is redundant but recommended for human readability.
nullable: true
required:
- name
- id
Expand Down

0 comments on commit c8b0c98

Please sign in to comment.