org.jrdf.connection
Interface JrdfConnection

All Known Subinterfaces:
SparqlConnection
All Known Implementing Classes:
DefaultSparqlConnection

public interface JrdfConnection

A connection through which to send textual commands.

Version:
$Revision: 1.1 $
Author:
Tom Adams

Method Summary
 void close()
          Closes the connection to the graph.
 Answer executeQuery(String query)
          Executes a query that returns results.
 

Method Detail

executeQuery

public Answer executeQuery(String query)
                    throws InvalidQuerySyntaxException,
                           JrdfConnectionException
Executes a query that returns results.

Parameters:
query - The query to execute.
Returns:
The answer to the query, will never be null.
Throws:
InvalidQuerySyntaxException - If the syntax of the query is incorrect.
JrdfConnectionException - If an error occurs while executing the query.

close

public void close()
Closes the connection to the graph.

Calling this method will close the underlying Graph, making it unusable for future use.