Class FileConfigurations
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.FileConfigurations
- Direct Known Subclasses:
CliRequest
Contains the configuration of a SPARQL-Generate execution in a directory or on the website.
- Author:
- Maxime Lefrançois
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionbase URL of the directory.booleanwhen true, TEMPLATE sub-query failures will be included in the outputstatic FileConfigurationsthe content of the graphthe content of the queryList of named documentsbooleanwhen 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 emptythe path to the graphbooleanwhen true and a GENERATE query, the output is HDTlog level, the documented name ofloglevel; takes precedenceintlog level for the query execution, ERROR=1 WARN=2 INFO=3 DEBUG=4 TRACE=5longthe largest number of triples of a GENERATE execution; 0 for no limitList of named graphsList of named queriesLocation of the file where the output is to be storedbooleanwhen true, the output is appended to the fileFormat of the output file, e.g.the path to the querydescription of the query execution, can contain html markupbooleanIf true, the output will be a stream (stream of triples, stream of SELECT results, stream of text)intthe time limit of the execution, in seconds; 0 for none -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor with default values: loglevel=5, query=query.rqg, graph=dataset/default.ttl, stream=false, debugTemplate=false, hdt=false, outputAppend=false. -
Method Summary
-
Field Details
-
DEFAULT
-
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
Location of the file where the output is to be stored -
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 hdtwhen true and a GENERATE query, the output is HDT -
outputAppend
public boolean outputAppendwhen true, the output is appended to the file -
logFile
-
loglevel
public int loglevellog level for the query execution, ERROR=1 WARN=2 INFO=3 DEBUG=4 TRACE=5 -
log
log level, the documented name ofloglevel; takes precedence -
readme
description of the query execution, can contain html markup -
query
the path to the query -
defaultquery
the content of the query -
namedqueries
List of named queries -
graph
the path to the graph -
defaultgraph
the content of the graph -
namedgraphs
List of named graphs -
documentset
List of named documents -
stream
public boolean streamIf true, the output will be a stream (stream of triples, stream of SELECT results, stream of text) -
debugTemplate
public boolean debugTemplatewhen true, TEMPLATE sub-query failures will be included in the output -
failOnMissing
public boolean failOnMissingwhen 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 timeLimitthe time limit of the execution, in seconds; 0 for none -
maxTriples
public long maxTriplesthe 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
-