Catman...Breaker(3pm)

✨ NAME ✨

okay bestie, listen up πŸ’– this page is all about Catman...Breaker(3pm) β€” the manual page for Catmandu::Exporter::Breaker, a package that exports OAI-PMH DC in a Breaker format. yep that's the whole vibe. slay. πŸ’…


🌸 SYNOPSIS 🌸

like, here's the receipts, fr fr β€” every single one of these works exactly as written:

# Using the default breaker
$ catmandu convert JSON to Breaker < data.json

# Using a OAI_DC breaker
$ catmandu convert OAI --url http://biblio.ugent.be/oai to Breaker

# Using a MARCXML breaker
$ catmandu convert MARC to Breaker --handler marc

# Using an XML breaker
$ catmandu convert XML --path book to Breaker --handler xml < t/book.xml > data.breaker

# Write a fields file containing all unique fields
$ catmandu convert XML --path book to Breaker --handler xml --fields data.fields < t/book.xml > data.breaker

# Find the usage statistics of fields in the XML file above
$ catmandu breaker data.breaker

# Convert the Breaker format by line into JSON
$ catmandu convert Breaker < data.breaker

# Convert the Breaker format by line into JSON using the fields file
$ catmandu convert Breaker --fields data.fields < data.breaker

no cap, just copy-paste and go 🫢


πŸ’œ DESCRIPTION πŸ’œ

so the lore is: this whole thing was inspired by the article "Metadata Analysis at the Command-Line" by Mark Phillips, which lives at http://journal.code4lib.org/articles/7818. iconic behaviour honestly.

what this exporter does is take a metadata record and literally break it πŸ’€ β€” into the Breaker format β€” so that command line tools can analyze it further. it's giving "deconstructed, but make it useful." main character energy for your metadata. ✨


πŸŽ€ BREAKER FORMAT πŸŽ€

the format is lowkey simple and that's the whole point:

<record-identifier><tab><metadata-field><tab><metadata-value>

three things, separated by tabs, in that exact order. periodt. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Importer::Breaker β€” the other half of this situationship πŸ’ž

and that's the tea, bestie πŸ“ this was the Catman...Breaker(3pm) page β€” User Contributed Perl Documentation, from perl v5.36.0, dated 2023-02-08. ily, go break some metadata πŸ’–βœ¨

πŸ“¦ where this page comes from