org.openrdf.sesame.query.rdql
Class RdqlEngine

java.lang.Object
  extended byorg.openrdf.sesame.query.rdql.RdqlEngine

public class RdqlEngine
extends Object

QueryEngine for RDQL queries.


Constructor Summary
RdqlEngine(RdfSource rdfSource)
          Creates a new QueryEngine that will use the supplied RdfSource for retrieving the data.
 
Method Summary
 void evaluateQuery(TableQuery tableQuery, TableQueryResultListener tableListener)
          Evaluates the supplied TableQuery and reports the results to the supplied TableQueryResultListener.
 TableQuery parseQuery(String rdqlQuery)
          Parses the supplied RDQL query and builds a query model from it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdqlEngine

public RdqlEngine(RdfSource rdfSource)
Creates a new QueryEngine that will use the supplied RdfSource for retrieving the data.

Throws:
IllegalArgumentException - If the supplied RdfSource is equal to null.
Method Detail

evaluateQuery

public void evaluateQuery(TableQuery tableQuery,
                          TableQueryResultListener tableListener)
                   throws IOException,
                          QueryEvaluationException
Evaluates the supplied TableQuery and reports the results to the supplied TableQueryResultListener.

Throws:
IOException - If an I/O error occurred during the writing of the results.
QueryEvaluationException - If an error occurred during query evaluation.

parseQuery

public TableQuery parseQuery(String rdqlQuery)
                      throws MalformedQueryException
Parses the supplied RDQL query and builds a query model from it.

Returns:
The query model.
Throws:
MalformedQueryException - If the query was syntactically incorrect.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.