DumpProcessingAction, org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessor, org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorpublic class RdfSerializationAction extends DumpProcessingOutputAction
OPTION_RDF_TASKS, which is required for
generating any output.DumpProcessingOutputAction.FinishableRunnable| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DEFAULT_ACTION_NAME |
default action name is used to separate different
DumpProcessingOutputActions from each other.
|
static java.lang.String |
DEFAULT_FILE_NAME |
The base file name that will be used by default.
|
static java.util.Map<java.lang.String,java.lang.Integer> |
KNOWN_TASKS |
|
static java.lang.String |
OPTION_RDF_TASKS |
Name of the option that defines the tasks of the RDF serializer.
|
static java.util.Map<java.lang.String,java.lang.String> |
TASK_HELP |
COMPRESS_BZ2, COMPRESS_GZIP, COMPRESS_NONE, compressionType, dateStamp, name, OPTION_COMPRESSION, OPTION_DESTINATION, OPTION_USE_STDOUT, outputDestination, outputStreams, project, sites, useStdOut| Constructor | Description |
|---|---|
RdfSerializationAction() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected RdfSerializer |
createRdfSerializer() |
Creates a new RDF serializer based on the current configuration of this
object.
|
java.lang.String |
getDefaultActionName() |
Returns the default name for an action.
|
java.lang.String |
getReport() |
Returns a report message containing information about the files which
were generated.
|
boolean |
isReady() |
Returns true if the action is ready to process a dump.
|
boolean |
needsSites() |
Returns true if processing requires a
Sites object to be set. |
void |
open() |
|
void |
processItemDocument(org.wikidata.wdtk.datamodel.interfaces.ItemDocument itemDocument) |
|
void |
processPropertyDocument(org.wikidata.wdtk.datamodel.interfaces.PropertyDocument propertyDocument) |
|
boolean |
setOption(java.lang.String option,
java.lang.String value) |
Sets the options of the specified name to the given value.
|
getActionName, getAsynchronousOutputStream, getOutputFilename, getOutputStream, insertDumpInformation, setActionName, setDumpInformation, setSites, useStdOutpublic static final java.lang.String OPTION_RDF_TASKS
public static final java.util.Map<java.lang.String,java.lang.Integer> KNOWN_TASKS
public static final java.util.Map<java.lang.String,java.lang.String> TASK_HELP
public static final java.lang.String DEFAULT_FILE_NAME
public static final java.lang.String DEFAULT_ACTION_NAME
public boolean setOption(java.lang.String option,
java.lang.String value)
DumpProcessingActionsetOption in interface DumpProcessingActionsetOption in class DumpProcessingOutputActionoption - name of the option to be setvalue - the new value of the optionpublic boolean needsSites()
DumpProcessingActionSites object to be set.
This is the case for some operations that process site links.public boolean isReady()
DumpProcessingActionIf this method is called on an action that is not ready, the action should print helpful information on the missing configuration to stdout as a side effect.
public void open()
public void processItemDocument(org.wikidata.wdtk.datamodel.interfaces.ItemDocument itemDocument)
public void processPropertyDocument(org.wikidata.wdtk.datamodel.interfaces.PropertyDocument propertyDocument)
public void close()
close in interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessorclose in class DumpProcessingOutputActionprotected RdfSerializer createRdfSerializer() throws java.io.IOException
java.io.IOException - if there were problems opening the output filespublic java.lang.String getReport()
DumpProcessingActionpublic java.lang.String getDefaultActionName()
DumpProcessingActionCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage