|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP
public class QueryEngineHTTP
| Field Summary | |
|---|---|
static String |
QUERY_MIME_TYPE
|
| Constructor Summary | |
|---|---|
QueryEngineHTTP(String serviceURI,
Query query)
|
|
QueryEngineHTTP(String serviceURI,
String queryString)
|
|
| Method Summary | |
|---|---|
void |
abort()
Stop in mid execution. |
void |
addDefaultGraph(String defaultGraph)
|
void |
addNamedGraph(String name)
|
void |
addParam(String field,
String value)
|
void |
cancel()
|
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 |
execConstruct(com.hp.hpl.jena.rdf.model.Model model)
Execute a CONSTRUCT query, putting the statements into 'model'. |
com.hp.hpl.jena.rdf.model.Model |
execDescribe()
Execute a DESCRIBE query |
com.hp.hpl.jena.rdf.model.Model |
execDescribe(com.hp.hpl.jena.rdf.model.Model model)
Execute a DESCRIBE query, putting the statements into 'model'. |
ResultSet |
execSelect()
Execute a SELECT query |
Context |
getContext()
The properties associated with a query execution - implementation specific parameters This includes Java objects (so it is not an RDF graph). |
Dataset |
getDataset()
The dataset against which the query will execute. |
Query |
getQuery()
The query associated with a query execution. |
void |
setBasicAuthentication(String user,
char[] password)
Set user and password for basic authentication. |
void |
setDefaultGraphURIs(List<String> defaultGraphURIs)
|
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. |
void |
setInitialBindings(ResultSet table)
|
void |
setNamedGraphURIs(List<String> namedGraphURIs)
|
void |
setTimeout(long timeout)
Set time, in milliseconds |
void |
setTimeout(long timeout1,
long timeout2)
Set time, in milliseconds |
void |
setTimeout(long timeout,
TimeUnit timeoutUnits)
Set a timeout on the query execution. |
void |
setTimeout(long timeout1,
TimeUnit timeUnit1,
long timeout2,
TimeUnit timeUnit2)
Set timeouts on the query execution; the first timeout refers to time to first result, the second refers to overall query execution after the first result. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String QUERY_MIME_TYPE
| Constructor Detail |
|---|
public QueryEngineHTTP(String serviceURI,
Query query)
public QueryEngineHTTP(String serviceURI,
String queryString)
| Method Detail |
|---|
public void setFileManager(com.hp.hpl.jena.util.FileManager fm)
QueryExecution
setFileManager in interface QueryExecutionpublic void setInitialBinding(QuerySolution binding)
QueryExecution
setInitialBinding in interface QueryExecutionpublic void setInitialBindings(ResultSet table)
public void setDefaultGraphURIs(List<String> defaultGraphURIs)
defaultGraphURIs - The defaultGraphURIs to set.public void setNamedGraphURIs(List<String> namedGraphURIs)
namedGraphURIs - The namedGraphURIs to set.
public void addParam(String field,
String value)
public void addDefaultGraph(String defaultGraph)
defaultGraph - The defaultGraph to add.public void addNamedGraph(String name)
name - The URI to add.
public void setBasicAuthentication(String user,
char[] password)
user - password - public ResultSet execSelect()
QueryExecution
execSelect in interface QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execConstruct()
QueryExecution
execConstruct in interface QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execConstruct(com.hp.hpl.jena.rdf.model.Model model)
QueryExecution
execConstruct in interface QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execDescribe()
QueryExecution
execDescribe in interface QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execDescribe(com.hp.hpl.jena.rdf.model.Model model)
QueryExecution
execDescribe in interface QueryExecutionpublic boolean execAsk()
QueryExecution
execAsk in interface QueryExecutionpublic Context getContext()
QueryExecution
getContext in interface QueryExecutionpublic Dataset getDataset()
QueryExecution
getDataset in interface QueryExecutionpublic Query getQuery()
QueryExecution
getQuery in interface QueryExecutionpublic void setTimeout(long timeout)
QueryExecution
setTimeout in interface QueryExecutionQueryExecution.setTimeout(long, TimeUnit)
public void setTimeout(long timeout1,
long timeout2)
QueryExecution
setTimeout in interface QueryExecutionQueryExecution.setTimeout(long, TimeUnit, long, TimeUnit)
public void setTimeout(long timeout,
TimeUnit timeoutUnits)
QueryExecution
setTimeout in interface QueryExecution
public void setTimeout(long timeout1,
TimeUnit timeUnit1,
long timeout2,
TimeUnit timeUnit2)
QueryExecution
setTimeout in interface QueryExecutionpublic void cancel()
public void abort()
QueryExecution
abort in interface QueryExecutionpublic void close()
QueryExecution
close in interface QueryExecutionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||