Catman...kidata(3pm)

πŸ“¦
version 0.06 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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 β€” applies Catmandu::Fix::wd_simple_strings and Catmandu::Fix::wd_simple_claims. then it goes even further and simplifies sitelinks, and optionally applies Catmandu::Fix::wd_language too. the combo queen πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

iykyk β€” go read both, fr fr 🌸


🌟 AUTHOR 🌟

Jakob Voß πŸ’œ


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