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

QNode and QEdge fixes #471

Open
wants to merge 3 commits into
base: 1.5
Choose a base branch
from
Open
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
19 changes: 16 additions & 3 deletions TranslatorReasonerAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -770,13 +770,15 @@ components:
referenced elsewhere in the TRAPI output by the dictionary key.
additionalProperties:
$ref: '#/components/schemas/Node'
nullable: false
edges:
type: object
description: >-
Dictionary of Edge instances used in the KnowledgeGraph,
referenced elsewhere in the TRAPI output by the dictionary key.
additionalProperties:
$ref: '#/components/schemas/Edge'
nullable: false
additionalProperties: true
required:
- nodes
Expand All @@ -796,6 +798,7 @@ components:
on bound nodes.
additionalProperties:
$ref: '#/components/schemas/QNode'
nullable: false
edges:
type: object
description: >-
Expand All @@ -805,6 +808,7 @@ components:
QNodes.
additionalProperties:
$ref: '#/components/schemas/QEdge'
nullable: false
additionalProperties: true
required:
- nodes
Expand Down Expand Up @@ -855,7 +859,10 @@ components:
to AND)
items:
$ref: '#/components/schemas/AttributeConstraint'
default: []
minItems: 0
nullable: false
required:
- constraints
additionalProperties: true
QEdge:
type: object
Expand Down Expand Up @@ -899,13 +906,15 @@ components:
Corresponds to the map key identifier of the
subject concept node anchoring the query filter
pattern for the query relationship edge.
nullable: false
object:
type: string
example: https://www.uniprot.org/uniprot/P00738
description: >-
Corresponds to the map key identifier of the
object concept node anchoring the query filter
pattern for the query relationship edge.
nullable: false
attribute_constraints:
type: array
description: >-
Expand All @@ -914,7 +923,8 @@ components:
to AND)
items:
$ref: '#/components/schemas/AttributeConstraint'
default: []
nullable: false
minItems: 0
qualifier_constraints:
type: array
description: >-
Expand All @@ -927,11 +937,14 @@ components:
because these complex use cases are not supported at this time.
items:
$ref: '#/components/schemas/QualifierConstraint'
default: []
nullable: false
minItems: 0
additionalProperties: true
required:
- subject
- object
- attribute_constraints
- qualifier_constraints
Node:
type: object
description: >-
Expand Down