Package org.wikidata.wdtk.examples
Class GreatestNumberProcessor
java.lang.Object
org.wikidata.wdtk.examples.GreatestNumberProcessor
- All Implemented Interfaces:
EntityDocumentProcessor
This simple
EntityDocumentProcessor finds the greatest number
assigned to a certain property. The property can be modified by changing the
value for numberPropertyId.- Author:
- Markus Kroetzsch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method.static voidPrints some basic documentation about this program.voidPrints the current status, time and entity count.voidprocessItemDocument(ItemDocument itemDocument) Processes the given ItemDocument.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessor
processEntityRedirectDocument, processLexemeDocument, processMediaInfoDocument, processPropertyDocument
-
Constructor Details
-
GreatestNumberProcessor
public GreatestNumberProcessor()
-
-
Method Details
-
main
Main method. Processes the whole dump using this processor. To change which dump file to use and whether to run in offline mode, modify the settings inExampleHelpers.- Parameters:
args-- Throws:
IOException
-
processItemDocument
Description copied from interface:EntityDocumentProcessorProcesses the given ItemDocument.- Specified by:
processItemDocumentin interfaceEntityDocumentProcessor- Parameters:
itemDocument- the ItemDocument
-
printStatus
public void printStatus()Prints the current status, time and entity count. -
printDocumentation
public static void printDocumentation()Prints some basic documentation about this program.
-