Catman...kidata(3pm)
β¨ Catmandu::Wikidata (3pm) β¨
okay bestie, sit DOWN, because this is the Catmandu::Wikidata manual page, section 3pm of the User Contributed Perl Documentation, and it's literally the glow-up your Wikidata pipeline has been waiting for π
πΈ NAME πΈ
Catmandu::Wikidata β import from Wikidata so you can process it with Catmandu π¦
π VERSION π
version 0.06 β yes, the whole entire vibe, right there in the number β¨
π SYNOPSIS π
here's the group chat receipts of how you actually run it:
catmandu convert Wikidata --items Q42,P19 to JSON --pretty 1
echo Q42 | catmandu convert Wikidata to JSON --pretty 1
catmandu convert Wikidata --site enwiki --title "Emma Goldman" to JSON --pretty 1
catmandu convert Wkidata --title dewiki:Metadaten to JSON --pretty 1
catmandu convert Wikidata --title "Emma Goldman" \
--fix "wd_language('en')" to JSON --pretty 1
(that second Wkidata line? yeah she's serving a little typo energy, but she's in the original so she stays, no cap π«Ά)
π DESCRIPTION π
so Catmandu::Wikidata hands you a whole set of modules for processing data from <http://www.wikidata.org/> inside the Catmandu framework. it's giving very main character.
specifically, it makes it easy to get at Wikidata entity records via Catmandu::Importer::Wikidata, and then to simplify those records using fixes β that's wd_language($language), wd_simple(), wd_simple_strings(), and wd_simple_claims(). and because it's Catmandu, you can bring in other Catmandu modules to keep processing the records after that, like loading them into a database. iconic behavior honestly π₯
π MODULES π
Catmandu::Importer::Wikidataβ imports entities from <http://www.wikidata.org/>, periodt.Catmandu::Fix::wd_languageβ limits the string values in a Wikidata entity record down to just one language you picked.Catmandu::Fix::wd_simple_stringsβ simplifies labels, descriptions, and aliases of a Wikidata entity record. so much cleaner bestie β¨Catmandu::Fix::wd_simple_claimsβ simplifies the claims of a Wikidata entity record.Catmandu::Fix::wd_simpleβ appliesCatmandu::Fix::wd_simple_stringsandCatmandu::Fix::wd_simple_claims. then it goes even further and simplifies sitelinks, and optionally appliesCatmandu::Fix::wd_languagetoo. the combo queen π
π¦ SEE ALSO π¦
- background info on Catmandu lives at <http://librecat.org/>.
- background info on Wikidata lives at <http://www.wikidata.org/wiki/Wikidata:Introduction>.
iykyk β go read both, fr fr πΈ
π AUTHOR π
Jakob VoΓ π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 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.
okay and for the little sign-off moment π: this whole page comes to you from perl v5.40.1, dated 2025-08-15, and it's the Catmandu::Wikidata page in section 3pm of the User Contributed Perl Documentation. slay, bye bestie πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: libcatmandu-wikidata-perl 0.06-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-wikidata-perl 0.06-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms