de.fuberlin.wiwiss.ng4j.triql.parser
Class Q_Query
java.lang.Object
de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
de.fuberlin.wiwiss.ng4j.triql.parser.Q_Query
- All Implemented Interfaces:
- Node
public class Q_Query
- extends SimpleNode
Concrete result of parsing a query.
This is the top node inth eabstract syntax tree generated by the jjtree/javacc grammar.
After being created this class builds a Query suitable for execution. After that,
this is not used, although many of the syntax tree nodes are used as they implement
the interfaces needed by the abstarct query model.
Q_Query
public Q_Query(int id)
Q_Query
public Q_Query(TriQLParser p,
int id)
buildQuery
public void buildQuery(TriQLQuery q)
toString
public String toString()
- Formats the query from phase 2 in a style that is acceptable to the
parser. Note this is NOT guaranteed to be the same as the original string
because we may have done optimizations or other rearranging.
It should give the same answers on the same dataset.
- Overrides:
toString
in class SimpleNode