java.lang.Object
org.apache.jena.query.QueryExecutionFactory
QueryExecutionFactory
provides some convenience operations for making
QueryExecution
objects. It is not comprehensive and only covers common,
simple cases.
For more control of building a local or remote QueryExecution
object see
the builder patterns such as:
QueryExecution.create(). ... .build()
for querying local data.QueryExecution.service(url). ... .build()
for querying a remote store using HTTP.
See also RDFConnection
for working with SPARQL Query, SPARQL Update and SPARQL Graph Store Protocol together.
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryExecution
Create a QueryExecutionstatic QueryExecution
Create a QueryExecution to execute over the Dataset.static QueryExecution
Create a QueryExecutionstatic QueryExecution
Create a QueryExecution to execute over the Dataset.static QueryExecution
Create a QueryExecution to execute over the Model.static QueryExecution
Create a QueryExecution to execute over the Model.static QueryExecution
Create a QueryExecutionstatic QueryExecution
Create a QueryExecution to execute over the Dataset.static QueryExecution
create
(Query query, Dataset dataset, QuerySolution querySolution) Deprecated.static QueryExecution
Create a QueryExecution to execute over the Model.static QueryExecution
create
(Query query, org.apache.jena.rdf.model.Model model, QuerySolution querySolution) Deprecated.UseQueryExecution#model(model).query(query).substitution(querySolution).build()
.static QueryExecution
create
(Query query, DatasetGraph datasetGraph) Create a QueryExecution to execute over theDatasetGraph
.
-
Method Details
-
create
Create a QueryExecution- Parameters:
query
- Query- Returns:
- QueryExecution
-
create
Create a QueryExecution- Parameters:
queryStr
- Query string- Returns:
- QueryExecution
-
create
Create a QueryExecution- Parameters:
queryStr
- Query stringsyntax
- Query syntax- Returns:
- QueryExecution
-
create
Create a QueryExecution to execute over the Dataset.- Parameters:
query
- Querydataset
- Target of the query- Returns:
- QueryExecution
-
create
Create a QueryExecution to execute over theDatasetGraph
.- Parameters:
query
- QuerydatasetGraph
- Target of the query- Returns:
- QueryExecution
-
create
Create a QueryExecution to execute over the Dataset.- Parameters:
queryStr
- Query stringdataset
- Target of the query- Returns:
- QueryExecution
-
create
Create a QueryExecution to execute over the Dataset.- Parameters:
queryStr
- Query stringsyntax
- Query languagedataset
- Target of the query- Returns:
- QueryExecution
-
create
Create a QueryExecution to execute over the Model.- Parameters:
query
- Querymodel
- Target of the query- Returns:
- QueryExecution
-
create
Create a QueryExecution to execute over the Model.- Parameters:
queryStr
- Query stringmodel
- Target of the query- Returns:
- QueryExecution
-
create
public static QueryExecution create(String queryStr, Syntax lang, org.apache.jena.rdf.model.Model model) Create a QueryExecution to execute over the Model.- Parameters:
queryStr
- Query stringlang
- Query languagemodel
- Target of the query- Returns:
- QueryExecution
-
create
@Deprecated public static QueryExecution create(Query query, Dataset dataset, QuerySolution querySolution) Deprecated.UseQueryExecution.dataset(dataset).query(query).substitution(querySolution).build()
.Create a QueryExecution over a Dataset given some initial values of variables.- Parameters:
query
- Querydataset
- Target of the queryquerySolution
- Any initial binding of variables- Returns:
- QueryExecution
-
create
@Deprecated public static QueryExecution create(Query query, org.apache.jena.rdf.model.Model model, QuerySolution querySolution) Deprecated.UseQueryExecution#model(model).query(query).substitution(querySolution).build()
.Create a QueryExecution over a Model given some initial values of variables.- Parameters:
query
- Querymodel
- Target of the queryquerySolution
- Any initial binding of variables- Returns:
- QueryExecution
-
QueryExecution.dataset(dataset).query(query).substitution(querySolution).build()
.