Class FileConfigurations

  • Direct Known Subclasses:
    CliRequest

    public class FileConfigurations
    extends Object
    Contains the configuration of a SPARQL-Generate execution in a directory or on the website.
    Author:
    Maxime Lefrançois
    • Field Detail

      • base

        public String base
        base URL of the directory. Every file in the directory may be used as a source with a URL that is resolved against this base.
      • output

        public String output
        Location of the file where the output is to be stored
      • outputFormat

        public String outputFormat
        Format of the output file, e.g. TTL, NT, RDF/XML, etc for GENERATE, or TEXT, XML, CSV, etc for SELECT.
      • hdt

        public boolean hdt
        when true and a GENERATE query, the output is HDT
      • outputAppend

        public boolean outputAppend
        when true, the output is appended to the file
      • logFile

        public String logFile
      • loglevel

        public int loglevel
        log level for the query execution, ERROR=1 WARN=2 INFO=3 DEBUG=4 TRACE=5
      • readme

        public String readme
        description of the query execution, can contain html markup
      • query

        public String query
        the path to the query
      • defaultquery

        public String defaultquery
        the content of the query
      • graph

        public String graph
        the path to the graph
      • defaultgraph

        public String defaultgraph
        the content of the graph
      • stream

        public boolean stream
        If true, the output will be a stream (stream of triples, stream of SELECT results, stream of text)
      • debugTemplate

        public boolean debugTemplate
        when true, TEMPLATE sub-query failures will be included in the output
    • Constructor Detail

      • FileConfigurations

        public FileConfigurations()
        Default constructor with default values: loglevel=5, query=query.rqg, graph=dataset/default.ttl, stream=false, debugTemplate=false, hdt=false, outputAppend=false.
    • Method Detail

      • loadDataset

        public Dataset loadDataset​(File dir)