org.jrdf.sparql
Class SparqlConnectionImpl

java.lang.Object
  extended by org.jrdf.sparql.SparqlConnectionImpl
All Implemented Interfaces:
SparqlConnection

public final class SparqlConnectionImpl
extends Object
implements SparqlConnection

Default implementation of a SparqlConnection.

Version:
$Id: SparqlConnectionImpl.java 982 2006-12-08 08:42:51Z newmana $
Author:
Tom Adams

Constructor Summary
SparqlConnectionImpl(QueryBuilder builder, QueryEngine queryEngine)
          Creates a new SPARQL connection.
 
Method Summary
 Answer executeQuery(Graph graph, String queryText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparqlConnectionImpl

public SparqlConnectionImpl(QueryBuilder builder,
                            QueryEngine queryEngine)
Creates a new SPARQL connection.

Parameters:
builder - the query builder that builds queries.
queryEngine - the engine that executed the query.
Method Detail

executeQuery

public Answer executeQuery(Graph graph,
                           String queryText)
                    throws InvalidQuerySyntaxException,
                           GraphException
Specified by:
executeQuery in interface SparqlConnection
Throws:
InvalidQuerySyntaxException
GraphException