Package org.wikidata.wdtk.examples
package org.wikidata.wdtk.examples
Package for example programs that demonstrate how to use Wikidata Toolkit in practice.
- Author:
- Markus Kroetzsch
-
ClassDescriptionThis advanced example analyses the use of properties and classes in a dump file, and stores the results in two CSV files.This simple
EntityDocumentProcessor
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.This example shows how to create and modify data through the web API of a Wikibase site.This example shows how to create and modify media info data.Class for sharing code that is used in many examples.Enum to say which dumps should be downloaded and processed.This document processor calculates the gender ratios of people featured on Wikimedia projects.Class to store basic information for each site in a simple format.Class to order site records human page count.This simpleEntityDocumentProcessor
finds the greatest number assigned to a certain property.This example illustrates how to create a JSON serialization of some of the data found in a dump.This document processor calculates the average life expectancy of people, based on property ids used on Wikidata.This class illustrates how to process local dumpfiles.This example shows how to retrieve MediaInfo data from the API.This class shows how convert data from wikidata.org to RDF in N-Triples format.This class demonstrates how to get access to information about sitelinks in Wikidata.org.This is a simple template for anEntityDocumentProcessor
that can be modified to try your own code.This example application applies anEntityDocumentProcessor
to all documents in a Wikidata dump file.This example class processes EntityDocuments to create a map image that shows the distribution of items with geographic coordinates on Earth.