static BooleanQueryResultParser |
QueryResultIO.createBooleanParser(QueryResultFormat format) |
Convenience methods for creating BooleanQueryResultParser objects.This method uses the registry returned by
BooleanQueryResultParserRegistry.getInstance() to get a factory for the specified format and uses this
factory to create the appropriate parser.
|
static BooleanQueryResultWriter |
QueryResultIO.createBooleanWriter(QueryResultFormat format,
OutputStream out) |
Convenience methods for creating BooleanQueryResultWriter objects.This method uses the registry returned by
BooleanQueryResultWriterRegistry.getInstance() to get a factory for the specified format and uses this
factory to create the appropriate writer.
|
static TupleQueryResultParser |
QueryResultIO.createTupleParser(QueryResultFormat format) |
Convenience methods for creating TupleQueryResultParser objects.
|
static TupleQueryResultParser |
QueryResultIO.createTupleParser(QueryResultFormat format,
org.eclipse.rdf4j.model.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.This method uses the registry returned by
TupleQueryResultWriterRegistry.getInstance() to get a factory for the specified format and uses this
factory to create the appropriate writer.
|
static QueryResultWriter |
QueryResultIO.createWriter(QueryResultFormat format,
OutputStream out) |
Convenience methods for creating QueryResultWriter objects.This method uses the registry returned by
TupleQueryResultWriterRegistry.getInstance() to get a factory for the specified format and uses this
factory to create the appropriate writer.
|
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,
WeakReference<?> callerReference) |
Parses a query result document and returns it as a TupleQueryResult object.
|
static void |
QueryResultIO.parseTuple(InputStream in,
QueryResultFormat format,
TupleQueryResultHandler handler,
org.eclipse.rdf4j.model.ValueFactory valueFactory) |
Parses a query result document, reporting the parsed solutions to the supplied TupleQueryResultHandler.
|
static TupleQueryResult |
QueryResultIO.parseTupleBackground(InputStream in,
QueryResultFormat format,
WeakReference<?> callerReference) |
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.
|