eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.eRQL.model
Class Query

java.lang.Object
  extended byeworks.eRQL.model.ModelComponent
      extended byeworks.eRQL.model.Value
          extended byeworks.eRQL.model.Query
Direct Known Subclasses:
DocumentQuery, PoiQuery, StatementQuery

public class Query
extends Value

Abstract base class for subqueries.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

Field Summary
protected  Value value
           
 
Constructor Summary
Query()
          Creates an empty statement query.
Query(Value value)
          Creates an query and encapsulated the given value.
 
Method Summary
 Value compact()
          Compacts this query and returns the result.
 Tuples query(RqlEngine rqlEngine)
          Evaluates this query and returns the result using the given rqlEngine.
 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
 

Field Detail

value

protected Value value
Constructor Detail

Query

public Query()
Creates an empty statement query.


Query

public Query(Value value)
Creates an query and encapsulated the given value.

Method Detail

toString

public String toString()
Returns this query's string representation.

Overrides:
toString in class ModelComponent
Returns:
this query's string representation.

compact

public Value compact()
Compacts this query and returns the result.

Overrides:
compact in class Value
Returns:
the compacted query.

query

public Tuples query(RqlEngine rqlEngine)
             throws RqlExecutingException
Evaluates this query and returns the result using the given rqlEngine.

Specified by:
query in class Value
Parameters:
rqlEngine - The RqlEngine to execute.
Returns:
the query's result.
Throws:
RqlExecutingException - if something goes wrong.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/