The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

picadata - parse and validate PICA+ data

SYNOPSIS

picadata [[--from] TYPE] [--schema FILE] [--to [TYPE]] {OPTIONS} [FILE]

DESCRIPTION

Parse, validate and/or serialize PICA+ data from the command line, e.g.:

picadata pica.xml -s schema.json   # validate against Avram schema
picadata pica.dat -t xml           # convert binary to XML
picadata -c -f plain < pica.plain  # parse and count records
picadata -p 003@ pica.xml -t       # extract field 003@

OPTIONS

--from, -f

PICA serialization type (plain, plus, binary, XML, ppxml) with XML as default. Guessed from input filename unless specified. See format documentation at http://format.gbv.de/pica

--to, -t

PICA serialization type to enable writing parsed PICA data.

--count, -c

Count number of records, holdings, items, and fields.

--path, -p

Limit the record to fields specified by a simple PICA Path expression. Multiple expressions can be separated by or |. Expressions must either all reference fields or all reference subfields, the latter to emit subfield values.

--schema, -s

Avram Schema to validate against.

--unknown, -u

Report unknown fields and subfields when validating (disabled by default).

--build, -b

Build an Avram schema from given records.

-C

Colorize output. Only supported for PICA plain and PICA plus format.

-M

Monochrome (don't colorize output).

SEE ALSO

See catmandu for a more elaborated command line tool for data processing (transformation, API access...), including PICA+ with Catmandu::PICA.