Wikidata Toolkit 0.5.0
The fifth release of the Wikidata Toolkit introduces support for data reading and writing via the Web API of Wikidata (or any Wikibase site) new Wikidata features, introduces support for units of measurement (also new in Wikibase), adds more helpers to simplify your code, and fixes some compatibility issues. Main changes to the library are:
- Support for reading and writing live entity data from wikidata.org or any other Wikibase site (issue #162)
- New examples for illustrating read/write API support
- Support for quantities with units of measurement (new feature in Wikibase; still beta)
- New builder classes to simplify construction of EntityDocuments, Statements, and References
- Support processing of local dump files by file name in code and command-line client (issue #136)
- New example WorldMapProcessor that shows the generation of maps from geographic data
- Improved output file naming for examples, taking dump date into account
- RDF export uses property register for fewer Web requests during export
- RDF export supports Wikidata's P1921 URI patterns to create links to external RDF datasets
Minor compatibility changes:
- EntityDocumentProcessorFilter has a modified constructor that requires a filter object to be given. The direct set methods to define the filter are no longer available.
Artifacts are also released on Maven Central and it is strongly recommend to use this. To do this, insert the following dependency into your pom.xml:
<dependency>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-dumpfiles</artifactId>
<version>0.5.0</version>
</dependency>
Similar configurations can be used for other modules (e.g., wdtk-rdf or wdtk-datamodel), but most dependencies will be resolved for you by Maven. Detailed instructions are given in the Wikidata Toolkit user documentation.