Class RDFOutput


  • public class RDFOutput
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RDFOutput()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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​(java.io.OutputStream outStream, java.lang.String format, boolean booleanResult)
      Write out an RDF model that encodes a boolean result
      static void outputAsRDF​(java.io.OutputStream outStream, java.lang.String format, ResultSet resultSet)
      Write out an RDF model that encodes the result set
      static void outputAsRDF​(java.lang.String format, boolean booleanResult)
      Write out an RDF model that encodes a boolean result
      static void outputAsRDF​(java.lang.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 Detail

      • RDFOutput

        public RDFOutput()
    • Method Detail

      • getAllVars

        public boolean getAllVars()
      • setAllVars

        public void setAllVars​(boolean all)
        Set whether all variables, not just selected ones, are recorded
      • asModel

        public Model asModel​(ResultSet resultSet)
        Encode the result set as RDF.
        Returns:
        Model Model contains the results
      • asRDF

        public Resource asRDF​(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.
      • asModel

        public Model asModel​(boolean result)
      • asRDF

        public Resource asRDF​(Model model,
                              boolean result)
      • encodeAsModel

        public static Model encodeAsModel​(boolean booleanResult)
        Encode a boolean result set as RDF.
        Parameters:
        booleanResult -
        Returns:
        Model Model contains the results
      • encodeAsModel

        public static Model encodeAsModel​(ResultSet resultSet)
        Encode the result set as RDF.
        Parameters:
        resultSet -
        Returns:
        Model Model contains the results
      • encodeAsRDF

        public static Resource encodeAsRDF​(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 Resource encodeAsRDF​(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​(java.io.OutputStream outStream,
                                       java.lang.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​(java.lang.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​(java.lang.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​(java.io.OutputStream outStream,
                                       java.lang.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