java.lang.Object
org.apache.jena.sparql.resultset.RDFOutput
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.Model
asModel
(boolean result) org.apache.jena.rdf.model.Model
Encode the result set as RDF.org.apache.jena.rdf.model.Resource
asRDF
(org.apache.jena.rdf.model.Model model, boolean result) org.apache.jena.rdf.model.Resource
Encode the result set as RDF in the model provided.org.apache.jena.rdf.model.Resource
static org.apache.jena.rdf.model.Model
encodeAsModel
(boolean booleanResult) Encode a boolean result set as RDF.static org.apache.jena.rdf.model.Model
encodeAsModel
(ResultSet resultSet) Encode the result set as RDF.static org.apache.jena.rdf.model.Resource
encodeAsRDF
(org.apache.jena.rdf.model.Model model, boolean booleanResult) Encode the boolean as RDF in the model provided.static org.apache.jena.rdf.model.Resource
encodeAsRDF
(org.apache.jena.rdf.model.Model model, ResultSet resultSet) Encode the result set as RDF in the model provided.boolean
static void
outputAsRDF
(OutputStream outStream, String format, boolean booleanResult) Write out an RDF model that encodes a boolean resultstatic void
outputAsRDF
(OutputStream outStream, String format, ResultSet resultSet) Write out an RDF model that encodes the result setstatic void
outputAsRDF
(String format, boolean booleanResult) Write out an RDF model that encodes a boolean resultstatic void
outputAsRDF
(String format, ResultSet resultSet) Write out an RDF model that encodes the result setvoid
setAllVars
(boolean all) Set whether all variables, not just selected ones, are recorded
-
Constructor Details
-
RDFOutput
public RDFOutput()
-
-
Method Details
-
getAllVars
public boolean getAllVars() -
setAllVars
public void setAllVars(boolean all) Set whether all variables, not just selected ones, are recorded -
asModel
Encode the result set as RDF.- Returns:
- Model Model contains the results
-
asRDF
public org.apache.jena.rdf.model.Resource asRDF(org.apache.jena.rdf.model.Model model, ResultSet resultSet) Encode the result set as RDF in the model provided.- Parameters:
model
- The place where to put the RDF.- Returns:
- Resource The resource for the result set.
-
asRDF
public org.apache.jena.rdf.model.Resource asRDF(org.apache.jena.rdf.model.Model model, ResultSet resultSet, boolean includeRowIndex) -
asModel
public org.apache.jena.rdf.model.Model asModel(boolean result) -
asRDF
public org.apache.jena.rdf.model.Resource asRDF(org.apache.jena.rdf.model.Model model, boolean result) -
encodeAsModel
public static org.apache.jena.rdf.model.Model encodeAsModel(boolean booleanResult) Encode a boolean result set as RDF.- Parameters:
booleanResult
-- Returns:
- Model Model contains the results
-
encodeAsModel
Encode the result set as RDF.- Parameters:
resultSet
-- Returns:
- Model Model contains the results
-
encodeAsRDF
public static org.apache.jena.rdf.model.Resource encodeAsRDF(org.apache.jena.rdf.model.Model model, boolean booleanResult) Encode the boolean as RDF in the model provided.- Parameters:
model
- The place where to put the RDF.booleanResult
-- Returns:
- Resource The resource for the result set.
-
encodeAsRDF
public static org.apache.jena.rdf.model.Resource encodeAsRDF(org.apache.jena.rdf.model.Model model, ResultSet resultSet) Encode the result set as RDF in the model provided.- Parameters:
model
- The place where to put the RDF.resultSet
-- Returns:
- Resource The resource for the result set.
-
outputAsRDF
Write out an RDF model that encodes the result set- Parameters:
outStream
- Outputformat
- Name of RDF format (names as Jena writers)resultSet
- The result set to encode in RDF
-
outputAsRDF
Write out an RDF model that encodes the result set- Parameters:
format
- Name of RDF format (names as Jena writers)resultSet
- The result set to encode in RDF
-
outputAsRDF
Write out an RDF model that encodes a boolean result- Parameters:
format
- Name of RDF format (names as Jena writers)booleanResult
- The boolean result to encode in RDF
-
outputAsRDF
Write out an RDF model that encodes a boolean result- Parameters:
outStream
- Outputformat
- Name of RDF format (names as Jena writers)booleanResult
- The boolean result to encode in RDF
-