Class CMDConfigurations


  • public class CMDConfigurations
    extends java.lang.Object
    Author:
    Maxime Lefrançois
    • Field Detail

      • ARG_HELP_MAN

        public static final java.lang.String ARG_HELP_MAN
        Show help
        See Also:
        Constant Field Values
      • ARG_DIRECTORY_LONG

        public static final java.lang.String ARG_DIRECTORY_LONG
        dir
        See Also:
        Constant Field Values
      • ARG_DIRECTORY_DEFAULT

        public static final java.lang.String ARG_DIRECTORY_DEFAULT
        .
        See Also:
        Constant Field Values
      • ARG_DIRECTORY_MAN

        public static final java.lang.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_MAN

        public static final java.lang.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_LONG

        public static final java.lang.String ARG_QUERY_LONG
        query-file
        See Also:
        Constant Field Values
      • ARG_QUERY_MAN

        public static final java.lang.String ARG_QUERY_MAN
        Name of the query file in the directory. Default value is ./query.rqg
        See Also:
        Constant Field Values
      • ARG_OUTPUT_LONG

        public static final java.lang.String ARG_OUTPUT_LONG
        output
        See Also:
        Constant Field Values
      • ARG_OUTPUT_MAN

        public static final java.lang.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 java.lang.String ARG_OUTPUT_APPEND
        oa
        See Also:
        Constant Field Values
      • ARG_OUTPUT_APPEND_LONG

        public static final java.lang.String ARG_OUTPUT_APPEND_LONG
        output-append
        See Also:
        Constant Field Values
      • ARG_OUTPUT_APPEND_MAN

        public static final java.lang.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 java.lang.String ARG_OUTPUT_FORMAT
        of
        See Also:
        Constant Field Values
      • ARG_OUTPUT_FORMAT_LONG

        public static final java.lang.String ARG_OUTPUT_FORMAT_LONG
        output-format
        See Also:
        Constant Field Values
      • ARG_OUTPUT_FORMAT_MAN

        public static final java.lang.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

        public static final java.lang.String ARG_SOURCE_LONG
        source
        See Also:
        Constant Field Values
      • ARG_SOURCE_MAN

        public static final java.lang.String ARG_SOURCE_MAN
        Replaces in a SOURCE clause with the given value, e.g. urn:sg:source=source.json.
        See Also:
        Constant Field Values
      • ARG_STREAM_LONG

        public static final java.lang.String ARG_STREAM_LONG
        stream
        See Also:
        Constant Field Values
      • ARG_STREAM_MAN

        public static final java.lang.String ARG_STREAM_MAN
        Generate output as stream.
        See Also:
        Constant Field Values
      • ARG_HDT_MAN

        public static final java.lang.String ARG_HDT_MAN
        Generate output as HDT.
        See Also:
        Constant Field Values
      • ARG_LOG_LEVEL_LONG

        public static final java.lang.String ARG_LOG_LEVEL_LONG
        log-level
        See Also:
        Constant Field Values
      • ARG_LOG_LEVEL_MAN

        public static final java.lang.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_LONG

        public static final java.lang.String ARG_LOG_FILE_LONG
        log-file
        See Also:
        Constant Field Values
      • ARG_LOG_FILE_MAN

        public static final java.lang.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 java.lang.String ARG_DEBUG_TEMPLATE
        dt
        See Also:
        Constant Field Values
      • ARG_DEBUG_TEMPLATE_LONG

        public static final java.lang.String ARG_DEBUG_TEMPLATE_LONG
        debug-template
        See Also:
        Constant Field Values
      • ARG_DEBUG_TEMPLATE_MAN

        public static final java.lang.String ARG_DEBUG_TEMPLATE_MAN
        Debug the template output: insert warning identifiers that refer to the log.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CMDConfigurations

        public CMDConfigurations()
    • Method Detail

      • parseArguments

        public static org.apache.commons.cli.CommandLine parseArguments​(java.lang.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()