Class CMDConfigurations
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.cli.CMDConfigurations
-
public class CMDConfigurations extends Object
- Author:
- Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description static StringARG_BASEbstatic StringARG_BASE_LONGbasestatic StringARG_BASE_MANBase URI of the working directory.static StringARG_BIND_LONGbindstatic StringARG_BIND_MANBinds a query parameter to a RDF termstatic StringARG_DEBUG_TEMPLATEdtstatic StringARG_DEBUG_TEMPLATE_LONGdebug-templatestatic StringARG_DEBUG_TEMPLATE_MANDebug the template output: insert warning identifiers that refer to the log.static StringARG_DIRECTORYdstatic StringARG_DIRECTORY_DEFAULT.static StringARG_DIRECTORY_LONGdirstatic StringARG_DIRECTORY_MANLocation of the directory with the queryset, documentset, dataset, and configuration files as explained in https://w3id.org/sparql-generate/language-cli.html.static StringARG_HDThdtstatic StringARG_HDT_LONGhdtstatic StringARG_HDT_MANGenerate output as HDT.static StringARG_HELPhstatic StringARG_HELP_LONGhelpstatic StringARG_HELP_MANShow helpstatic StringARG_LOG_FILEfstatic StringARG_LOG_FILE_LONGlog-filestatic StringARG_LOG_FILE_MANLocation where the log is to be stored.static StringARG_LOG_LEVELlstatic StringARG_LOG_LEVEL_LONGlog-levelstatic StringARG_LOG_LEVEL_MANSet log level, acceptable values are TRACE < DEBUG < INFO < WARN < ERROR < OFF.static StringARG_OUTPUTostatic StringARG_OUTPUT_APPENDoastatic StringARG_OUTPUT_APPEND_LONGoutput-appendstatic StringARG_OUTPUT_APPEND_MANWrite from the end of the output file, instead of replacing it.static StringARG_OUTPUT_FORMATofstatic StringARG_OUTPUT_FORMAT_LONGoutput-formatstatic StringARG_OUTPUT_FORMAT_MANFormat of the output file, e.g.static StringARG_OUTPUT_LONGoutputstatic StringARG_OUTPUT_MANLocation where the output is to be stored.static StringARG_QUERYqstatic StringARG_QUERY_LONGquery-filestatic StringARG_QUERY_MANName of the query file in the directory.static StringARG_SOURCE_LONGDeprecated.static StringARG_SOURCE_MANDeprecated.static StringARG_STREAMsstatic StringARG_STREAM_LONGstreamstatic StringARG_STREAM_MANGenerate output as stream.static StringARG_SYNTAXxstatic StringARG_SYNTAX_LONGsyntaxstatic StringARG_SYNTAX_MANJust validate the query, do nothing else
-
Constructor Summary
Constructors Constructor Description CMDConfigurations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddisplayHelp()static org.apache.commons.cli.OptionsgetCMDOptions()static org.apache.commons.cli.CommandLineparseArguments(String[] args)
-
-
-
Field Detail
-
ARG_HELP
public static final String ARG_HELP
h- See Also:
- Constant Field Values
-
ARG_HELP_LONG
public static final String ARG_HELP_LONG
help- See Also:
- Constant Field Values
-
ARG_HELP_MAN
public static final String ARG_HELP_MAN
Show help- See Also:
- Constant Field Values
-
ARG_DIRECTORY
public static final String ARG_DIRECTORY
d- See Also:
- Constant Field Values
-
ARG_DIRECTORY_LONG
public static final String ARG_DIRECTORY_LONG
dir- See Also:
- Constant Field Values
-
ARG_DIRECTORY_DEFAULT
public static final String ARG_DIRECTORY_DEFAULT
.- See Also:
- Constant Field Values
-
ARG_DIRECTORY_MAN
public static final String ARG_DIRECTORY_MAN
Location of the directory with the queryset, documentset, dataset, and configuration files as explained in https://w3id.org/sparql-generate/language-cli.html. Default value is . (the current folder)- See Also:
- Constant Field Values
-
ARG_BASE
public static final String ARG_BASE
b- See Also:
- Constant Field Values
-
ARG_BASE_LONG
public static final String ARG_BASE_LONG
base- See Also:
- Constant Field Values
-
ARG_BASE_MAN
public static final String ARG_BASE_MAN
Base URI of the working directory. If set, each file in the working directory is identified by a URI resolved against the base.- See Also:
- Constant Field Values
-
ARG_QUERY
public static final String ARG_QUERY
q- See Also:
- Constant Field Values
-
ARG_QUERY_LONG
public static final String ARG_QUERY_LONG
query-file- See Also:
- Constant Field Values
-
ARG_QUERY_MAN
public static final String ARG_QUERY_MAN
Name of the query file in the directory. Default value is ./query.rqg- See Also:
- Constant Field Values
-
ARG_OUTPUT
public static final String ARG_OUTPUT
o- See Also:
- Constant Field Values
-
ARG_OUTPUT_LONG
public static final String ARG_OUTPUT_LONG
output- See Also:
- Constant Field Values
-
ARG_OUTPUT_MAN
public static final String ARG_OUTPUT_MAN
Location where the output is to be stored. By default the output is stored in a file with the same name as the query and the extension '.out'.- See Also:
- Constant Field Values
-
ARG_OUTPUT_APPEND
public static final String ARG_OUTPUT_APPEND
oa- See Also:
- Constant Field Values
-
ARG_OUTPUT_APPEND_LONG
public static final String ARG_OUTPUT_APPEND_LONG
output-append- See Also:
- Constant Field Values
-
ARG_OUTPUT_APPEND_MAN
public static final String ARG_OUTPUT_APPEND_MAN
Write from the end of the output file, instead of replacing it.- See Also:
- Constant Field Values
-
ARG_OUTPUT_FORMAT
public static final String ARG_OUTPUT_FORMAT
of- See Also:
- Constant Field Values
-
ARG_OUTPUT_FORMAT_LONG
public static final String ARG_OUTPUT_FORMAT_LONG
output-format- See Also:
- Constant Field Values
-
ARG_OUTPUT_FORMAT_MAN
public static final String ARG_OUTPUT_FORMAT_MAN
Format of the output file, e.g. TTL, NT, etc. for GENERATE, or TEXT, XML, CSV, etc. for SELECT.- See Also:
- Constant Field Values
-
ARG_SOURCE_LONG
@Deprecated public static final String ARG_SOURCE_LONG
Deprecated.source- See Also:
- Constant Field Values
-
ARG_SOURCE_MAN
@Deprecated public static final String ARG_SOURCE_MAN
Deprecated.Replacesin a SOURCE clause with the given value, e.g. urn:sg:source=source.json. - See Also:
- Constant Field Values
-
ARG_STREAM
public static final String ARG_STREAM
s- See Also:
- Constant Field Values
-
ARG_STREAM_LONG
public static final String ARG_STREAM_LONG
stream- See Also:
- Constant Field Values
-
ARG_STREAM_MAN
public static final String ARG_STREAM_MAN
Generate output as stream.- See Also:
- Constant Field Values
-
ARG_HDT
public static final String ARG_HDT
hdt- See Also:
- Constant Field Values
-
ARG_HDT_LONG
public static final String ARG_HDT_LONG
hdt- See Also:
- Constant Field Values
-
ARG_HDT_MAN
public static final String ARG_HDT_MAN
Generate output as HDT.- See Also:
- Constant Field Values
-
ARG_LOG_LEVEL
public static final String ARG_LOG_LEVEL
l- See Also:
- Constant Field Values
-
ARG_LOG_LEVEL_LONG
public static final String ARG_LOG_LEVEL_LONG
log-level- See Also:
- Constant Field Values
-
ARG_LOG_LEVEL_MAN
public static final String ARG_LOG_LEVEL_MAN
Set log level, acceptable values are TRACE < DEBUG < INFO < WARN < ERROR < OFF. No value or unrecognized value results in level DEBUG- See Also:
- Constant Field Values
-
ARG_LOG_FILE
public static final String ARG_LOG_FILE
f- See Also:
- Constant Field Values
-
ARG_LOG_FILE_LONG
public static final String ARG_LOG_FILE_LONG
log-file- See Also:
- Constant Field Values
-
ARG_LOG_FILE_MAN
public static final String ARG_LOG_FILE_MAN
Location where the log is to be stored. Log also goes to the console.- See Also:
- Constant Field Values
-
ARG_DEBUG_TEMPLATE
public static final String ARG_DEBUG_TEMPLATE
dt- See Also:
- Constant Field Values
-
ARG_DEBUG_TEMPLATE_LONG
public static final String ARG_DEBUG_TEMPLATE_LONG
debug-template- See Also:
- Constant Field Values
-
ARG_DEBUG_TEMPLATE_MAN
public static final String ARG_DEBUG_TEMPLATE_MAN
Debug the template output: insert warning identifiers that refer to the log.- See Also:
- Constant Field Values
-
ARG_BIND_LONG
public static final String ARG_BIND_LONG
bind- See Also:
- Constant Field Values
-
ARG_BIND_MAN
public static final String ARG_BIND_MAN
Binds a query parameter to a RDF term- See Also:
- Constant Field Values
-
ARG_SYNTAX
public static final String ARG_SYNTAX
x- See Also:
- Constant Field Values
-
ARG_SYNTAX_LONG
public static final String ARG_SYNTAX_LONG
syntax- See Also:
- Constant Field Values
-
ARG_SYNTAX_MAN
public static final String ARG_SYNTAX_MAN
Just validate the query, do nothing else- See Also:
- Constant Field Values
-
-
Method Detail
-
parseArguments
public static org.apache.commons.cli.CommandLine parseArguments(String[] args) throws org.apache.commons.cli.ParseException
- Throws:
org.apache.commons.cli.ParseException
-
getCMDOptions
public static org.apache.commons.cli.Options getCMDOptions()
-
displayHelp
public static void displayHelp()
-
-