NAME

pica-validate - parse and validate PICA+ data

SYNOPSIS

pica-validate [--from TYPE] [--schema FILE] [--to [TYPE]] {OPTIONS} [FILE]

DESCRIPTION

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

pica-validate pica.xml -s schema.json   # validate against Avram schema
pica-validate pica.dat -t xml           # convert binary to XML
pica-validate -c -f plain < pica.plain  # parse and count records
pica-validate -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.

--schema, -s

Avram Schema to validate against.

--unknown, -u

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

--path, -p

Limit the record to fields specified by a simple PICA Path expression.

SEE ALSO

See Catmandu::PICA for more elaborated command line processing of PICA+ data.