| Package | Description |
|---|---|
| org.eclipse.rdf4j.query |
Interfaces and classes for handling queries and query results.
|
| org.eclipse.rdf4j.query.dawg |
Functionality to convert tuple query results to and from the
Data Access Working Group Test Result Set RDF Vocabulary
|
| org.eclipse.rdf4j.query.impl |
| Modifier and Type | Class and Description |
|---|---|
class |
QueryInterruptedException
An exception indicating that the evaluation of a query has been interrupted, for example because it took too long to
complete.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.rdf4j.model.Model |
QueryResults.asModel(org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,? extends RDF4JException> iteration)
Get a
Model containing all elements obtained from the specified query result. |
static org.eclipse.rdf4j.model.Model |
QueryResults.asModel(org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,? extends RDF4JException> iteration,
org.eclipse.rdf4j.model.ModelFactory modelFactory)
Get a
Model containing all elements obtained from the specified query result. |
static boolean |
QueryResults.equals(GraphQueryResult result1,
GraphQueryResult result2)
Compares two graph query results and returns
true if they are equal. |
static boolean |
QueryResults.equals(TupleQueryResult tqr1,
TupleQueryResult tqr2)
Compares two tuple query results and returns
true if they are equal.Tuple query results are equal if they
contain the same set of BindingSets and have the same headers. |
boolean |
BooleanQuery.evaluate() |
GraphQueryResult |
GraphQuery.evaluate() |
TupleQueryResult |
TupleQuery.evaluate() |
void |
GraphQuery.evaluate(RDFHandler handler) |
void |
TupleQuery.evaluate(TupleQueryResultHandler handler) |
static List<org.eclipse.rdf4j.model.Value> |
QueryResults.getAllValues(TupleQueryResult result,
String var)
Returns a list of values of a particular variable out of the QueryResult.
|
List<String> |
TupleQueryResult.getBindingNames()
Gets the names of the bindings, in order of projection.
|
Map<String,String> |
GraphQueryResult.getNamespaces()
Retrieves relevant namespaces from the query result.
|
static boolean |
QueryResults.isSubset(TupleQueryResult tqr1,
TupleQueryResult tqr2) |
static void |
QueryResults.report(GraphQueryResult gqr,
RDFHandler rdfHandler)
Reports a graph query result to an
RDFHandler. |
static void |
QueryResults.report(TupleQueryResult tqr,
QueryResultHandler handler)
Reports a tuple query result to a
TupleQueryResultHandler. |
static org.eclipse.rdf4j.model.Statement |
QueryResults.singleResult(GraphQueryResult result)
Returns a single element from the query result.The QueryResult is automatically closed by this method.
|
static BindingSet |
QueryResults.singleResult(TupleQueryResult result)
Returns a single element from the query result.The QueryResult is automatically closed by this method.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.rdf4j.model.Model |
DAWGTestResultSetUtil.toGraph(TupleQueryResult tqr) |
| Modifier and Type | Method and Description |
|---|---|
protected QueryEvaluationException |
QueueCursor.convert(Exception e) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
IteratingTupleQueryResult.getBindingNames() |
protected void |
BackgroundGraphResult.handleClose() |
| Constructor and Description |
|---|
GraphQueryResultImpl(Map<String,String> namespaces,
org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,? extends QueryEvaluationException> statementIter)
Deprecated.
|
IteratingGraphQueryResult(Map<String,String> namespaces,
org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends org.eclipse.rdf4j.model.Statement,? extends QueryEvaluationException> statementIter) |
IteratingTupleQueryResult(List<String> bindingNames,
org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingSetIter)
Creates a query result object with the supplied binding names.
|
TupleQueryResultImpl(List<String> bindingNames,
org.eclipse.rdf4j.common.iteration.CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingSetIter)
Deprecated.
|
| Constructor and Description |
|---|
MutableTupleQueryResult(TupleQueryResult tqr) |
Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.