Package org.apache.jena.query
Class QueryExecutionFactory
- java.lang.Object
-
- org.apache.jena.query.QueryExecutionFactory
-
public class QueryExecutionFactory extends java.lang.ObjectPlace to make QueryExecution objects from Query objects or a string.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryExecutioncreate(java.lang.String queryStr)Create a QueryExecutionstatic QueryExecutioncreate(java.lang.String queryStr, Dataset dataset)Create a QueryExecution to execute over the Dataset.static QueryExecutioncreate(java.lang.String queryStr, Dataset dataset, QuerySolution initialBinding)Create a QueryExecution over a Dataset given some initial values of variables.static QueryExecutioncreate(java.lang.String queryStr, QuerySolution initialBinding)Create a QueryExecution given some initial values of variables.static QueryExecutioncreate(java.lang.String queryStr, Syntax syntax)Create a QueryExecutionstatic QueryExecutioncreate(java.lang.String queryStr, Syntax syntax, Dataset dataset)Create a QueryExecution to execute over the Dataset.static QueryExecutioncreate(java.lang.String queryStr, Syntax syntax, Dataset dataset, QuerySolution initialBinding)Create a QueryExecution over a Dataset given some initial values of variables.static QueryExecutioncreate(java.lang.String queryStr, Syntax syntax, QuerySolution initialBinding)Create a QueryExecution given some initial values of variables.static QueryExecutioncreate(java.lang.String queryStr, Syntax lang, Model model)Create a QueryExecution to execute over the Model.static QueryExecutioncreate(java.lang.String queryStr, Syntax syntax, Model model, QuerySolution initialBinding)Create a QueryExecution to execute over the Model, given some initial values of variables.static QueryExecutioncreate(java.lang.String queryStr, Model model)Create a QueryExecution to execute over the Model.static QueryExecutioncreate(java.lang.String queryStr, Model model, QuerySolution initialBinding)Create a QueryExecution to execute over the Model, given some initial values of variables.static QueryExecutioncreate(Query query)Create a QueryExecutionstatic QueryExecutioncreate(Query query, Dataset dataset)Create a QueryExecution to execute over the Dataset.static QueryExecutioncreate(Query query, Dataset dataset, QuerySolution initialBinding)Create a QueryExecution over a Dataset given some initial values of variables.static QueryExecutioncreate(Query query, QuerySolution initialBinding)Create a QueryExecution to execute over the Model.static QueryExecutioncreate(Query query, Model model)Create a QueryExecution to execute over the Model.static QueryExecutioncreate(Query query, Model model, QuerySolution initialBinding)Create a QueryExecution to execute over the Model, given some initial values of variables.static QueryExecutioncreate(Query query, DatasetGraph datasetGraph)Create a QueryExecution to execute over theDatasetGraph.static PlancreatePlan(Query query, DatasetGraph dataset, Binding input)static PlancreatePlan(Query query, DatasetGraph dataset, Binding input, Context context)static QueryEngineHTTPcreateServiceRequest(java.lang.String service, Query query)Create a service request for remote execution over HTTP.static QueryEngineHTTPcreateServiceRequest(java.lang.String service, Query query, org.apache.http.client.HttpClient client)Create a service request for remote execution over HTTP.static QueryEngineHTTPcreateServiceRequest(java.lang.String service, Query query, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a service request for remote execution over HTTP.static QueryExecutionsparqlService(java.lang.String service, java.lang.String query)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, java.lang.String defaultGraph)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, java.lang.String query, org.apache.http.client.HttpClient client)static QueryExecutionsparqlService(java.lang.String service, java.lang.String query, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, java.lang.String defaultGraph)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, org.apache.http.client.HttpClient client)Create a QueryExecution that will access a SPARQL service over HTTPstatic QueryExecutionsparqlService(java.lang.String service, Query query, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)Create a QueryExecution that will access a SPARQL service over HTTP
-
-
-
Method Detail
-
create
public static QueryExecution create(Query query)
Create a QueryExecution- Parameters:
query- Query- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr)
Create a QueryExecution- Parameters:
queryStr- Query string- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Syntax syntax)
Create a QueryExecution- Parameters:
queryStr- Query stringsyntax- Query syntax- Returns:
- QueryExecution
-
create
public static QueryExecution create(Query query, Dataset dataset)
Create a QueryExecution to execute over the Dataset.- Parameters:
query- Querydataset- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(Query query, DatasetGraph datasetGraph)
Create a QueryExecution to execute over theDatasetGraph.- Parameters:
query- QuerydatasetGraph- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Dataset dataset)
Create a QueryExecution to execute over the Dataset.- Parameters:
queryStr- Query stringdataset- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Syntax syntax, Dataset dataset)
Create a QueryExecution to execute over the Dataset.- Parameters:
queryStr- Query stringsyntax- Query languagedataset- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(Query query, Model model)
Create a QueryExecution to execute over the Model.- Parameters:
query- Querymodel- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Model model)
Create a QueryExecution to execute over the Model.- Parameters:
queryStr- Query stringmodel- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Syntax lang, Model model)
Create a QueryExecution to execute over the Model.- Parameters:
queryStr- Query stringlang- Query languagemodel- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(Query query, QuerySolution initialBinding)
Create a QueryExecution to execute over the Model.- Parameters:
query- Query stringinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, QuerySolution initialBinding)
Create a QueryExecution given some initial values of variables.- Parameters:
queryStr- QueryStringinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Syntax syntax, QuerySolution initialBinding)
Create a QueryExecution given some initial values of variables.- Parameters:
queryStr- QueryStringsyntax- Query language syntaxinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(Query query, Model model, QuerySolution initialBinding)
Create a QueryExecution to execute over the Model, given some initial values of variables.- Parameters:
query- Querymodel- Target of the queryinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Model model, QuerySolution initialBinding)
Create a QueryExecution to execute over the Model, given some initial values of variables.- Parameters:
queryStr- Query stringmodel- Target of the queryinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Syntax syntax, Model model, QuerySolution initialBinding)
Create a QueryExecution to execute over the Model, given some initial values of variables.- Parameters:
queryStr- Query stringsyntax- Query languagemodel- Target of the queryinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(Query query, Dataset dataset, QuerySolution initialBinding)
Create a QueryExecution over a Dataset given some initial values of variables.- Parameters:
query- Querydataset- Target of the queryinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Dataset dataset, QuerySolution initialBinding)
Create a QueryExecution over a Dataset given some initial values of variables.- Parameters:
queryStr- Query stringdataset- Target of the queryinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
create
public static QueryExecution create(java.lang.String queryStr, Syntax syntax, Dataset dataset, QuerySolution initialBinding)
Create a QueryExecution over a Dataset given some initial values of variables.- Parameters:
queryStr- Query stringdataset- Target of the queryinitialBinding- Any initial binding of variables- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query string to execute- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, org.apache.http.client.HttpClient client)
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query string to executeclient- HTTP clienthttpContext- HTTP Context- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, java.lang.String defaultGraph)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query string to executedefaultGraph- URI of the default graph- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query string to executedefaultGraph- URI of the default graphclient- HTTP client- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query string to executedefaultGraph- URI of the default graphclient- HTTP clienthttpContext- HTTP Context- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
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 graphs- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
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 graphsclient- HTTP client- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, java.lang.String query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
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 graphsclient- HTTP clienthttpContext- HTTP Context- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query to execute- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, org.apache.http.client.HttpClient client)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query to executeclient- HTTP client- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query to executeclient- HTTP client- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
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 graphs- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
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 graphsclient- HTTP client- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, java.util.List<java.lang.String> defaultGraphURIs, java.util.List<java.lang.String> namedGraphURIs, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
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 graphsclient- HTTP clienthttpContext- HTTP Context- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, java.lang.String defaultGraph)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query to executedefaultGraph- URI of the default graph- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query to executedefaultGraph- URI of the default graphclient- HTTP client- Returns:
- QueryExecution
-
sparqlService
public static QueryExecution sparqlService(java.lang.String service, Query query, java.lang.String defaultGraph, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a QueryExecution that will access a SPARQL service over HTTP- Parameters:
service- URL of the remote servicequery- Query to executedefaultGraph- URI of the default graphclient- HTTP client- Returns:
- QueryExecution
-
createServiceRequest
public static QueryEngineHTTP createServiceRequest(java.lang.String service, Query query)
Create a service request for remote execution over HTTP. The returned class,QueryEngineHTTP, allows various HTTP specific parameters to be set.- Parameters:
service- Endpoint URLquery- Query- Returns:
- Remote Query Engine
-
createServiceRequest
public static QueryEngineHTTP createServiceRequest(java.lang.String service, Query query, org.apache.http.client.HttpClient client)
Create a service request for remote execution over HTTP. The returned class,QueryEngineHTTP, allows various HTTP specific parameters to be set.- Parameters:
service- Endpoint URLquery- Queryclient- HTTP client- Returns:
- Remote Query Engine
-
createServiceRequest
public static QueryEngineHTTP createServiceRequest(java.lang.String service, Query query, org.apache.http.client.HttpClient client, org.apache.http.protocol.HttpContext httpContext)
Create a service request for remote execution over HTTP. The returned class,QueryEngineHTTP, allows various HTTP specific parameters to be set.- Parameters:
service- Endpoint URLquery- Queryclient- HTTP clienthttpContext- HTTP Context- Returns:
- Remote Query Engine
-
createPlan
public static Plan createPlan(Query query, DatasetGraph dataset, Binding input, Context context)
-
createPlan
public static Plan createPlan(Query query, DatasetGraph dataset, Binding input)
-
-