The Pipeline

‍

expr : stage*
stage : model_stage | service_stage | pipe_stage

‍

The Pipeline Stages

‍

model_stage : model_step (rma_option_step | filters | includes)*
service_stage : service_step filters
pipe_stage : pipe_step filters

‍

Axis Steps

‍

model_step : 'model' '::' ID
rma_step : 'rma' '::' ID
rma_option_step : 'rma' '::' 'option'
attribute_step : ('attribute' '::')? ID
service_step : 'service' '::' ID
pipe_step : 'pipe' '::' ID

‍

Filters

‍

filters : ('[' qcolumn operator filter_list ']')+
qcolumn : (ID '.')? ID
operator :  '$' ('eq' | 'ne' | 'li' | 'gt' | 'lt' | 'ge' | 'le' | 'in' | 'il' | 'is')
filter_list : filter_element (',' filter_element)*
filter_element : (STRING | REAL | INTEGER | variable | qcolumn | NIL)

‍

Association Includes (and Criteria)

‍

includes : attribute_step filters? ('(' include_terms ')')+
include_terms : includes (',' includes)*

‍

Literals

‍

STRING : '\'' (.)* '\''
REAL : INTEGER* '.' INTEGER+ ;
INTEGER : DIGIT+;
variable : '$' ID
ID : (ID_START | '*') (ID_CHAR | WILDCARD)*
ID_CHAR  ID_START | DIGIT ;
ID_START : ('A'..'Z' | 'a'..'z' | '_' )
DIGIT : '0'..'9'

Explore More Resources

API
Connected Services and Pipes

Learn about Connected Services and Pipes with comprehensive guides and examples from Allen Institute for Brain Science.

API
Restful Model Access RMA

Learn about Restful Model Access RMA with comprehensive guides and examples from Allen Institute for Brain Science.

API
Quantified Data By Structures

Learn about Quantified Data By Structures with comprehensive guides and examples from Allen Institute for Brain Science.