Class OutputModes

java.lang.Object
org.aksw.jena_sparql_api.rx.io.resultset.OutputModes

public class OutputModes extends Object
Utils to derive an OutputMode from given arguments such as a collection of statements.
Author:
raven
  • Constructor Details

    • OutputModes

      public OutputModes()
  • Method Details

    • detectOutputMode

      public static OutputMode detectOutputMode(Collection<? extends SparqlStmt> stmts)
      If the last query is a json query then the mode is json. If there is a construct query the mode is quads. If there is no construct query but a select one, the mode is bindings.
    • determineOutputMode

      public static OutputMode determineOutputMode(org.apache.jena.riot.Lang lang)