Debian Codegraph @

README

raw
1 NAME
2
3 Catmandu - a data toolkit
4
5 SYNOPSIS
6
7 # From the command line
8
9 # Convert data from one format to another
10 $ catmandu convert JSON to CSV < data.json
11 $ catmandu convert CSV to YAML < data.csv
12 $ catmandu convert MARC to YAML < data.mrc
13
14 # Fix data, add, delete, change fields
15 $ catmandu convert JSON --fix 'move_field(title,my_title)' < data.json
16 $ catmandu convert JSON --fix all_my_fixes.txt < data.json
17
18 # Use a moustache preprocessor on the fix script
19 $ catmandu convert JSON --fix all_my_fixes.txt --var opt1=foo --var opt2=bar < data.json
20
21 # run a fix script
22 $ catmandu run myfixes.fix
23
24 # or, create an executable fix script
25 $ cat myfixes.fix
26 #!/usr/local/bin/catmandu run
27 do importer(OAI,url:"http://biblio.ugent.be/oai")
28 retain(_id)
29 end
30 $ chmod 755 myfixes.fix
31 $ ./myfixes.fix
32
33 DESCRIPTION
34
35 Catmandu provides a command line tools for the conversion of various
36 data formats including: JSON, YAML, RDF, CSV, TSV, XML and even Excel.
37 Using extension modules, specialized conversions for metadata formats
38 using in libraries, archives and museums is also supports. We provide
39 support for MARC, MAB, MODS, OAI-PMH, PICA, PNX, RIS, LIDO, SRU and
40 Z39.50.
41
42 Specialized conversions require a mapping language. This is implemented
43 in Catmandu using the `Fix` language. For a short introduction read
44 Catmandu::Introduction. Online tutorials can be found at the end of
45 this document.
46
47 INSTALL
48
49 From Source
50
51 # Clone the directory
52 git clone https://github.com/LibreCat/Catmandu
53
54 # Build
55 cd Catmandu
56 cpanm -n -q --installdeps --skip-satisfied .
57 perl Build.PL && ./Build && ./Build install
58
59 Using Docker
60
61 docker build -t librecat/catmandu .
62
63 # Run catmandu with access to you local files at <YourDrive>
64 docker run -v <YourDrive>:/home/catmandu/Home -it librecat/catmandu
65
66 # E.g.
67 docker run -v C:\Users\alice:/home/catmandu/Home -it librecat/catmandu
68
69 INSTALL EXTENSIONS
70
71 cpanm install <PackageName>
72
73 # E.g.
74 cpanm install Catmandu::MARC
75
76 POPULAR EXTENSIONS
77
78 Catmandu::Breaker
79
80 Catmandu::Identifier
81
82 Catmandu::MARC
83
84 Catmandu::OAI
85
86 Catmandu::PICA
87
88 Catmandu::RDF
89
90 Catmandu::SRU
91
92 Catmandu::Stat
93
94 Catmandu::Template
95
96 Catmandu::Validator
97
98 Catmandu::XLS
99
100 Catmandu::XSD
101
102 Catmandu::Z3950
103
104 SEE ALSO
105
106 introduction
107
108 Catmandu::Introduction
109
110 documentation
111
112 http://librecat.org/
113
114 blog
115
116 https://librecatproject.wordpress.com/
117
118 step-by-step introduction from basics
119
120 https://librecatproject.wordpress.com/2014/12/01/day-1-getting-catmandu/
121
122 command line client
123
124 catmandu
125
126 Perl API
127
128 Catmandu::PerlAPI
129
130 AUTHOR
131
132 Nicolas Steenlant, <nicolas.steenlant at ugent.be>
133
134 CONTRIBUTORS
135
136 Patrick Hochstenbach, patrick.hochstenbach at ugent.be
137
138 Nicolas Franck, nicolas.franck at ugent.be
139
140 Johann Rolschewski, jorol at cpan.org
141
142 Vitali Peil, vitali.peil at uni-bielefeld.de
143
144 Jakob Voss, nichtich at cpan.org
145
146 Magnus Enger, magnus at enger.priv.no
147
148 Christian Pietsch, christian.pietsch at uni-bielefeld.de
149
150 Dave Sherohman, dave.sherohman at ub.lu.se
151
152 Snorri Briem, snorri.briem at ub.lu.se
153
154 Pieter De Praetere, pieter.de.praetere at helptux.be
155
156 Doug Bell
157
158 Upsana, me at upasana.me
159
160 Stefan Weil
161
162 Tom Hukins
163
164 Michal Josef Špaček <michal.josef.spacek at gmail.com>
165
166 QUESTIONS, ISSUES & BUG REPORTS
167
168 For any questions on the use of our modules, or bug reports, or feature
169 requests, please use our issue tracker at:
170
171 https://github.com/LibreCat/Catmandu/issues
172
173 LICENSE AND COPYRIGHT
174
175 This program is free software; you can redistribute it and/or modify it
176 under the terms of either: the GNU General Public License as published
177 by the Free Software Foundation; or the Artistic License.
178
179 See http://dev.perl.org/licenses/ for more information.
180