Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessor
Package
Description
Package for mostly static helper code to work with data objects.
Interfaces for representing Wikibase data and related factories.
Components for downloading and processing Wikibase dump files.
Package for example programs that demonstrate how to use Wikidata Toolkit in practice.
Package for examples of bots that edit Wikidata.
Serializer for RDF
-
Uses of EntityDocumentProcessor in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeClassDescriptionclass
This class implementsEntityDocumentDumpProcessor
to provide a serializer forEntityDocument
objects in JSON. -
Uses of EntityDocumentProcessor in org.wikidata.wdtk.datamodel.interfaces
Modifier and TypeInterfaceDescriptioninterface
Interface for classes that process a list ofEntityDocument
objects.Modifier and TypeClassDescriptionclass
Simple broker implementation ofEntityDocumentProcessor
which distributes entity documents to multiple registered listeners.class
Implementation ofEntityDocumentProcessor
that acts as a filter, removing some of the data fromEntityDocument
objects before passing them on to another processor.Modifier and TypeMethodDescriptionvoid
EntityDocumentProcessorBroker.registerEntityDocumentProcessor
(EntityDocumentProcessor entityDocumentProcessor) Registers a listener which will be called for all entity documents that are processed.ModifierConstructorDescriptionEntityDocumentProcessorFilter
(EntityDocumentProcessor entityDocumentProcessor, DocumentDataFilter filter) Constructor. -
Uses of EntityDocumentProcessor in org.wikidata.wdtk.dumpfiles
Modifier and TypeClassDescriptionclass
SimpleEntityDocumentProcessor
for basic counting and time keeping.Modifier and TypeMethodDescriptionvoid
DumpProcessingController.registerEntityDocumentProcessor
(EntityDocumentProcessor entityDocumentProcessor, String model, boolean onlyCurrentRevisions) Registers an EntityDocumentProcessor, which will henceforth be notified of all entity documents that are encountered in the dump.ModifierConstructorDescriptionJsonDumpFileProcessor
(EntityDocumentProcessor entityDocumentProcessor, String siteIri) WikibaseRevisionProcessor
(EntityDocumentProcessor entityDocumentProcessor, String siteIri) Constructor. -
Uses of EntityDocumentProcessor in org.wikidata.wdtk.examples
Modifier and TypeClassDescriptionclass
This advanced example analyses the use of properties and classes in a dump file, and stores the results in two CSV files.class
This simpleEntityDocumentProcessor
finds all items with a GND identifier (property P227) who are also humans (P31 with value Q5), and extracts for each of them the id, GND value, as well as English and German labels and Wikipedia articles, if any.class
This document processor calculates the gender ratios of people featured on Wikimedia projects.class
This simpleEntityDocumentProcessor
finds the greatest number assigned to a certain property.class
This example illustrates how to create a JSON serialization of some of the data found in a dump.class
This document processor calculates the average life expectancy of people, based on property ids used on Wikidata.class
This is a simple template for anEntityDocumentProcessor
that can be modified to try your own code.class
This example class processes EntityDocuments to create a map image that shows the distribution of items with geographic coordinates on Earth.Modifier and TypeMethodDescriptionstatic void
ExampleHelpers.processEntitiesFromWikidataDump
(EntityDocumentProcessor entityDocumentProcessor) Processes all entities in a Wikidata dump using the given entity processor. -
Uses of EntityDocumentProcessor in org.wikidata.wdtk.examples.bots
Modifier and TypeClassDescriptionclass
This bot adds changes quantity values of properties that are required to use integers (such as population numbers) to be exact if they are now set to +/-1.class
This bot adds a default label to Wikidata items that are about numbers, by simply creating a string for any integer number. -
Uses of EntityDocumentProcessor in org.wikidata.wdtk.rdf
Modifier and TypeClassDescriptionclass
This class implementsEntityDocumentDumpProcessor
to provide a RDF serializer to render RDF graphs ofEntityDocument
objects.