
daia - DAIA command line client

version 0.421

daia [<OPTIONS>] [ <FILES> | <URL> [<IDS>] ]
Options:
-?|-h|-help show this help
-man full documentation
-input FORMAT set input format (json or xml)
-output FORMAT set output format
json DAIA/JSON (default)
xml DAIA/XML
rdfjson DAIA/RDF as RDF/JSON
dump Perl dump format (only for debugging)
... see -version for a full list
-callback add callback method (if out=json)
-debug enable debugging mode
-version show CPAN module version and list output formats

This command line client can be used to query and transform DAIA. You can pass either an URL and and identifier or a file or DAIA format is read from STDIN. The serialization input format (JSON or XML) can be specified or it will be guessed.

To get usage information call this script with -?, -h or --help as only parameter. Options can be passed as key=value pairs and the first parameter is treated as filename or URL to read from (use '-' for STDIN as set by default).
daia -o json input.xml # convert to DAIA/JSON (default) daia -o xml input.json # convert to DAIA/XML daia -o xml http://example.org/ id1 id2 id3 daia http://example.org/?id=123

See Plack::App::DAIA and Plack::App::DAIA::Validator for DAIA server implementations.

Jakob Voss

This software is copyright (c) 2012 by Jakob Voss.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.