Uses of Interface
org.apache.jena.query.ResultSet
Package
Description
ARQ - A query engine for Jena, implementing SPARQL.
-
Uses of ResultSet in org.apache.jena.query
Modifier and TypeClassDescriptionclass
Modifier and TypeMethodDescriptionstatic ResultSet
static ResultSet
ResultSetFactory.create
(QueryIterator queryIterator, List<String> vars) Build a result set from one of ARQ's lower level query iterator.QueryExecution.execSelect()
Execute a SELECT querystatic ResultSet
ResultSetFactory.fromJSON
(InputStream in) Read from an input stream which is the format of the SPARQL result set format in JSON.static ResultSet
ResultSetFactory.fromXML
(InputStream in) Read XML which is the format of the SPARQL result set format.static ResultSet
ResultSetFactory.load
(InputStream input, ResultsFormat format) Load a result set from input stream into a result set (memory backed).static ResultSet
Load a result set from file or URL into a result set (memory backed).static ResultSet
ResultSetFactory.load
(String filenameOrURI, ResultsFormat format) Load a result set from file or URL into a result set (memory backed).static ResultSet
ResultSetFactory.makeResults
(org.apache.jena.rdf.model.Model model) Turns an RDF model, with properties and classes from the result set vocabulary, into a SPARQL result set.default ResultSet
ResultSet.materialise()
Return aResultSet
that is not connected to the original source.default ResultSet
QueryExecutionBuilder.select()
Modifier and TypeMethodDescriptionstatic String
Return a string that has the result set serialized as a text tablestatic String
Return a string that has the result set serialized as a text tablestatic String
ResultSetFormatter.asXMLString
(ResultSet qresults) Return a string that has the result set serialized as XML (not RDF)static String
ResultSetFormatter.asXMLString
(ResultSet qresults, String stylesheet) Return a string that has the result set serialized as XML (not RDF) with a style sheet directive inserted into the XML.static int
This operation faithfully walks the results but does nothing with them.static ResultSetRewindable
ResultSetFactory.copyResults
(ResultSet results) Take a copy of a result set - the result set returns is an in-memory copy.static ResultSetPeekable
ResultSetFactory.makePeekable
(ResultSet resultSet) Turns an existing result set into one with peeking capabilitiesstatic ResultSetRewindable
ResultSetFactory.makeRewindable
(ResultSet resultSet) Turn an existing result set into a rewindable one.static void
ResultSetFormatter.out
(OutputStream out, ResultSet qresults) Output a result set in a text format.static void
ResultSetFormatter.out
(OutputStream out, ResultSet resultSet, org.apache.jena.shared.PrefixMapping pmap) Output a result set in a text format.static void
ResultSetFormatter.out
(OutputStream out, ResultSet resultSet, Prologue prologue) Output a result set in a text format.static void
Output a result set in a text format.static void
Output a result set in a text format.static void
Output a result set in a text format.static void
Output a result set in a text format.static void
ResultSetFormatter.output
(OutputStream outStream, ResultSet resultSet, Lang resultFormat) static void
ResultSetFormatter.output
(OutputStream outStream, ResultSet resultSet, ResultsFormat rFmt) Output a ResultSet in some format.static void
static void
ResultSetFormatter.output
(ResultSet resultSet, ResultsFormat rFmt) Output a ResultSet in some format.static void
ResultSetFormatter.outputAsCSV
(OutputStream outStream, ResultSet resultSet) Output a result set in CSV formatstatic void
ResultSetFormatter.outputAsCSV
(ResultSet resultSet) Output a result set in CSV formatstatic void
ResultSetFormatter.outputAsJSON
(OutputStream outStream, ResultSet resultSet) Output a result set in the JSON format Format: Serializing SPARQL Query Results in JSON JSON: http://json.org/static void
ResultSetFormatter.outputAsJSON
(ResultSet resultSet) Output a result set in the JSON format Format: Serializing SPARQL Query Results in JSON JSON: http://json.org/static void
ResultSetFormatter.outputAsSSE
(OutputStream outStream, ResultSet resultSet) Output a result set in the SSE format Format: SSEstatic void
ResultSetFormatter.outputAsSSE
(OutputStream outStream, ResultSet resultSet, Prologue prologue) Output a result set in the SSE format Format: SSEstatic void
ResultSetFormatter.outputAsSSE
(ResultSet resultSet) Output a result set in the SSE format Format: SSEstatic void
ResultSetFormatter.outputAsSSE
(ResultSet resultSet, Prologue prologue) Output a result set in the SSE format Format: SSEstatic void
ResultSetFormatter.outputAsTSV
(OutputStream outStream, ResultSet resultSet) Output a result set in TSV formatstatic void
ResultSetFormatter.outputAsTSV
(ResultSet resultSet) Output a result set in TSV formatstatic void
ResultSetFormatter.outputAsXML
(OutputStream outStream, ResultSet qresults) Output a result set in the XML formatstatic void
ResultSetFormatter.outputAsXML
(OutputStream outStream, ResultSet qresults, String stylesheet) Output a result set in the XML format, inserting a style sheet in the XML outputstatic void
ResultSetFormatter.outputAsXML
(ResultSet qresults) Output a result set in the XML formatstatic void
ResultSetFormatter.outputAsXML
(ResultSet qresults, String stylesheet) Output a result set in the XML format, inserting a style sheet in the XML outputstatic List<QuerySolution>
Turn the result set into a java.util.ListModifierConstructorDescriptionResultSetCloseable
(ResultSet rs, QueryExecution qexec) Deprecated.The constructor will become private. -
Uses of ResultSet in org.apache.jena.riot
Modifier and TypeMethodDescriptionstatic ResultSet
Read ResultSet.static ResultSet
ResultSetMgr.read
(InputStream input) Read from aURL
(including filenames) and produce aResultSet
.static ResultSet
ResultSetMgr.read
(InputStream input, Lang lang) static ResultSet
Read from aURL
(including filenames) and produce aResultSet
.static ResultSet
Read from aURL
(including filenames) and produce aResultSet
; the stream is expect to use syntaxlang
.Modifier and TypeMethodDescriptionstatic String
Generate a string in the specified language/syntax for a SPARQL result set.static void
ResultSetMgr.write
(OutputStream output, ResultSet resultSet, Lang lang) Write a SPARQL result set to the output stream in the specified language/syntax. -
Uses of ResultSet in org.apache.jena.riot.resultset
Modifier and TypeClassDescriptionclass
Perform an action on a result set when iteration finishes orclose()
is called.Modifier and TypeMethodDescriptiondefault ResultSet
ResultSetReader.read
(InputStream in, Context context) Read from anInputStream
and produce aResultSet
.default ResultSet
UsingResultSetReader.read(InputStream, Context)
is preferred.Modifier and TypeMethodDescriptionvoid
ResultSetWriter.write
(OutputStream out, ResultSet resultSet, Context context) Write the ResultSet to the OutputStreamvoid
UsingResultSetWriter.write(OutputStream, ResultSet, Context)
is preferred. -
Uses of ResultSet in org.apache.jena.sparql.engine
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.To be removed.class
The main ResultSet implementation for returning results from queries.Modifier and TypeMethodDescriptionstatic ResultSet
ResultSetStream.create
(List<String> resultVars, org.apache.jena.rdf.model.Model m, Iterator<Binding> iter) Create a streaming ResultSet, with resources sharing a common Modelstatic ResultSet
Create aResultSet
from a List<Var> and an Iterator<Binding>.ModifierConstructorDescriptionResultSetCheckCondition
(ResultSet other, QueryExecution qExec) Deprecated, for removal: This API element is subject to removal in a future version.ResultSetCheckCondition
(ResultSet other, org.apache.jena.sparql.engine.ResultSetCheckCondition.Condition condition) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ResultSet in org.apache.jena.sparql.engine.iterator
-
Uses of ResultSet in org.apache.jena.sparql.exec
Modifier and TypeMethodDescriptionQueryExecutionAdapter.execSelect()
Execute a SELECT queryQueryExecutionCompat.execSelect()
RowSetAdapter.get()
-
Uses of ResultSet in org.apache.jena.sparql.resultset
Modifier and TypeInterfaceDescriptioninterface
Interfaces for result sets that allow peeking aheadModifier and TypeClassDescriptionclass
class
A result set held in-memory. rewindable.class
A wrapper around another result set that provides peek capabilitiesclass
Wrap anotherResultSet
(probably to modify operations on it).Modifier and TypeMethodDescriptionstatic ResultSet
RDFInput.fromRDF
(org.apache.jena.rdf.model.Model model) Turns an RDF model, with properties and classes from the result set vocabulary, into a SPARQL result set.SPARQLResult.getResultSet()
ResultsReader.Builder.read
(InputStream input) Short form equivalent to.build().read(InputStreams)
Short form equivalent to.build().read(url)
ResultsReader.read
(InputStream input) Read a result set from anInputStream
.Read a result set from a URL or filename.Modifier and TypeMethodDescriptionstatic void
ResultSetApply.apply
(ResultSet rs, ResultSetProcessor proc) org.apache.jena.rdf.model.Model
Encode the result set as RDF.org.apache.jena.rdf.model.Resource
Encode the result set as RDF in the model provided.org.apache.jena.rdf.model.Resource
RDFOutput.asRDF
(org.apache.jena.rdf.model.Model model, ResultSet resultSet, boolean includeRowIndex) Turn into a stringstatic org.apache.jena.rdf.model.Model
RDFOutput.encodeAsModel
(ResultSet resultSet) Encode the result set as RDF.static org.apache.jena.rdf.model.Resource
RDFOutput.encodeAsRDF
(org.apache.jena.rdf.model.Model model, ResultSet resultSet) Encode the result set as RDF in the model provided.static boolean
ResultSetCompare.equalsByTerm
(ResultSet rs1, ResultSet rs2) compare two result sets for equivalence.static boolean
ResultSetCompare.equalsByTermAndOrder
(ResultSet rs1, ResultSet rs2) compare two result sets for equivalence.static boolean
ResultSetCompare.equalsByValue
(ResultSet rs1, ResultSet rs2) Compare two result sets for equivalence.static boolean
ResultSetCompare.equalsByValueAndOrder
(ResultSet rs1, ResultSet rs2) Compare two result sets for equivalence.static boolean
ResultSetCompare.equalsExact
(ResultSet rs1, ResultSet rs2) compare two result sets for exact equality equivalence.void
void
Finish result setvoid
OutputFormatter.format
(OutputStream out, ResultSet resultSet) Format a result set - output on the given streamstatic boolean
ResultSetCompare.isomorphic
(ResultSet rs1, ResultSet rs2) Compare two result sets for bNode isomorphism equivalence.static boolean
ResultsFormat.oldWrite
(OutputStream out, ResultsFormat outputFormat, Prologue prologue, ResultSet resultSet) Write aResultSet
in various old style formats no longer recommended.static void
RDFOutput.outputAsRDF
(OutputStream outStream, String format, ResultSet resultSet) Write out an RDF model that encodes the result setstatic void
RDFOutput.outputAsRDF
(String format, ResultSet resultSet) Write out an RDF model that encodes the result setvoid
void
Start result setvoid
ResultsWriter.Builder.write
(OutputStream output, ResultSet resultSet) Short form equivalent tobuild().write(OutputStream, ResultSet)
void
Short form equivalent tobuild().write(url, ResultSet)
void
ResultsWriter.write
(OutputStream output, ResultSet resultSet) Write a result set, using the configuration of theResultWriter
, to anOutputStream
.void
Write a result set, using the configuration of theResultsWriter
, to a fileModifierConstructorDescriptionResultSetApply
(ResultSet rs, ResultSetProcessor proc) Create an in-memory result set from any ResultSet object.ResultSetMem
(ResultSet... sets) Create an in-memory result set from an array of ResulSets.ResultSetPeeking
(ResultSet results) Creates a peeking wrapper around another result setSPARQLResult
(ResultSet resultSet) -
Uses of ResultSet in org.apache.jena.sparql.util
Modifier and TypeMethodDescriptionstatic ResultSet
Create an in-memory result set from an array of ResulSets.Modifier and TypeMethodDescriptionstatic void
QueryExecUtils.outputResultSet
(ResultSet results, Prologue prologue, ResultsFormat outputFormat, PrintStream output) static List<org.apache.jena.rdf.model.RDFNode>
ResultSetUtils.resultSetToList
(ResultSet rs, String selectElement) Extracts a List filled with the binding of selectElement variable for each query solution as RDFNodes (Resources or Literals).ResultSetUtils.resultSetToStringList
(ResultSet rs, String selectElement, String literalOrResource) Extracts a List filled with the binding of selectElement variable for each query solution, turned into a string (URIs or lexical forms).static ResultSet
Create an in-memory result set from an array of ResulSets.