NAME

Catmandu::Exporter::Breaker - Package that exports OAI-PMH DC in a Breaker format

SYNOPSIS

# 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

DESCRIPTION

Inspired by the article "Metadata Analysis at the Command-Line" by Mark Phillips in http://journal.code4lib.org/articles/7818 this exporter breaks a metadata records into the Breaker format which can be analyzed further by command line tools.

BREAKER FORMAT

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

SEE ALSO

Catmandu::Importer::Breaker