Package | Description |
---|---|
org.eclipse.rdf4j.query.resultio |
Modifier and Type | Method and Description |
---|---|
static BooleanQueryResultParser |
QueryResultIO.createBooleanParser(QueryResultFormat format)
Convenience methods for creating BooleanQueryResultParser objects.
|
static BooleanQueryResultWriter |
QueryResultIO.createBooleanWriter(QueryResultFormat format,
OutputStream out)
Convenience methods for creating BooleanQueryResultWriter objects.
|
static TupleQueryResultParser |
QueryResultIO.createTupleParser(QueryResultFormat format)
Convenience methods for creating TupleQueryResultParser objects.
|
static TupleQueryResultParser |
QueryResultIO.createTupleParser(QueryResultFormat format,
ValueFactory valueFactory)
Convenience methods for creating TupleQueryResultParser objects that use the specified ValueFactory to create RDF
model objects.
|
static TupleQueryResultWriter |
QueryResultIO.createTupleWriter(QueryResultFormat format,
OutputStream out)
Convenience methods for creating TupleQueryResultWriter objects.
|
static QueryResultWriter |
QueryResultIO.createWriter(QueryResultFormat format,
OutputStream out)
Convenience methods for creating QueryResultWriter objects.
|
static boolean |
QueryResultIO.parseBoolean(InputStream in,
QueryResultFormat format)
Parses a boolean query result document and returns the parsed value.
|
static TupleQueryResult |
QueryResultIO.parseTuple(InputStream in,
QueryResultFormat format)
Parses a query result document and returns it as a TupleQueryResult object.
|
static void |
QueryResultIO.parseTuple(InputStream in,
QueryResultFormat format,
TupleQueryResultHandler handler,
ValueFactory valueFactory)
Parses a query result document, reporting the parsed solutions to the supplied TupleQueryResultHandler.
|
static TupleQueryResult |
QueryResultIO.parseTupleBackground(InputStream in,
QueryResultFormat format)
Parses a query result document and returns it as a TupleQueryResult object, with parsing done on a separate
thread in the background.
IMPORTANT: As this method may spawn a new thread in the background, it is vitally important that the TupleQueryResult be closed consistently when it is no longer required, to prevent resource leaks. |
static void |
QueryResultIO.writeBoolean(boolean value,
QueryResultFormat format,
OutputStream out)
Writes a boolean query result document in a specific boolean query result format to an output stream.
|
static void |
QueryResultIO.writeTuple(TupleQueryResult tqr,
QueryResultFormat format,
OutputStream out)
Writes a query result document in a specific query result format to an output stream.
|
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.