com.hp.hpl.jena.sparql.lang.rdql
Class Q_Query
java.lang.Object
com.hp.hpl.jena.sparql.lang.rdql.SimpleNode
com.hp.hpl.jena.sparql.lang.rdql.Q_Query
- All Implemented Interfaces:
- RDQL_Node
public class Q_Query
- extends SimpleNode
Concrete result of parsing a query.
This is the top node in the abstract 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.
|
Method Summary |
void |
rdqlPhase2(Query q)
|
java.lang.String |
toString()
Formats the query from phase 2 in a style that is acceptable to the
parser. |
| Methods inherited from class com.hp.hpl.jena.sparql.lang.rdql.SimpleNode |
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, postParse1, postParse2, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Q_Query
public Q_Query(int id)
Q_Query
public Q_Query(RDQLParser p,
int id)
rdqlPhase2
public void rdqlPhase2(Query q)
toString
public java.lang.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
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.