This is an old revision of the document!
Table of Contents
Identifier on implicit QV
It is possible to associate a query variable declared implicitly with an identifier. This, enables the manual usage of that query variable, like any other final variable in the scope. The most common approach is: n:Node, where n is the query variable.
Node
When a Node variable is assigned to an identifier.
n1:Node n2:Node n <code> It is also possible to assign a identifier from the ''default'' Node type of the current graph, with the ''.'' (dot): (n represent any Node) <code java> n:.
Argument
When the argument of a Node is assigned to an identifier:
<code java> Sphere® <code>
r is the query variable assigned to the first argument in the node pattern of the sphere.
It is also possible to “skip” some of the arguments by either: a dot, or by omitting them:
<code java> N(,.,.,a,b,,) <code>
In the example above a and b are assigned to the 4th and 5th arguments of the node pattern of N.
