public class QueryExecutionFactory extends Object
Modifier and Type | Method and Description |
---|---|
static QueryExecution |
create(Query query)
Create a QueryExecution
|
static QueryExecution |
create(Query query,
Dataset dataset)
Create a QueryExecution to execute over the Dataset.
|
static QueryExecution |
create(Query query,
Dataset dataset,
QuerySolution initialBinding)
Create a QueryExecution over a Dataset given some initial values of variables.
|
static QueryExecution |
create(Query query,
FileManager fm)
Create a QueryExecution : the file manager will be used to load
URIs in the query decription.
|
static QueryExecution |
create(Query query,
Model model)
Create a QueryExecution to execute over the Model.
|
static QueryExecution |
create(Query query,
Model model,
QuerySolution initialBinding)
Create a QueryExecution to execute over the Model,
given some initial values of variables.
|
static QueryExecution |
create(Query query,
QuerySolution initialBinding)
Create a QueryExecution to execute over the Model.
|
static QueryExecution |
create(String queryStr)
Create a QueryExecution
|
static QueryExecution |
create(String queryStr,
Dataset dataset)
Create a QueryExecution to execute over the Dataset.
|
static QueryExecution |
create(String queryStr,
Dataset dataset,
QuerySolution initialBinding)
Create a QueryExecution over a Dataset given some initial values of variables.
|
static QueryExecution |
create(String queryStr,
FileManager fm)
Create a QueryExecution : the file manager will be used to load
URIs in the query decription.
|
static QueryExecution |
create(String queryStr,
Model model)
Create a QueryExecution to execute over the Model.
|
static QueryExecution |
create(String queryStr,
Model model,
QuerySolution initialBinding)
Create a QueryExecution to execute over the Model,
given some initial values of variables.
|
static QueryExecution |
create(String queryStr,
QuerySolution initialBinding)
Create a QueryExecution given some initial values of variables.
|
static QueryExecution |
create(String queryStr,
Syntax syntax)
Create a QueryExecution
|
static QueryExecution |
create(String queryStr,
Syntax syntax,
Dataset dataset)
Create a QueryExecution to execute over the Dataset.
|
static QueryExecution |
create(String queryStr,
Syntax syntax,
Dataset dataset,
QuerySolution initialBinding)
Create a QueryExecution over a Dataset given some initial values of variables.
|
static QueryExecution |
create(String queryStr,
Syntax syntax,
FileManager fm)
Create a QueryExecution : the file manager will be used to load
URIs in the query decription.
|
static QueryExecution |
create(String queryStr,
Syntax lang,
Model model)
Create a QueryExecution to execute over the Model.
|
static QueryExecution |
create(String queryStr,
Syntax syntax,
Model model,
QuerySolution initialBinding)
Create a QueryExecution to execute over the Model,
given some initial values of variables.
|
static QueryExecution |
create(String queryStr,
Syntax syntax,
QuerySolution initialBinding)
Create a QueryExecution given some initial values of variables.
|
static Plan |
createPlan(Query query,
DatasetGraph dataset,
Binding input) |
static Plan |
createPlan(Query query,
DatasetGraph dataset,
Binding input,
Context context) |
static QueryEngineHTTP |
createServiceRequest(String service,
Query query)
Create a service request for remote execution over HTTP.
|
static QueryEngineHTTP |
createServiceRequest(String service,
Query query,
HttpAuthenticator authenticator)
Create a service request for remote execution over HTTP.
|
static QueryExecution |
sparqlService(String service,
Query query)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
Query query,
HttpAuthenticator authenticator)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
Query query,
List<String> defaultGraphURIs,
List<String> namedGraphURIs)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
Query query,
List<String> defaultGraphURIs,
List<String> namedGraphURIs,
HttpAuthenticator authenticator)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
Query query,
String defaultGraph)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
Query query,
String defaultGraph,
HttpAuthenticator authenticator)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
String query)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
String query,
HttpAuthenticator authenticator)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
String query,
List<String> defaultGraphURIs,
List<String> namedGraphURIs)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
String query,
List<String> defaultGraphURIs,
List<String> namedGraphURIs,
HttpAuthenticator authenticator)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
String query,
String defaultGraph)
Create a QueryExecution that will access a SPARQL service over HTTP
|
static QueryExecution |
sparqlService(String service,
String query,
String defaultGraph,
HttpAuthenticator authenticator)
Create a QueryExecution that will access a SPARQL service over HTTP
|
public static QueryExecution create(Query query)
query
- Querypublic static QueryExecution create(String queryStr)
queryStr
- Query stringpublic static QueryExecution create(String queryStr, Syntax syntax)
queryStr
- Query stringsyntax
- Query syntaxpublic static QueryExecution create(Query query, Dataset dataset)
query
- Querydataset
- Target of the querypublic static QueryExecution create(String queryStr, Dataset dataset)
queryStr
- Query stringdataset
- Target of the querypublic static QueryExecution create(String queryStr, Syntax syntax, Dataset dataset)
queryStr
- Query stringsyntax
- Query languagedataset
- Target of the querypublic static QueryExecution create(Query query, FileManager fm)
query
- Queryfm
- FileManagerpublic static QueryExecution create(String queryStr, FileManager fm)
queryStr
- Query stringfm
- FileManagerpublic static QueryExecution create(String queryStr, Syntax syntax, FileManager fm)
queryStr
- Query stringsyntax
- Syntaxfm
- FileManagerpublic static QueryExecution create(Query query, Model model)
query
- Querymodel
- Target of the querypublic static QueryExecution create(String queryStr, Model model)
queryStr
- Query stringmodel
- Target of the querypublic static QueryExecution create(String queryStr, Syntax lang, Model model)
queryStr
- Query stringlang
- Query languagemodel
- Target of the querypublic static QueryExecution create(Query query, QuerySolution initialBinding)
query
- Query stringinitialBinding
- Any initial binding of variablespublic static QueryExecution create(String queryStr, QuerySolution initialBinding)
queryStr
- QueryStringinitialBinding
- Any initial binding of variablespublic static QueryExecution create(String queryStr, Syntax syntax, QuerySolution initialBinding)
queryStr
- QueryStringsyntax
- Query language syntaxinitialBinding
- Any initial binding of variablespublic static QueryExecution create(Query query, Model model, QuerySolution initialBinding)
query
- Querymodel
- Target of the queryinitialBinding
- Any initial binding of variablespublic static QueryExecution create(String queryStr, Model model, QuerySolution initialBinding)
queryStr
- Query stringmodel
- Target of the queryinitialBinding
- Any initial binding of variablespublic static QueryExecution create(String queryStr, Syntax syntax, Model model, QuerySolution initialBinding)
queryStr
- Query stringsyntax
- Query languagemodel
- Target of the queryinitialBinding
- Any initial binding of variablespublic static QueryExecution create(Query query, Dataset dataset, QuerySolution initialBinding)
query
- Querydataset
- Target of the queryinitialBinding
- Any initial binding of variablespublic static QueryExecution create(String queryStr, Dataset dataset, QuerySolution initialBinding)
queryStr
- Query stringdataset
- Target of the queryinitialBinding
- Any initial binding of variablespublic static QueryExecution create(String queryStr, Syntax syntax, Dataset dataset, QuerySolution initialBinding)
queryStr
- Query stringdataset
- Target of the queryinitialBinding
- Any initial binding of variablespublic static QueryExecution sparqlService(String service, String query)
service
- URL of the remote servicequery
- Query string to executepublic static QueryExecution sparqlService(String service, String query, HttpAuthenticator authenticator)
service
- URL of the remote servicequery
- Query string to executeauthenticator
- HTTP Authenticatorpublic static QueryExecution sparqlService(String service, String query, String defaultGraph)
service
- URL of the remote servicequery
- Query string to executedefaultGraph
- URI of the default graphpublic static QueryExecution sparqlService(String service, String query, String defaultGraph, HttpAuthenticator authenticator)
service
- URL of the remote servicequery
- Query string to executedefaultGraph
- URI of the default graphauthenticator
- HTTP Authenticatorpublic static QueryExecution sparqlService(String service, String query, List<String> defaultGraphURIs, List<String> namedGraphURIs)
service
- URL of the remote servicequery
- Query string to executedefaultGraphURIs
- List of URIs to make up the default graphnamedGraphURIs
- List of URIs to make up the named graphspublic static QueryExecution sparqlService(String service, String query, List<String> defaultGraphURIs, List<String> namedGraphURIs, HttpAuthenticator authenticator)
service
- URL of the remote servicequery
- Query string to executedefaultGraphURIs
- List of URIs to make up the default graphnamedGraphURIs
- List of URIs to make up the named graphsauthenticator
- HTTP Authenticatorpublic static QueryExecution sparqlService(String service, Query query)
service
- URL of the remote servicequery
- Query to executepublic static QueryExecution sparqlService(String service, Query query, HttpAuthenticator authenticator)
service
- URL of the remote servicequery
- Query to executeauthenticator
- HTTP Authenticatorpublic static QueryExecution sparqlService(String service, Query query, List<String> defaultGraphURIs, List<String> namedGraphURIs)
service
- URL of the remote servicequery
- Query to executedefaultGraphURIs
- List of URIs to make up the default graphnamedGraphURIs
- List of URIs to make up the named graphspublic static QueryExecution sparqlService(String service, Query query, List<String> defaultGraphURIs, List<String> namedGraphURIs, HttpAuthenticator authenticator)
service
- URL of the remote servicequery
- Query to executedefaultGraphURIs
- List of URIs to make up the default graphnamedGraphURIs
- List of URIs to make up the named graphsauthenticator
- HTTP Authenticatorpublic static QueryExecution sparqlService(String service, Query query, String defaultGraph)
service
- URL of the remote servicequery
- Query to executedefaultGraph
- URI of the default graphpublic static QueryExecution sparqlService(String service, Query query, String defaultGraph, HttpAuthenticator authenticator)
service
- URL of the remote servicequery
- Query to executedefaultGraph
- URI of the default graphauthenticator
- HTTP Authenticatorpublic static QueryEngineHTTP createServiceRequest(String service, Query query)
QueryEngineHTTP
,
allows various HTTP specific parameters to be set.service
- Endpoint URLquery
- Querypublic static QueryEngineHTTP createServiceRequest(String service, Query query, HttpAuthenticator authenticator)
QueryEngineHTTP
,
allows various HTTP specific parameters to be set.service
- Endpoint URLquery
- Queryauthenticator
- HTTP Authenticatorpublic static Plan createPlan(Query query, DatasetGraph dataset, Binding input, Context context)
public static Plan createPlan(Query query, DatasetGraph dataset, Binding input)
Licenced under the Apache License, Version 2.0