org.openrdf.jena
Class QueryExecutionSesame
java.lang.Object
org.openrdf.jena.QueryExecutionSesame
- All Implemented Interfaces:
- com.hp.hpl.jena.query.QueryExecution
public class QueryExecutionSesame
- extends Object
- implements com.hp.hpl.jena.query.QueryExecution
Run ARQ SPARQL queries on a Sesame Repository
- Author:
- Daniel Burkhart, grimnes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
model
Model model
logger
private Logger logger
query
protected String query
rep
protected Repository rep
queryCount
static int queryCount
queryInitialised
boolean queryInitialised
querylanguage
private QueryLanguage querylanguage
QueryExecutionSesame
public QueryExecutionSesame(String q,
Repository r,
QueryLanguage ql)
setFileManager
public void setFileManager(FileManager arg0)
- Specified by:
setFileManager in interface com.hp.hpl.jena.query.QueryExecution
setInitialBinding
public void setInitialBinding(com.hp.hpl.jena.query.QuerySolution arg0)
- Specified by:
setInitialBinding in interface com.hp.hpl.jena.query.QueryExecution
getContext
public com.hp.hpl.jena.query.util.Context getContext()
- Specified by:
getContext in interface com.hp.hpl.jena.query.QueryExecution
execSelect
public com.hp.hpl.jena.query.ResultSet execSelect()
- Specified by:
execSelect in interface com.hp.hpl.jena.query.QueryExecution
createResultSet
private com.hp.hpl.jena.query.ResultSet createResultSet(TupleQuery sesameQuery,
CloseableIterator<List<Value>> iter)
throws MalformedQueryException
- creates a ResultSet for a query q and RValueTupleIterator
- Parameters:
sesameQuery - iter -
- Returns:
- a resultset for the query q
- Throws:
MalformedQueryException
createResultsVars
private List<String> createResultsVars(com.hp.hpl.jena.query.Query q)
- reads out the variable Names from a query. If a "*" was used after
SELECT/DESCRIBE/CONSTRUCT, the query has to be parsed
- Parameters:
q -
- Returns:
- a list of variable names
execConstruct
public Model execConstruct()
- Specified by:
execConstruct in interface com.hp.hpl.jena.query.QueryExecution
execDescribe
public Model execDescribe()
- Specified by:
execDescribe in interface com.hp.hpl.jena.query.QueryExecution
execAsk
public boolean execAsk()
- Specified by:
execAsk in interface com.hp.hpl.jena.query.QueryExecution
abort
public void abort()
- Specified by:
abort in interface com.hp.hpl.jena.query.QueryExecution
close
public void close()
- Specified by:
close in interface com.hp.hpl.jena.query.QueryExecution