| java.lang.Object org.openrdf.query.resultio.QueryResultIO
QueryResultIO | public class QueryResultIO (Code) | | Class offering utility methods related to query results.
author: Arjohn Kampman |
Method Summary | |
public static TupleQueryResultParser | createParser(TupleQueryResultFormat format) Convenience methods for creating TupleQueryResultParser objects. | public static TupleQueryResultParser | createParser(TupleQueryResultFormat format, ValueFactory valueFactory) Convenience methods for creating TupleQueryResultParser objects that use
the specified ValueFactory to create RDF model objects. | public static BooleanQueryResultParser | createParser(BooleanQueryResultFormat format) Convenience methods for creating BooleanQueryResultParser objects. | public static TupleQueryResultWriter | createWriter(TupleQueryResultFormat format, OutputStream out) Convenience methods for creating TupleQueryResultWriter objects. | public static BooleanQueryResultWriter | createWriter(BooleanQueryResultFormat format, OutputStream out) Convenience methods for creating BooleanQueryResultWriter objects. | public static TupleQueryResultFormat | getParserFormatForFileName(String fileName) Tries to match the extension of a file name against the list of RDF
formats that can be parsed.
Parameters: fileName - A file name. | public static TupleQueryResultFormat | getParserFormatForFileName(String fileName, TupleQueryResultFormat fallback) Tries to match the extension of a file name against the list of RDF
formats that can be parsed. | public static TupleQueryResultFormat | getParserFormatForMIMEType(String mimeType) Tries to match a MIME type against the list of tuple query result formats
that can be parsed.
Parameters: mimeType - A MIME type, e.g. | public static TupleQueryResultFormat | getParserFormatForMIMEType(String mimeType, TupleQueryResultFormat fallback) Tries to match a MIME type against the list of tuple query result formats
that can be parsed. | public static TupleQueryResultFormat | getWriterFormatForFileName(String fileName) Tries to match the extension of a file name against the list of RDF
formats that can be written.
Parameters: fileName - A file name. | public static TupleQueryResultFormat | getWriterFormatForFileName(String fileName, TupleQueryResultFormat fallback) Tries to match the extension of a file name against the list of RDF
formats that can be written. | public static TupleQueryResultFormat | getWriterFormatForMIMEType(String mimeType) Tries to match a MIME type against the list of tuple query result formats
that can be written.
Parameters: mimeType - A MIME type, e.g. | public static TupleQueryResultFormat | getWriterFormatForMIMEType(String mimeType, TupleQueryResultFormat fallback) Tries to match a MIME type against the list of tuple query result formats
that can be written. | public static void | parse(InputStream in, TupleQueryResultFormat format, TupleQueryResultHandler handler, ValueFactory valueFactory) Parses a query result document, reporting the parsed solutions to the
supplied TupleQueryResultHandler.
Parameters: in - An InputStream to read the query result document from. Parameters: format - The query result format of the document to parse. | public static TupleQueryResult | parse(InputStream in, TupleQueryResultFormat format) Parses a query result document and returns it as a TupleQueryResult
object.
Parameters: in - An InputStream to read the query result document from. Parameters: format - The query result format of the document to parse. | public static boolean | parse(InputStream in, BooleanQueryResultFormat format) Parses a boolean query result document and returns the parsed value. | public static void | write(TupleQueryResult tqr, TupleQueryResultFormat format, OutputStream out) Writes a query result document in a specific query result format to an
output stream. | public static void | write(boolean value, BooleanQueryResultFormat format, OutputStream out) Writes a boolean query result document in a specific boolean query result
format to an output stream. | public static void | write(GraphQueryResult gqr, RDFFormat format, OutputStream out) Writes a graph query result document in a specific RDF format to an output
stream. |
|
|