org.openrdf.sesame.query.rql
Class RqlEngine

java.lang.Object
  extended byorg.openrdf.sesame.query.rql.RqlEngine

public class RqlEngine
extends Object

QueryEngine for RQL queries.


Constructor Summary
RqlEngine(RdfSchemaSource rss)
          Creates a new QueryEngine that will use the supplied RdfSchemaSource for retrieving the data.
 
Method Summary
 void evaluateQuery(Query query, TableQueryResultListener resList)
          Evaluates the supplied Query and reports the results to the supplied TableQueryResultListener.
 Query parseQuery(String rqlQuery)
          Parses the supplied RQL 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

RqlEngine

public RqlEngine(RdfSchemaSource rss)
Creates a new QueryEngine that will use the supplied RdfSchemaSource for retrieving the data.

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

evaluateQuery

public void evaluateQuery(Query query,
                          TableQueryResultListener resList)
                   throws IOException,
                          QueryEvaluationException
Evaluates the supplied Query 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 Query parseQuery(String rqlQuery)
                 throws MalformedQueryException
Parses the supplied RQL 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.