The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Fix::wdata_retain_language - Limit string values to a selected language

VERSION

version 0.3.0

DESCRIPTION

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

    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.

AUTHOR

Jakob Voß

COPYRIGHT AND LICENSE

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.