|
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.InstancesOfClassRange
Represents a RQL range that retrieves instances of "RDFS classes".
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 | |
InstancesOfClassRange(String className)
Creates a new range using the name of a certain "RDFS class". |
|
InstancesOfClassRange(String className,
Variable var)
Creates a new range using the name of a certain "RDFS class" and a certain variable to bound. |
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 InstancesOfClassRange(String className, Variable var)
className
- The name of the "RDFS class".var
- The variable to bound.public InstancesOfClassRange(String className)
className
- The name of the "RDFS class".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 |