|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteworks.RQL.model.Query
Represents a RQL query.
Remark: Currently RqlEngine does not support nested queries (subqueries), although RQL itself does support them. In future this class could be used for representing a query's subqueries as well.
Constructor Summary | |
Query()
Creates a new and empty RQL query. |
|
Query(ProjectionList pl,
RangeList rangeList,
DisjunctionCondition c,
boolean distinct)
Creates a new query with a certain projection list, range list and disjunction condition. |
Method Summary | |
void |
compact()
Compacts this query. |
Tuples |
execute(Model model)
Executes this query with an empty symbol table. |
Tuples |
execute(SymbolTable symbols,
Model model)
Executes this query with a given symbol table. |
ProjectionList |
getProjection()
Returns this query's projection list. |
RangeList |
getRange()
Returns this query's range. |
Condition |
getSelection()
Returns this query's condition used to select, that's the WHERE
clause according to the RQL syntax. |
boolean |
isDistinct()
Returns true if there are no duplicates allowed in this
query's result. |
void |
setProjection(ProjectionList pl)
Sets this query's projection list. |
void |
setRange(RangeList rangeList)
Sets this query's range. |
String |
toString()
Returns this query's string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Query()
public Query(ProjectionList pl, RangeList rangeList, DisjunctionCondition c, boolean distinct)
pl
- The projection list to use.rangeList
- The range list to use.c
- The disjunction condition to use.distinct
- If set to true
, there will be no duplicates
in this query's result. (See SQL.)Method Detail |
public boolean isDistinct()
true
if there are no duplicates allowed in this
query's result.
true
if and only if there are no duplicates allowed.public Condition getSelection()
WHERE
clause according to the RQL syntax.
public ProjectionList getProjection()
public void setProjection(ProjectionList pl)
pl
- This query's new projection list.public RangeList getRange()
public void setRange(RangeList rangeList)
rangeList
- This query's new range.public String toString()
public void compact()
compact()
-method and storeing the result.
public Tuples execute(Model model) throws VariableAlreadyBoundException, VariableNotBoundException
model
- The model to be used.
VariableAlreadyBoundException
- if one and the same variable is tried
to be bound twice while evaluating this query.
VariableNotBoundException
- if a variable's value is being used
although the variable itself has not been bound.public Tuples execute(SymbolTable symbols, Model model) throws VariableAlreadyBoundException, VariableNotBoundException
symbols
- The initial symbol table to be used.model
- The model to be used.
VariableAlreadyBoundException
- if one and the same variable is tried
to be bound twice while evaluating this query.
VariableNotBoundException
- if a variable's value is being used
although the variable itself has not been bound.
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |