Enum Class ResultsFormat

java.lang.Object
java.lang.Enum<ResultsFormat>
org.apache.jena.sparql.resultset.ResultsFormat
All Implemented Interfaces:
Serializable, Comparable<ResultsFormat>, Constable

public enum ResultsFormat extends Enum<ResultsFormat>
The output formats for all query types. This allows the APi to given a results choice before the kind of query is known.

This does not include results sets as RDF. They are provided for tests with RDFInput and RDFOutput.

A ResultsFormat item has three parts, result format, triples format (e.g. CONSTRUCT), and quads (for extended CONSTRUCT). These are stored in a lookup table for string to ResultsFormat, which is used by commands.

  • Enum Constant Details

  • Method Details

    • values

      public static ResultsFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResultsFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • resultSetLang

      public Lang resultSetLang()
    • triplesFormat

      public RDFFormat triplesFormat()
    • quadsFormat

      public RDFFormat quadsFormat()
    • isResultSet

      public boolean isResultSet()
    • guessSyntax

      public static ResultsFormat guessSyntax(String resultsFilename)
      Guess the syntax of a result set URL
    • lookup

      public static ResultsFormat lookup(String shortname)
      Look up a short name for an output format.
      Parameters:
      shortname - Short name
      Returns:
      ResultSetFormat