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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FileConfigurations.NamedDocument
class
FileConfigurations.NamedGraph
class
FileConfigurations.NamedQuery
-
Field Summary
Fields Modifier and Type Field Description String
base
base URL of the directory.boolean
debugTemplate
when true, TEMPLATE sub-query failures will be included in the outputstatic FileConfigurations
DEFAULT
String
defaultgraph
the content of the graphString
defaultquery
the content of the queryList<FileConfigurations.NamedDocument>
documentset
List of named documentsString
graph
the path to the graphboolean
hdt
when true and a GENERATE query, the output is HDTString
logFile
int
loglevel
log level for the query execution, ERROR=1 WARN=2 INFO=3 DEBUG=4 TRACE=5List<FileConfigurations.NamedGraph>
namedgraphs
List of named graphsList<FileConfigurations.NamedQuery>
namedqueries
List of named queriesString
output
Location of the file where the output is to be storedboolean
outputAppend
when true, the output is appended to the fileString
outputFormat
Format of the output file, e.g.String
query
the path to the queryString
readme
description of the query execution, can contain html markupboolean
stream
If true, the output will be a stream (stream of triples, stream of SELECT results, stream of text)
-
Constructor Summary
Constructors Constructor Description FileConfigurations()
Default constructor with default values: loglevel=5, query=query.rqg, graph=dataset/default.ttl, stream=false, debugTemplate=false, hdt=false, outputAppend=false.
-
-
-
Field Detail
-
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
-
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
public List<FileConfigurations.NamedDocument> 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
-
-