picadata - parse and validate PICA+ data
picadata [--from TYPE] [--schema FILE] [--to TYPE] {OPTIONS} [FILE]
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 # document fields used in a record picadata -t fields pica.xml -s https://format.k10plus.de/avram.pl?profile=k10plus
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
PICA serialization type to enable writing parsed PICA data. Use fields to list all fields in the data (with optional schema information).
fields
Stop parsing after n records. Can be abbreviated as -1, -2...
n
-1
-2
Sort record fields by field identifier or by occurrence for level 2.
Enforce annotated PICA as output format or prevent with -A. Combined with --schema this will set annotations ! and ? to mark validation errors.
-A
--schema
!
?
Count number of records, holdings, items, and fields.
Select fields or subfield values specified by PICA Path expressions. Multiple expressions can be separated by | or by repeating the option.
|
Avram Schema to validate against. Can be a file or an URL.
Report unknown fields and subfields on validation (disabled by default).
Build an Avram schema from records. Option -B abbreviates the schema.
-B
Colorize output. Only supported for PICA plain and PICA plus format.
Monochrome (don't colorize output).
Print version number and exit.
See catmandu for a more elaborated command line tool for data processing (transformation, API access...), including PICA+ with Catmandu::PICA.
To install PICA::Data, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PICA::Data
CPAN shell
perl -MCPAN -e shell install PICA::Data
For more information on module installation, please visit the detailed CPAN module installation guide.