com.hp.hpl.jena.query
Interface QueryExecution


public interface QueryExecution

A interface for a single execution of a query.

Version:
$Id: QueryExecution.java,v 1.19 2005/09/30 17:01:26 andy_seaborne Exp $
Author:
Andy Seaborne

Method Summary
 void abort()
          Stop in mid execution.
 void close()
          Close the query execution and stop query evaluation as soon as convenient.
 boolean execAsk()
          Execute an ASK query
 com.hp.hpl.jena.rdf.model.Model execConstruct()
          Execute a CONSTRUCT query
 com.hp.hpl.jena.rdf.model.Model execDescribe()
          Execute a DESCRIBE query
 ResultSet execSelect()
          Execute a SELECT query
 com.hp.hpl.jena.query.util.Context getContext()
          The properties associated with a query execution - implementation specific parameters This includes Java objects (so it is not an RDF graph).
 void setFileManager(com.hp.hpl.jena.util.FileManager fm)
          Set the FileManger that might be used to load files.
 void setInitialBinding(QuerySolution binding)
          Set the initial association of variables and values.
 

Method Detail

setFileManager

void setFileManager(com.hp.hpl.jena.util.FileManager fm)
Set the FileManger that might be used to load files. May not be supported by all QueryExecution implementations.

Throws:
UnsupportedMethodException

setInitialBinding

void setInitialBinding(QuerySolution binding)
Set the initial association of variables and values. May not be supported by all QueryExecution implementations.

Parameters:
binding -
Throws:
UnsupportedMethodException

getContext

com.hp.hpl.jena.query.util.Context getContext()
The properties associated with a query execution - implementation specific parameters This includes Java objects (so it is not an RDF graph). Keys should be URIs as strings. May be null (this implementation does not provide any configuration).


execSelect

ResultSet execSelect()
Execute a SELECT query


execConstruct

com.hp.hpl.jena.rdf.model.Model execConstruct()
Execute a CONSTRUCT query


execDescribe

com.hp.hpl.jena.rdf.model.Model execDescribe()
Execute a DESCRIBE query


execAsk

boolean execAsk()
Execute an ASK query


abort

void abort()
Stop in mid execution. No guarantee that the concrete implementation actual will stop or that it will do so immediately.


close

void close()
Close the query execution and stop query evaluation as soon as convenient. It is important to close query execution objects in order to release resources such as working memory and to stop the query execution. Some storage subsystems require explicit ends of operations and this operation will cause those to be called where necessary.



Copyright © 2004, 2005 Hewlett-Packard Development Company, LP