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. Result sets, boolean graphs.

This does not include results sets as RDF is elsewhere which is provided for tests with RDFInput and RDFOutput.

  • 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()
    • rdfFormat

      public RDFFormat rdfFormat()
    • 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 a result set FMT_
      Parameters:
      shortname - Short name
      Returns:
      ResultSetFormat