Catmandu::Fix::wdata_retain_language - Limit string values to a selected language
version 0.3.0
This Catmandu::Fix modifies a Wikidata entity record, as imported by Catmandu::Importer::Wikidata, by deleting all language tagged strings (in aliases, labels, and descriptions) expect a selected language. The fix
aliases
labels
descriptions
wdata_retain_language('fr');
is roughly equivalent to
move_field('labels.fr.value','label'); move_field('descriptions.fr.value','description'); move_field('aliases.fr.*.value','alias.$append');
Modification of additional fields may be added in a future release of this module.
Jakob Voß
This software is copyright (c) 2013 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catmandu::Wikidata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Wikidata
CPAN shell
perl -MCPAN -e shell install Catmandu::Wikidata
For more information on module installation, please visit the detailed CPAN module installation guide.