public class ClientConfiguration
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CMD_OPTION_ACTION |
Short command-line alternative to
OPTION_ACTION. |
static java.lang.String |
CMD_OPTION_CONFIG_FILE |
Short command-line alternative to
OPTION_CONFIG_FILE. |
static java.lang.String |
CMD_OPTION_CREATE_REPORT |
Short command-line alternative to
OPTION_CREATE_REPORT. |
static java.lang.String |
CMD_OPTION_DUMP_LOCATION |
Short command-line alternative to
OPTION_DUMP_LOCATION. |
static java.lang.String |
CMD_OPTION_HELP |
Short command-line alternative to
OPTION_HELP. |
static java.lang.String |
CMD_OPTION_LOCAL_DUMPFILE |
Short command-line alternative to
OPTION_LOCAL_DUMPFILE. |
static java.lang.String |
CMD_OPTION_OFFLINE_MODE |
Short command-line alternative to
OPTION_OFFLINE_MODE. |
static java.lang.String |
CMD_OPTION_OUTPUT_COMPRESSION |
Short command-line alternative to
OPTION_OUTPUT_COMPRESSION. |
static java.lang.String |
CMD_OPTION_OUTPUT_DESTINATION |
Short command-line alternative to
OPTION_OUTPUT_DESTINATION. |
static java.lang.String |
CMD_OPTION_OUTPUT_STDOUT |
Short command-line alternative to
OPTION_OUTPUT_STDOUT. |
static java.lang.String |
CMD_OPTION_QUIET |
Short command-line alternative to
OPTION_QUIET. |
static java.lang.String |
OPTION_ACTION |
Name of the long command line option for selecting an action that should
be performed.
|
static java.lang.String |
OPTION_CONFIG_FILE |
Name of the long command line option for specifying the location of the
configuration file.
|
static java.lang.String |
OPTION_CREATE_REPORT |
Name of the long command line option to create a report file about the
files produced by DumpProcessingOutputActions.
|
static java.lang.String |
OPTION_DUMP_LOCATION |
Name of the long command line option and configuration file field for
specifying the base location of the dump files to use.
|
static java.lang.String |
OPTION_FILTER_LANGUAGES |
Name of the long command line option and configuration file field for
specifying the language filters.
|
static java.lang.String |
OPTION_FILTER_PROPERTIES |
Name of the long command line option and configuration file field for
specifying the property filters.
|
static java.lang.String |
OPTION_FILTER_SITES |
Name of the long command line option and configuration file field for
specifying the site link filters.
|
static java.lang.String |
OPTION_HELP |
Name of the long command line option for printing the help text.
|
static java.lang.String |
OPTION_LOCAL_DUMPFILE |
Name of the long command line option and configuration file field for
defining the path to a local dump file.
|
static java.lang.String |
OPTION_OFFLINE_MODE |
Name of the long command line option and configuration file field for
switching to offline mode.
|
static java.lang.String |
OPTION_OUTPUT_COMPRESSION |
Name of the long command line option and configuration file field for
specifying the compression to use for the output.
|
static java.lang.String |
OPTION_OUTPUT_DESTINATION |
Name of the long command line option and configuration file field for
defining the destination (usually output file name) of actions that
produce output.
|
static java.lang.String |
OPTION_OUTPUT_RDF_TYPE |
Name of the long command line option and configuration file field for
specifying the tasks for RDF serialization.
|
static java.lang.String |
OPTION_OUTPUT_STDOUT |
Name of the long command line option and configuration file field for
directing output to stdout.
|
static java.lang.String |
OPTION_QUIET |
Name of the long command line option and configuration file field for
requesting that no messages are logged to stdout.
|
| Constructor | Description |
|---|---|
ClientConfiguration(java.lang.String[] args) |
Constructs a new object for the given arguments.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<DumpProcessingAction> |
getActions() |
Returns the list of actions defined for this object.
|
java.lang.String |
getDateStamp() |
Returns the date stamp of the dump file.
|
java.lang.String |
getDumpDirectoryLocation() |
Returns the location of the directory where downloaded dump files are
stored, or null if the default is to be used.
|
java.util.Set<java.lang.String> |
getFilterLanguages() |
Returns a set of language codes that should be used as a filter, or null
if no filter is set.
|
java.util.Set<org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue> |
getFilterProperties() |
Returns a set of property ids that should be used as a filter for
statements, or null if no filter is set.
|
java.util.Set<java.lang.String> |
getFilterSiteKeys() |
Returns a set of site keys that should be used as a filter for site
links, or null if no filter is set.
|
java.lang.String |
getInputDumpLocation() |
Returns the string path to a dump file that should be processed.
|
org.wikidata.wdtk.dumpfiles.MwLocalDumpFile |
getLocalDumpFile() |
Returns a local dump file that was previously downloaded and should be
locally processed, or null if no local dump file is set.
|
boolean |
getOfflineMode() |
Returns true if all operations should be performed in offline mode,
without accessing the Internet.
|
java.lang.String |
getProjectName() |
Returns the project name according to the dump file.
|
java.lang.String |
getReportFileName() |
Returns the output destination where a report file should be created.
|
java.lang.String |
insertDumpInformation(java.lang.String pattern) |
|
static java.lang.String |
insertDumpInformation(java.lang.String pattern,
java.lang.String dateStamp,
java.lang.String project) |
Inserts the information about the dateStamp of a dump and the project
name into a pattern.
|
boolean |
isQuiet() |
Returns true if the application should not write anything to stdout.
|
void |
printHelp() |
Prints a help text to the console.
|
void |
setDateStamp(java.lang.String dateStamp) |
Sets the date stamp of the dump file.
|
void |
setProjectName(java.lang.String project) |
Sets the project name of the dump file.
|
public static final java.lang.String CMD_OPTION_HELP
OPTION_HELP.public static final java.lang.String CMD_OPTION_CONFIG_FILE
OPTION_CONFIG_FILE.public static final java.lang.String CMD_OPTION_DUMP_LOCATION
OPTION_DUMP_LOCATION.public static final java.lang.String CMD_OPTION_QUIET
OPTION_QUIET.public static final java.lang.String CMD_OPTION_OFFLINE_MODE
OPTION_OFFLINE_MODE.public static final java.lang.String CMD_OPTION_ACTION
OPTION_ACTION.public static final java.lang.String CMD_OPTION_OUTPUT_DESTINATION
OPTION_OUTPUT_DESTINATION.public static final java.lang.String CMD_OPTION_OUTPUT_COMPRESSION
OPTION_OUTPUT_COMPRESSION.public static final java.lang.String CMD_OPTION_OUTPUT_STDOUT
OPTION_OUTPUT_STDOUT.public static final java.lang.String CMD_OPTION_CREATE_REPORT
OPTION_CREATE_REPORT.public static final java.lang.String CMD_OPTION_LOCAL_DUMPFILE
OPTION_LOCAL_DUMPFILE.public static final java.lang.String OPTION_HELP
public static final java.lang.String OPTION_CONFIG_FILE
public static final java.lang.String OPTION_DUMP_LOCATION
public static final java.lang.String OPTION_OFFLINE_MODE
public static final java.lang.String OPTION_QUIET
public static final java.lang.String OPTION_ACTION
KNOWN_ACTIONS.public static final java.lang.String OPTION_FILTER_LANGUAGES
public static final java.lang.String OPTION_FILTER_SITES
public static final java.lang.String OPTION_FILTER_PROPERTIES
public static final java.lang.String OPTION_CREATE_REPORT
public static final java.lang.String OPTION_OUTPUT_DESTINATION
public static final java.lang.String OPTION_OUTPUT_COMPRESSION
public static final java.lang.String OPTION_OUTPUT_STDOUT
public static final java.lang.String OPTION_OUTPUT_RDF_TYPE
public static final java.lang.String OPTION_LOCAL_DUMPFILE
public ClientConfiguration(java.lang.String[] args)
args - command-line argumentspublic static java.lang.String insertDumpInformation(java.lang.String pattern,
java.lang.String dateStamp,
java.lang.String project)
pattern - String with wildcardsdateStamp - project - public java.util.List<DumpProcessingAction> getActions()
public java.lang.String getDumpDirectoryLocation()
public boolean getOfflineMode()
public boolean isQuiet()
public java.lang.String getReportFileName()
public java.util.Set<java.lang.String> getFilterLanguages()
public java.util.Set<java.lang.String> getFilterSiteKeys()
public java.util.Set<org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue> getFilterProperties()
public java.lang.String getInputDumpLocation()
public org.wikidata.wdtk.dumpfiles.MwLocalDumpFile getLocalDumpFile()
The dump file object will be created based on the current configuration.
public void setProjectName(java.lang.String project)
project - public void setDateStamp(java.lang.String dateStamp)
dateStamp - public java.lang.String getProjectName()
public java.lang.String getDateStamp()
public void printHelp()
public java.lang.String insertDumpInformation(java.lang.String pattern)
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage