groimp-platform:xl-operators
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
groimp-platform:xl-operators [2024/11/29 16:53] – [Analytical Operators] tim | groimp-platform:xl-operators [2025/01/10 15:08] (current) – [Pattern predicates] gaetan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | XL-Operators are designed to simplify the usage of XL queries and rewriting rules. Moreover these operators | + | ===== Production |
- | In the following the operators a separated into Analytical and selection operators to either get a value for analysis or a node/ a collection of nodes for rewriting. | + | |
- | ====== Analytical Operators ====== | + | Production operators are operators that can be used in a production statement. |
- | | Command | description | example | | + | ==== Edge operators ==== |
- | | min((*// | + | |
- | | max((*// | + | |
- | | sum((*// | + | |
- | | mean((*// | + | |
- | | prod((*// | + | |
- | | count((*// | + | |
- | | empty((*// | + | |
- | | forall((*// | + | |
- | | exist((*// | + | |
+ | | whitespace | add node and connect with previous node, if any, by a successor edge | | ||
+ | | > | connect node with previous by a successor edge | | ||
+ | | < | connect node with previous by a reverse successor edge | | ||
+ | | %%< | ||
+ | | %%---%% | connect node with previous by a successor edge if there does not yet exist such an edge in either direction | | ||
+ | | %%+>%%, %%<+%%, %%< | ||
+ | | %%/>%%, %%</%%, %%</> | ||
+ | | %%-e-> | ||
+ | | %%-n->%% with a node-valued expression n | create a compound edge with n encoding the edge data | | ||
+ | | %%<-n-%% with a node-valued expression n | as before, but reverse direction | | ||
+ | | [, ] | define the starts and the end of a branch connected subgraph | | ||
- | For the operators min, | ||
- | ====== Selection Operators ====== | ||
- | | command | description| example| | ||
- | | first((*// | ||
- | | last((*// | ||
- | | slice((*// | ||
- | |selectWhere((*// | ||
- | |selectWhereMin((*// | ||
- | |selectWhereMax((*// | ||
- | |selectRandomly((*// | ||
- | |selectRandomly((*// | ||
- | |||
- | |||
- | ====== Other ====== | ||
- | |||
- | |command | description|example| | ||
- | | array((*// | ||
- | | string((*// | ||
- | |||
- | |||
- | |||
- | additional information can be found in the [[https:// |
groimp-platform/xl-operators.1732895623.txt.gz · Last modified: 2024/11/29 16:53 by tim