public class RDFOutput extends Object
| Constructor and Description |
|---|
RDFOutput() |
| Modifier and Type | Method and Description |
|---|---|
Model |
asModel(boolean result) |
Model |
asModel(ResultSet resultSet)
Encode the result set as RDF.
|
Resource |
asRDF(Model model,
boolean result) |
Resource |
asRDF(Model model,
ResultSet resultSet)
Encode the result set as RDF in the model provided.
|
Resource |
asRDF(Model model,
ResultSet resultSet,
boolean includeRowIndex) |
static Model |
encodeAsModel(boolean booleanResult)
Encode a boolean result set as RDF.
|
static Model |
encodeAsModel(ResultSet resultSet)
Encode the result set as RDF.
|
static Resource |
encodeAsRDF(Model model,
boolean booleanResult)
Encode the boolean as RDF in the model provided.
|
static Resource |
encodeAsRDF(Model model,
ResultSet resultSet)
Encode the result set as RDF in the model provided.
|
boolean |
getAllVars() |
static void |
outputAsRDF(OutputStream outStream,
String format,
boolean booleanResult)
Write out an RDF model that encodes a boolean result
|
static void |
outputAsRDF(OutputStream outStream,
String format,
ResultSet resultSet)
Write out an RDF model that encodes the result set
|
static void |
outputAsRDF(String format,
boolean booleanResult)
Write out an RDF model that encodes a boolean result
|
static void |
outputAsRDF(String format,
ResultSet resultSet)
Write out an RDF model that encodes the result set
|
void |
setAllVars(boolean all)
Set whether all variables, not just selected ones, are recorded
|
public boolean getAllVars()
public void setAllVars(boolean all)
public Model asModel(ResultSet resultSet)
public Resource asRDF(Model model, ResultSet resultSet)
model - The place where to put the RDF.public Model asModel(boolean result)
public static Model encodeAsModel(boolean booleanResult)
booleanResult - public static Model encodeAsModel(ResultSet resultSet)
resultSet - public static Resource encodeAsRDF(Model model, boolean booleanResult)
model - The place where to put the RDF.booleanResult - public static Resource encodeAsRDF(Model model, ResultSet resultSet)
model - The place where to put the RDF.resultSet - public static void outputAsRDF(OutputStream outStream, String format, ResultSet resultSet)
outStream - Outputformat - Name of RDF format (names as Jena writers)resultSet - The result set to encode in RDFpublic static void outputAsRDF(String format, ResultSet resultSet)
format - Name of RDF format (names as Jena writers)resultSet - The result set to encode in RDFpublic static void outputAsRDF(String format, boolean booleanResult)
format - Name of RDF format (names as Jena writers)booleanResult - The boolean result to encode in RDFpublic static void outputAsRDF(OutputStream outStream, String format, boolean booleanResult)
outStream - Outputformat - Name of RDF format (names as Jena writers)booleanResult - The boolean result to encode in RDFLicenced under the Apache License, Version 2.0