Skip to content

Commit 4081b08

Browse files
authored
Merge pull request #546 from NCATSTranslator/simplify-bindings
Simplify binding structure
2 parents 311c723 + 572b49a commit 4081b08

1 file changed

Lines changed: 36 additions & 34 deletions

File tree

TranslatorReasonerAPI.yaml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,11 @@ components:
604604
The dictionary of Input Query Graph to Result Knowledge Graph node
605605
bindings where the dictionary keys are the key identifiers of the
606606
Query Graph nodes and the associated values of those keys are
607-
instances of NodeBinding schema type (see below). This value is an
608-
array of NodeBindings since a given query node may have multiple
609-
knowledge graph Node bindings in the result.
607+
instances of NodeBinding schema type (see below). Because a given
608+
QNode may have multiple knowledge Nodes bound in the result,
609+
the NodeBinding object may list multiple knowledge Nodes.
610610
additionalProperties:
611-
type: array
612-
items:
613-
$ref: '#/components/schemas/NodeBinding'
614-
minItems: 1
611+
$ref: '#/components/schemas/NodeBinding'
615612
minProperties: 1
616613
analyses:
617614
type: array
@@ -627,20 +624,23 @@ components:
627624
NodeBinding:
628625
type: object
629626
description: >-
630-
An instance of NodeBinding is a single KnowledgeGraph Node mapping,
631-
identified by the corresponding 'id' object key identifier of the
632-
Node within the Knowledge Graph. Instances of NodeBinding may
627+
A NodeBinding object defines all relevant KnowledgeGraph Node mappings,
628+
identified by the corresponding object key identifier(s) of the
629+
Node(s) within the Knowledge Graph. Instances of NodeBinding may
633630
include extra annotation in the form of additional properties.
634631
(such annotation is not yet fully standardized). Each Node
635632
Binding must bind directly to node in the original Query Graph.
636633
properties:
637-
id:
638-
$ref: '#/components/schemas/CURIE'
634+
ids:
635+
type: array
636+
items:
637+
$ref: '#/components/schemas/CURIE'
638+
minItems: 1
639639
description: >-
640-
The CURIE of a Node within the Knowledge Graph.
640+
The CURIEs of one or more Nodes within the Knowledge Graph.
641641
additionalProperties: true
642642
required:
643-
- id
643+
- ids
644644
Analysis:
645645
type: object
646646
description: >-
@@ -662,23 +662,19 @@ components:
662662
The dictionary of input Query Graph to Knowledge Graph edge
663663
bindings where the dictionary keys are the key identifiers of
664664
the Query Graph edges and the associated values of those keys
665-
are instances of EdgeBinding schema type (see below). This
666-
value is an array of EdgeBindings since a given query edge may
667-
resolve to multiple Knowledge Graph Edges.
665+
are instances of EdgeBinding schema type (see below). Because
666+
a given QEdge may have multiple knowledge Edges bound in the
667+
result, the EdgeBinding object may list multiple knowledge Edges.
668668
additionalProperties:
669-
type: array
670-
items:
671-
$ref: '#/components/schemas/EdgeBinding'
669+
$ref: '#/components/schemas/EdgeBinding'
672670
path_bindings:
673671
type: object
674672
minProperties: 1
675673
description: >-
676674
The dictionary of input Query Graph paths to Analysis paths,
677675
specifically only for pathfinder queries.
678676
additionalProperties:
679-
type: array
680-
items:
681-
$ref: '#/components/schemas/PathBinding'
677+
$ref: '#/components/schemas/PathBinding'
682678
score:
683679
type: number
684680
format: float
@@ -718,34 +714,40 @@ components:
718714
EdgeBinding:
719715
type: object
720716
description: >-
721-
A instance of EdgeBinding is a single KnowledgeGraph Edge mapping,
717+
An EdgeBinding object defines all relevant KnowledgeGraph Edge mappings,
722718
identified by the corresponding 'id' object key identifier of the
723719
Edge within the Knowledge Graph. Instances of EdgeBinding may include
724720
extra annotation (such annotation is not yet fully standardized).
725721
Edge bindings are captured within a specific reasoner's Analysis
726722
object because the Edges in the Knowledge Graph that get bound to
727723
the input Query Graph may differ between reasoners.
728724
properties:
729-
id:
730-
type: string
731-
description: The key identifier of a specific KnowledgeGraph Edge.
725+
ids:
726+
type: array
727+
items:
728+
type: string
729+
minItems: 1
730+
description: The key identifiers of specific KnowledgeGraph Edges.
732731
additionalProperties: true
733732
required:
734-
- id
733+
- ids
735734
PathBinding:
736735
type: object
737736
description: >-
738-
A instance of PathBinding is a single binding of an input QueryGraph
739-
path (the key to this object) with the AuxiliaryGraph id containing
737+
A PathBinding object binds a single QueryGraph path (the key to
738+
this object) to one or more relevant AuxiliaryGraph ids containing
740739
a list of edges in the path. The Auxiliary Graph does not convey any
741740
order of edges in the path.
742741
properties:
743-
id:
744-
type: string
745-
description: The key identifier of a specific auxiliary graph.
742+
ids:
743+
type: array
744+
items:
745+
type: string
746+
minItems: 1
747+
description: The key identifiers of specific auxiliary graphs.
746748
additionalProperties: true
747749
required:
748-
- id
750+
- ids
749751
AuxiliaryGraph:
750752
type: object
751753
description: >-

0 commit comments

Comments
 (0)