Package | Description |
---|---|
com.hp.hpl.jena.query |
ARQ - A query engine for Jena, implementing SPARQL.
|
com.hp.hpl.jena.sparql.algebra | |
com.hp.hpl.jena.sparql.algebra.table | |
com.hp.hpl.jena.sparql.engine | |
com.hp.hpl.jena.sparql.engine.http | |
com.hp.hpl.jena.sparql.engine.iterator | |
com.hp.hpl.jena.sparql.resultset | |
com.hp.hpl.jena.sparql.sse.builders | |
com.hp.hpl.jena.sparql.util | |
org.apache.jena.riot.web |
Modifier and Type | Interface and Description |
---|---|
interface |
ResultSetRewindable |
Modifier and Type | Method and Description |
---|---|
static ResultSet |
ResultSetFactory.create(QueryIterator queryIterator,
List<String> vars)
Build a result set from one of ARQ's lower level query iterator.
|
ResultSet |
QueryExecution.execSelect()
Execute a SELECT query
|
static ResultSet |
BIOInput.fromBIO(InputStream input) |
static 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.fromRDF(Model model)
Turns an RDF model, with properties and classses from the result set
vocabulary, into a SPARQL result set.
|
static ResultSet |
ResultSetFactory.fromSSE(InputStream in)
Read from an input stream which is the format of the SPARQL result set
format in SSE.
|
static ResultSet |
ResultSetFactory.fromTSV(InputStream in)
Read from an input stream which is the format of the SPARQL result set
format in TSV.
|
static ResultSet |
ResultSetFactory.fromXML(InputStream in)
Read XML which is the format of the SPARQL result set format.
|
static ResultSet |
ResultSetFactory.fromXML(String str)
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 |
ResultSetFactory.load(String filenameOrURI)
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(Model model)
Turns an RDF model, with properties and classses from the result set
vocabulary, into a SPARQL result set.
|
static ResultSet |
ResultSetFactory.makeSorted(ResultSet resultSet,
List<SortCondition> conditions)
Deprecated.
This will be removed.
Sort an existing result set. Experimental. The list of variables is a
list of names (strings), with "x" for ascending in variable "x" and "-x"
for descending in variable "x"
|
Modifier and Type | Method and Description |
---|---|
static Resource |
ResultSetFormatter.asRDF(Model model,
ResultSet resultSet)
Encode the result set as RDF in the model provided.
|
static String |
ResultSetFormatter.asText(ResultSet qresults)
Return a string that has the result set serilized as a text table
|
static String |
ResultSetFormatter.asText(ResultSet qresults,
Prologue prologue)
Return a string that has the result set serilized as a text table
|
static String |
ResultSetFormatter.asXMLString(ResultSet qresults)
Return a string that has the result set serilized as XML (not RDF)
|
static String |
ResultSetFormatter.asXMLString(ResultSet qresults,
String stylesheet)
Return a string that has the result set serilized as XML (not RDF)
with a style sheet directive inserted into the XML.
|
static int |
ResultSetFormatter.consume(ResultSet resultSet)
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 capabilities
|
static ResultSetRewindable |
ResultSetFactory.makeRewindable(ResultSet resultSet)
Turn an existing result set into a rewindable one.
|
static ResultSet |
ResultSetFactory.makeSorted(ResultSet resultSet,
List<SortCondition> conditions)
Deprecated.
This will be removed.
Sort an existing result set. Experimental. The list of variables is a
list of names (strings), with "x" for ascending in variable "x" and "-x"
for descending in variable "x"
|
static void |
ResultSetFormatter.out(OutputStream out,
ResultSet qresults)
Output a result set in a text format.
|
static void |
ResultSetFormatter.out(OutputStream out,
ResultSet qresults,
PrefixMapping pmap)
Output a result set in a text format.
|
static void |
ResultSetFormatter.out(OutputStream out,
ResultSet qresults,
Prologue prologue)
Output a result set in a text format.
|
static void |
ResultSetFormatter.out(ResultSet qresults)
Output a result set in a text format.
|
static void |
ResultSetFormatter.out(ResultSet qresults,
PrefixMapping pmap)
Output a result set in a text format.
|
static void |
ResultSetFormatter.out(ResultSet qresults,
Prologue prologue)
Output a result set in a text format.
|
static void |
ResultSetFormatter.out(ResultSet qresults,
Query query)
Output a result set in a text format.
|
static void |
ResultSetFormatter.output(OutputStream outStream,
ResultSet resultSet,
ResultsFormat rFmt)
Output a ResultSet in some format.
|
static void |
ResultSetFormatter.output(ResultSet resultSet,
ResultsFormat rFmt)
Output a ResultSet in some format.
|
static void |
ResultSetFormatter.outputAsBIO(OutputStream out,
ResultSet results)
Output a result set in BIO format
|
static void |
ResultSetFormatter.outputAsCSV(OutputStream outStream,
ResultSet resultSet)
Output a result set in CSV format
|
static void |
ResultSetFormatter.outputAsCSV(ResultSet resultSet)
Output a result set in CSV format
|
static 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.outputAsRDF(OutputStream outStream,
String format,
ResultSet resultSet)
Write out an RDF model that encodes the result set
|
static void |
ResultSetFormatter.outputAsRDF(String format,
ResultSet resultSet)
Write out an RDF model that encodes the result set
|
static void |
ResultSetFormatter.outputAsSSE(OutputStream outStream,
ResultSet resultSet)
Output a result set in the SSE format
Format: SSE
|
static void |
ResultSetFormatter.outputAsSSE(OutputStream outStream,
ResultSet resultSet,
Prologue prologue)
Output a result set in the SSE format
Format: SSE
|
static void |
ResultSetFormatter.outputAsSSE(ResultSet resultSet)
Output a result set in the SSE format
Format: SSE
|
static void |
ResultSetFormatter.outputAsSSE(ResultSet resultSet,
Prologue prologue)
Output a result set in the SSE format
Format: SSE
|
static void |
ResultSetFormatter.outputAsTSV(OutputStream outStream,
ResultSet resultSet)
Output a result set in TSV format
|
static void |
ResultSetFormatter.outputAsTSV(ResultSet resultSet)
Output a result set in TSV format
|
static void |
ResultSetFormatter.outputAsXML(OutputStream outStream,
ResultSet qresults)
Output a result set in the XML format
|
static void |
ResultSetFormatter.outputAsXML(OutputStream outStream,
ResultSet qresults,
String stylesheet)
Output a result set in the XML format, inserting a style sheet in the XMl output
|
static void |
ResultSetFormatter.outputAsXML(ResultSet qresults)
Output a result set in the XML format
|
static void |
ResultSetFormatter.outputAsXML(ResultSet qresults,
String stylesheet)
Output a result set in the XML format, inserting a style sheet in the XMl output
|
static List<QuerySolution> |
ResultSetFormatter.toList(ResultSet resultSet)
Turn the result set into a java.util.List
|
static Model |
ResultSetFormatter.toModel(ResultSet resultSet)
Encode the result set as RDF.
|
Modifier and Type | Method and Description |
---|---|
ResultSet |
Table.toResultSet() |
Modifier and Type | Method and Description |
---|---|
ResultSet |
TableBase.toResultSet() |
Modifier and Type | Class and Description |
---|---|
class |
ResultSetStream
The main ResultSet implementation for returning results from queries.
|
Modifier and Type | Method and Description |
---|---|
ResultSet |
QueryExecutionBase.execSelect() |
Modifier and Type | Method and Description |
---|---|
void |
QueryExecutionBase.setInitialBindings(ResultSet table) |
Modifier and Type | Method and Description |
---|---|
ResultSet |
QueryEngineHTTP.execSelect() |
Modifier and Type | Method and Description |
---|---|
void |
QueryEngineHTTP.setInitialBindings(ResultSet table) |
Constructor and Description |
---|
QueryIteratorResultSet(ResultSet rs) |
Modifier and Type | Interface and Description |
---|---|
interface |
ResultSetPeekable
Interfaces for result sets that allow peeking ahead
|
Modifier and Type | Class and Description |
---|---|
class |
RDFInput |
class |
ResultSetMem
An in-memory result set.
|
class |
ResultSetPeeking
A wrapper around another result set that provides peek capabilities
|
class |
SortedResultSet
Sort a result set.
|
Modifier and Type | Method and Description |
---|---|
static ResultSet |
CSVInput.fromCSV(InputStream in) |
static ResultSet |
JSONInput.fromJSON(InputStream input) |
static ResultSet |
TSVInput.fromTSV(InputStream in)
Reads SPARQL Results from TSV format into a
ResultSet instance |
static ResultSet |
XMLInput.fromXML(InputStream in) |
static ResultSet |
XMLInput.fromXML(InputStream in,
Model model) |
static ResultSet |
XMLInput.fromXML(String str) |
static ResultSet |
XMLInput.fromXML(String str,
Model model) |
ResultSet |
SPARQLResult.getResultSet() |
Modifier and Type | Method and Description |
---|---|
static void |
ResultSetApply.apply(ResultSet rs,
ResultSetProcessor proc) |
Resource |
RDFOutput.asRDF(Model model,
ResultSet resultSet)
Encode the result set as RDF in the model provided.
|
String |
OutputFormatter.asString(ResultSet resultSet)
Turn into a string
|
String |
OutputBase.asString(ResultSet resultSet) |
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.
|
void |
JSONOutputResultSet.finish(ResultSet rs) |
void |
ResultSetProcessor.finish(ResultSet rs)
Finish result set
|
void |
PlainFormat.finish(ResultSet rs) |
void |
XMLOutputResultSet.finish(ResultSet rs) |
void |
CSVOutput.format(OutputStream out,
ResultSet resultSet) |
void |
TextOutput.format(OutputStream outs,
ResultSet resultSet) |
void |
TSVOutput.format(OutputStream out,
ResultSet resultSet) |
void |
JSONOutput.format(OutputStream out,
ResultSet resultSet) |
void |
OutputFormatter.format(OutputStream out,
ResultSet resultSet)
Format a result set - output on the given stream
|
void |
XMLOutput.format(OutputStream out,
ResultSet resultSet) |
void |
TextOutput.format(Writer w,
ResultSet resultSet)
Writer should be UTF-8 encoded - better to an OutputStream
|
static boolean |
ResultSetCompare.isomorphic(ResultSet rs1,
ResultSet rs2)
Compare two result sets for bNode isomorphism equivalence.
|
void |
JSONOutputResultSet.start(ResultSet rs) |
void |
ResultSetProcessor.start(ResultSet rs)
Start result set
|
void |
PlainFormat.start(ResultSet rs) |
void |
XMLOutputResultSet.start(ResultSet rs) |
Model |
RDFOutput.toModel(ResultSet resultSet)
Encode the result set as RDF.
|
void |
TextOutput.write(OutputStream outs,
ResultSet resultSet)
Output a result set.
|
void |
TextOutput.write(OutputStream outs,
ResultSet resultSet,
String colStart,
String colSep,
String colEnd)
Output a result set.
|
void |
TextOutput.write(PrintWriter pw,
ResultSet resultSet)
Textual representation : default layout using " | " to separate columns.
|
void |
TextOutput.write(PrintWriter pw,
ResultSet resultSet,
String colStart,
String colSep,
String colEnd)
Textual representation : layout using given separator.
|
Constructor and Description |
---|
ResultSetApply(ResultSet rs,
ResultSetProcessor proc) |
ResultSetMem(ResultSet... sets)
Create an in-memory result set from an array of
ResulSets.
|
ResultSetMem(ResultSet qr)
Create an in-memory result set from any ResultSet object.
|
ResultSetPeeking(ResultSet results)
Creates a peeking wrapper around another result set
|
SortedResultSet(ResultSet rs,
List<SortCondition> conditions) |
SPARQLResult(ResultSet resultSet) |
Modifier and Type | Method and Description |
---|---|
static ResultSet |
BuilderResultSet.build(Item item) |
Modifier and Type | Method and Description |
---|---|
static ResultSet |
ResultSetUtils.union(ResultSet... sets)
Create an in-memory result set from an array of
ResulSets.
|
Modifier and Type | Method and Description |
---|---|
static void |
QueryExecUtils.outputResultSet(ResultSet results,
Prologue prologue,
ResultsFormat outputFormat) |
static List<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).
|
static List<String> |
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 |
ResultSetUtils.union(ResultSet... sets)
Create an in-memory result set from an array of
ResulSets.
|
Modifier and Type | Method and Description |
---|---|
ResultSet |
HttpResponseLib.HttpCaptureResponseResultSet.get() |
Licenced under the Apache License, Version 2.0