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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main method.static void
Prints some basic documentation about this program.void
Prints the current status, time and entity count.void
processItemDocument
(ItemDocument itemDocument) Processes the given ItemDocument.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:EntityDocumentProcessor
Processes the given ItemDocument.- Specified by:
processItemDocument
in 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.
-