org.openrdf.sesame.query.serql
Class SerqlEngine

java.lang.Object
  extended byorg.openrdf.sesame.query.serql.SerqlEngine

public class SerqlEngine
extends Object

QueryEngine for SeRQL queries.


Constructor Summary
SerqlEngine(RdfSource rdfSource)
          Creates a new QueryEngine that will use the supplied RdfSource for retrieving the data.
 
Method Summary
 void evaluateConstructQuery(GraphQuery graphQuery, GraphQueryResultListener graphListener)
           
 void evaluateSelectQuery(TableQuery tableQuery, TableQueryResultListener tableListener)
          Evaluates the supplied SerqlQuery and reports the results to the supplied QueryResultListener.
 GraphQuery parseGraphQuery(String graphQuery)
          Parses the supplied SeRQL-construct query and builds a query model from it.
 TableQuery parseTableQuery(String tableQuery)
          Parses the supplied SeRQL-select 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

SerqlEngine

public SerqlEngine(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

evaluateSelectQuery

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

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

evaluateConstructQuery

public void evaluateConstructQuery(GraphQuery graphQuery,
                                   GraphQueryResultListener graphListener)
                            throws IOException,
                                   QueryEvaluationException
Throws:
IOException
QueryEvaluationException

parseTableQuery

public TableQuery parseTableQuery(String tableQuery)
                           throws MalformedQueryException
Parses the supplied SeRQL-select query and builds a query model from it.

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

parseGraphQuery

public GraphQuery parseGraphQuery(String graphQuery)
                           throws MalformedQueryException
Parses the supplied SeRQL-construct 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.