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.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@
picadata pica.xml -s schema.json # validate against Avram schema
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.
--number, -n
Stop parsing after n
records. Can be abbreviated as -1
, -2
...
--path, -p
Select fields or subfield values specified by PICA Path expressions. Multiple expressions can be separated by |
or by repeating the option.
--schema, -s
Avram Schema to validate against.
--unknown, -u
Report unknown fields and subfields on validation (disabled by default).
--build, -b, -B
Build an Avram schema from records. Option -B
abbreviates the schema.
--color, -C
Colorize output. Only supported for PICA plain and PICA plus format.
--mono, -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.