java.lang.Object
org.apache.jena.sparql.resultset.RDFOutput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.ModelasModel(boolean result) org.apache.jena.rdf.model.ModelEncode the result set as RDF.org.apache.jena.rdf.model.ResourceasRDF(org.apache.jena.rdf.model.Model model, boolean result) org.apache.jena.rdf.model.ResourceEncode the result set as RDF in the model provided.org.apache.jena.rdf.model.Resourcestatic org.apache.jena.rdf.model.ModelencodeAsModel(boolean booleanResult) Encode a boolean result set as RDF.static org.apache.jena.rdf.model.ModelencodeAsModel(ResultSet resultSet) Encode the result set as RDF.static org.apache.jena.rdf.model.ResourceencodeAsRDF(org.apache.jena.rdf.model.Model model, boolean booleanResult) Encode the boolean as RDF in the model provided.static org.apache.jena.rdf.model.ResourceencodeAsRDF(org.apache.jena.rdf.model.Model model, ResultSet resultSet) Encode the result set as RDF in the model provided.booleanstatic voidoutputAsRDF(OutputStream outStream, String format, boolean booleanResult) Write out an RDF model that encodes a boolean resultstatic voidoutputAsRDF(OutputStream outStream, String format, ResultSet resultSet) Write out an RDF model that encodes the result setstatic voidoutputAsRDF(String format, boolean booleanResult) Write out an RDF model that encodes a boolean resultstatic voidoutputAsRDF(String format, ResultSet resultSet) Write out an RDF model that encodes the result setvoidsetAllVars(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
-