Class FileConfigurations

java.lang.Object
fr.mines_stetienne.ci.sparql_generate.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 Details

    • DEFAULT

      public static FileConfigurations DEFAULT
    • 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
    • log

      public Integer log
      log level, the documented name of loglevel; takes precedence
    • 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
    • namedqueries

      public List<FileConfigurations.NamedQuery> namedqueries
      List of named queries
    • graph

      public String graph
      the path to the graph
    • defaultgraph

      public String defaultgraph
      the content of the graph
    • namedgraphs

      public List<FileConfigurations.NamedGraph> namedgraphs
      List of named graphs
    • documentset

      List of named documents
    • 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
    • failOnMissing

      public boolean failOnMissing
      when true, a document, a graph or a query that cannot be found stops the execution with an error; by default the iterator gives no solution, the variable of the SOURCE clause is unbound, the graph of the FROM clause is empty
    • timeLimit

      public int timeLimit
      the time limit of the execution, in seconds; 0 for none
    • maxTriples

      public long maxTriples
      the largest number of triples of a GENERATE execution; 0 for no limit
  • Constructor Details

    • 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 Details

    • getLogLevel

      public int getLogLevel()
      Returns:
      the log level, from field log or else loglevel, between 0 and 5
    • loadDataset

      public org.apache.jena.query.Dataset loadDataset(File dir)