Searches of the primary tree in the database can be carried out using a simple expression grammar. The resulting tree is then displayed in an interactive 3D graph. The expression grammar consists of 5 binary operators and a unary operator.

The unary operator(@) retrieves a set of nodeids associated with a nodeid,the value of AB, or a tree index. If no tree index is given then the primary tree is searched. Depth can also be specified.

For example:



The 5 binary operators are: PATH returns a single subtree that contains the union of both sets of nodeids and will, if necessary, add nodeids not present in either set in order to complete the subtree.
UNION, COMPLEMENT, INTERSECTION, and SYMMETRIC DIFFERENCE are basic set operations and do NOT combine both sets of nodeids into a single subtree.
some examples ...


Below are some examples and explanations of trees used in some of the compositions



2to4-ints
Database: template=0010100100000000 x 498; just stopping case = true; starting section = 1/360 * Φ11 || 1/360 * Φ12.
Search: @%2:1:0:1 > @%4:1:0:1
returns the subtree that contains all nodes where one endpoint equals 2:1:0:1 or 4:1:0:1.
Note that the value 2:1:0:1 is equal to 2/1, since the irrational part represented by 0:1 equals zero.
Used in the compostion "smallscale".





just ratios
Database: template=0010100100000000 x 498; just stopping case = true; starting section = 1/360 * Φ11 || 1/360 * Φ12.
Search: @%4:1:0:1 > @%16:3:0:1
used in the compostion "smallscale". notice that this turnas out to simply extend the previous graph. The cones in both graphs represent the just ratios of 2/1, 4/1, 16/3.





just ratios
Database: template=0010100100000000 x 498; just stopping case = true; starting section = 1/360 * Φ11 || 1/360 * Φ12.
Search: @$442 > @$69324
used in the compostion "xxcomp".





just ratios
Database: template=0010100100000000 x 498; just stopping case = true; starting section = 1/360 * Φ11 || 1/360 * Φ12.
Search: @$69324 > @$349
used in the compostion "xxcomp".





just ratios
Database: template=0010100100000000 x 498; just stopping case = true; starting section = 1/360 * Φ11 || 1/360 * Φ12.
Search: @$397 > @$376
Subtree displayed represents the path between two nodes with nodeids 397 and 376. Subtree can be displayed as a new tree or it can simply be overlaid on the current one using a different path color as it is here.




just ratios
Database: template=0010100100000000 x 498; just stopping case = true; starting section = 1/360 * Φ11 || 1/360 * Φ12.
Search: @d400%1:1:0:1 + @d400%16:15:0:1 + @d400%9:8:0:1 + ... etc.
search of primary tree for all just ratios in the given list.
The subtrees (one for each just ratio) were then combined after the search into one connected subtree. This could have also been accomplished with @d400%1:1:0:1 > @d400%16:15:0:1 > @d400%9:8:0:1 + ... etc.