| Package | Description |
|---|---|
| org.eclipse.rdf4j.query |
Interfaces and classes for handling queries and query results.
|
| org.eclipse.rdf4j.query.impl |
| Modifier and Type | Method and Description |
|---|---|
static GraphQueryResult |
QueryResults.distinctResults(GraphQueryResult queryResult)
Returns a
GraphQueryResult that filters out any duplicate solutions from the supplied
queryResult. |
GraphQueryResult |
GraphQuery.evaluate() |
static GraphQueryResult |
QueryResults.limitResults(GraphQueryResult queryResult,
long limit,
long offset)
Returns a
GraphQueryResult that returns at most the specified maximum number of solutions,
starting at the supplied offset. |
static GraphQueryResult |
QueryResults.parseGraphBackground(InputStream in,
String baseURI,
RDFFormat format)
Parses an RDF document and returns it as a GraphQueryResult object, with parsing done on a separate
thread in the background.
IMPORTANT: As this method will spawn a new thread in the background, it is vitally important that the resulting GraphQueryResult be closed consistently when it is no longer required, to prevent resource leaks. |
| Modifier and Type | Method and Description |
|---|---|
static GraphQueryResult |
QueryResults.distinctResults(GraphQueryResult queryResult)
Returns a
GraphQueryResult that filters out any duplicate solutions from the supplied
queryResult. |
static boolean |
QueryResults.equals(GraphQueryResult result1,
GraphQueryResult result2)
Compares two graph query results and returns
true if they are equal. |
static GraphQueryResult |
QueryResults.limitResults(GraphQueryResult queryResult,
long limit,
long offset)
Returns a
GraphQueryResult that returns at most the specified maximum number of solutions,
starting at the supplied offset. |
static void |
QueryResults.report(GraphQueryResult gqr,
RDFHandler rdfHandler)
Reports a graph query result to an
RDFHandler. |
static Statement |
QueryResults.singleResult(GraphQueryResult result)
Returns a single element from the query result.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BackgroundGraphResult
Provides concurrent access to statements as they are being parsed when instances of this class are run as
Threads.
|
class |
GraphQueryResultImpl
Deprecated.
since 4.0. Use
IteratingGraphQueryResult instead. |
class |
IteratingGraphQueryResult
An iterating implementation of the
GraphQueryResult interface. |
Copyright © 2015-2017 Eclipse Foundation. All Rights Reserved.