Class RDFOutput

java.lang.Object
org.apache.jena.sparql.resultset.RDFOutput

public class RDFOutput extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.rdf.model.Model
    asModel(boolean result)
     
    org.apache.jena.rdf.model.Model
    asModel(ResultSet resultSet)
    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
    asRDF(org.apache.jena.rdf.model.Model model, ResultSet resultSet)
    Encode the result set as RDF in the model provided.
    org.apache.jena.rdf.model.Resource
    asRDF(org.apache.jena.rdf.model.Model model, ResultSet resultSet, boolean includeRowIndex)
     
    static org.apache.jena.rdf.model.Model
    encodeAsModel(boolean booleanResult)
    Encode a boolean result set as RDF.
    static org.apache.jena.rdf.model.Model
    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 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public org.apache.jena.rdf.model.Model asModel(ResultSet resultSet)
      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

      public static org.apache.jena.rdf.model.Model encodeAsModel(ResultSet resultSet)
      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

      public static void outputAsRDF(OutputStream outStream, String format, ResultSet resultSet)
      Write out an RDF model that encodes the result set
      Parameters:
      outStream - Output
      format - Name of RDF format (names as Jena writers)
      resultSet - The result set to encode in RDF
    • outputAsRDF

      public static void outputAsRDF(String format, ResultSet resultSet)
      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

      public static void outputAsRDF(String format, boolean booleanResult)
      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

      public static void outputAsRDF(OutputStream outStream, String format, boolean booleanResult)
      Write out an RDF model that encodes a boolean result
      Parameters:
      outStream - Output
      format - Name of RDF format (names as Jena writers)
      booleanResult - The boolean result to encode in RDF