|
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.Range
eworks.RQL.model.StatementRange
Represents a RQL range that retrieves "RDF statements".
A RQL range is used to define a query's "data source", that's the expression after "FROM" according to the RQL syntax. A range is compareable to the list of table names (after "FROM" as well) according to the SQL syntax.
Field Summary |
Fields inherited from class eworks.RQL.model.Range |
expression, model |
Constructor Summary | |
StatementRange(DataVariable var1,
PropertyVariable var2,
DataVariable var3)
Creates a new statement range using two certain data variables and a certain property variable. |
Method Summary | |
void |
bindSymbols(SymbolTable symbols)
Binds the current hit's values to some symbols. |
boolean |
hasMoreHits()
Checks if there are more hits that can be iteratively retrieved using nextHit() . |
void |
nextHit()
Gets the next hit, if any. |
void |
reset()
Resets this range so that a succeeding call of nextHit()
will return the first hit (if any). |
Methods inherited from class eworks.RQL.model.Range |
bindModel, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StatementRange(DataVariable var1, PropertyVariable var2, DataVariable var3)
var1
- The data variable to be used fetching a statement's subject.var2
- The property variable to be used fetching a statement's property.var3
- The data variable to be used fetching a statement's object.Method Detail |
public void reset() throws NoModelBoundException
nextHit()
will return the first hit (if any).
reset
in class Range
NoModelBoundException
- if no model has been bound using
bindModel()
.nextHit()
,
Range.bindModel(Model)
public boolean hasMoreHits() throws NoModelBoundException
nextHit()
.
hasMoreHits
in class Range
true
if and only if there are more hits.
NoModelBoundException
- if no model has been bound using
bindModel()
.nextHit()
,
Range.bindModel(Model)
public void nextHit() throws NoModelBoundException, NoSuchElementException
hasMoreHits()
before to ensure that there is a further hit. After calling this method
bindSymbols()
can be used to bind the next hit's values to
some symbols.
nextHit
in class Range
NoModelBoundException
- if no model has been bound using
bindModel()
.
NoSuchElementException
- if there is no further hit.hasMoreHits()
,
bindSymbols(SymbolTable)
,
Range.bindModel(Model)
public void bindSymbols(SymbolTable symbols) throws NoModelBoundException, NoSuchElementException, VariableAlreadyBoundException, URISyntaxException
hasMoreHits()
and nextHit()
to ensure that
there is are some hits and to navigate iteratively forward trough them.
bindSymbols
in class Range
NoModelBoundException
- if no model has been bound using
bindModel()
.
NoSuchElementException
- if there is no current hit.
VariableAlreadyBoundException
- if the used variable has already
been bound to another value.
URISyntaxException
- if a ressource is no valid URI, see
Universal Resource identifiers in WWW.hasMoreHits()
,
nextHit()
,
Range.bindModel(Model)
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |