Skip to content

Commit 94b2d23

Browse files
committed
Update output field names to be consistent with other queries (#15)
1 parent e4621e2 commit 94b2d23

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

mapserver/competency/data/queries.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ queries:
692692
JOIN path_route_edges t ON r.destination_node_id = t.node_0 AND r.path_ids = t.path_ids AND r.source_id = t.source_id
693693
WHERE NOT r.node_ids @> ARRAY[t.node_1]
694694
)
695-
SELECT DISTINCT pnt.node_id as destination, pnt.source_id
695+
SELECT DISTINCT pnt.node_id AS axon_terminal, pnt.source_id
696696
FROM node_routes nr JOIN path_node_types pnt ON nr.destination_node_id = pnt.node_id AND nr.path_id = pnt.path_id AND nr.source_id = pnt.source_id
697697
WHERE pnt.type_id IN ('ilxtr:hasAxonPresynapticElementIn', 'ilxtr:hasAxonSensorySubcellularElementIn')
698698
parameters:
@@ -714,12 +714,12 @@ queries:
714714
- key: source_id
715715
label: Knowledge source
716716
type: string
717-
- key: destination
718-
label: Node as destination
717+
- key: axon_terminal
718+
label: Node as axon terminal
719719
type: string
720720

721721
- id: 14
722-
label: Nodes serving as the origin of a nerve, including those in the forward connections
722+
label: Nodes serving as the soma/origin of a nerve, including those in the forward connections
723723
sql: >
724724
WITH RECURSIVE
725725
path_routes AS (
@@ -776,7 +776,7 @@ queries:
776776
JOIN path_route_edges t ON r.start_node_id = t.node_1 AND r.path_ids = t.path_ids AND r.source_id = t.source_id
777777
WHERE NOT r.node_ids @> ARRAY[t.node_0]
778778
)
779-
SELECT DISTINCT pnt.source_id, pnt.node_id as origin
779+
SELECT DISTINCT pnt.source_id, pnt.node_id as soma
780780
FROM node_routes nr
781781
JOIN path_node_types pnt ON nr.start_node_id = pnt.node_id AND nr.path_id = pnt.path_id AND nr.source_id = pnt.source_id
782782
WHERE pnt.type_id IN ('ilxtr:hasSomaLocatedIn')
@@ -799,8 +799,8 @@ queries:
799799
- key: source_id
800800
label: Knowledge source
801801
type: string
802-
- key: origin
803-
label: Node as origin
802+
- key: soma
803+
label: Node as soma
804804
type: string
805805

806806
- id: 15
@@ -945,7 +945,7 @@ queries:
945945
type: string
946946

947947
- id: 18
948-
label: Parasympathetic forward connections with soma as source, axon-terminal as target, and routes related to a location
948+
label: Parasympathetic forward connections with soma as origin, axon-terminal as target, and routes related to a location
949949
sql: >
950950
WITH RECURSIVE
951951
para_pre AS (
@@ -1057,7 +1057,7 @@ queries:
10571057
type: list
10581058

10591059
- id: 19
1060-
label: Sympathetic forward connections with soma as source, axon-terminal as target, and routes related to a location
1060+
label: Sympathetic forward connections with soma as origin, axon-terminal as target, and routes related to a location
10611061
sql: >
10621062
WITH RECURSIVE
10631063
sym_pre AS (

0 commit comments

Comments
 (0)