Uses of Class
org.eclipse.rdf4j.query.resultio.QueryResultFormat
Package
Description
A writer for the
SPARQL Query Results JSON Format
Parsers and writers for the
SPARQL Query Results XML Format
-
Uses of QueryResultFormat in org.eclipse.rdf4j.console.util
-
Uses of QueryResultFormat in org.eclipse.rdf4j.query.resultio
Modifier and TypeClassDescriptionclass
Represents the concept of a boolean query result serialization format.class
Represents the concept of an tuple query result serialization format.Modifier and TypeMethodDescriptionprotected QueryResultFormat
BooleanQueryResultParserRegistry.getKey
(BooleanQueryResultParserFactory factory) protected QueryResultFormat
BooleanQueryResultWriterRegistry.getKey
(BooleanQueryResultWriterFactory factory) protected QueryResultFormat
TupleQueryResultParserRegistry.getKey
(TupleQueryResultParserFactory factory) protected QueryResultFormat
TupleQueryResultWriterRegistry.getKey
(TupleQueryResultWriterFactory factory) AbstractTupleQueryResultParser.getQueryResultFormat()
QueryResultParser.getQueryResultFormat()
Gets the query result format that this parser can parse.QueryResultWriter.getQueryResultFormat()
Gets the query result format that this writer uses.Modifier and TypeMethodDescriptionstatic Optional<QueryResultFormat>
QueryResultIO.getBooleanParserFormatForFileName
(String fileName) Tries to match the extension of a file name against the list of RDF formats that can be parsed.static Optional<QueryResultFormat>
QueryResultIO.getBooleanParserFormatForMIMEType
(String mimeType) Tries to match a MIME type against the list of boolean query result formats that can be parsed.static Optional<QueryResultFormat>
QueryResultIO.getBooleanWriterFormatForFileName
(String fileName) Tries to match the extension of a file name against the list of RDF formats that can be written.static Optional<QueryResultFormat>
QueryResultIO.getBooleanWriterFormatForMIMEType
(String mimeType) Tries to match a MIME type against the list of boolean query result formats that can be written.static Optional<QueryResultFormat>
QueryResultIO.getParserFormatForFileName
(String fileName) Tries to match the extension of a file name against the list of RDF formats that can be parsed.static Optional<QueryResultFormat>
QueryResultIO.getParserFormatForMIMEType
(String mimeType) Tries to match a MIME type against the list of tuple query result formats that can be parsed.static Optional<QueryResultFormat>
QueryResultIO.getWriterFormatForFileName
(String fileName) Tries to match the extension of a file name against the list of RDF formats that can be written.static Optional<QueryResultFormat>
QueryResultIO.getWriterFormatForMIMEType
(String mimeType) Tries to match a MIME type against the list of tuple query result formats that can be written.Modifier and TypeMethodDescriptionstatic BooleanQueryResultParser
QueryResultIO.createBooleanParser
(QueryResultFormat format) Convenience methods for creating BooleanQueryResultParser objects.This method uses the registry returned byBooleanQueryResultParserRegistry.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 byBooleanQueryResultWriterRegistry.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, 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 byTupleQueryResultWriterRegistry.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 byTupleQueryResultWriterRegistry.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, 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. -
Uses of QueryResultFormat in org.eclipse.rdf4j.query.resultio.sparqljson
Modifier and TypeMethodDescriptionSPARQLBooleanJSONParser.getQueryResultFormat()
SPARQLResultsJSONParser.getQueryResultFormat()
-
Uses of QueryResultFormat in org.eclipse.rdf4j.query.resultio.sparqlxml
Modifier and TypeMethodDescriptionSPARQLBooleanXMLParser.getQueryResultFormat()
SPARQLResultsXMLParser.getQueryResultFormat()
-
Uses of QueryResultFormat in org.eclipse.rdf4j.query.resultio.text
Modifier and TypeMethodDescriptionfinal QueryResultFormat
BooleanTextParser.getQueryResultFormat()
-
Uses of QueryResultFormat in org.eclipse.rdf4j.testsuite.query.resultio
Modifier and TypeMethodDescriptionprotected final QueryResultFormat
AbstractQueryResultIOBooleanTest.getFormat()
protected abstract QueryResultFormat
AbstractQueryResultIOTest.getFormat()
protected final QueryResultFormat
AbstractQueryResultIOTupleTest.getFormat()
-
Uses of QueryResultFormat in org.eclipse.rdf4j.workbench.base
Modifier and TypeMethodDescriptionprotected QueryResultFormat
AbstractServlet.getBooleanResultFormat
(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp) protected QueryResultFormat
AbstractServlet.getJSONPResultFormat
(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp) protected QueryResultFormat
AbstractServlet.getTupleResultFormat
(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletResponse resp)