NAME
daia - DAIA command line client
VERSION
version 0.43
SYNOPSIS
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
DESCRIPTION
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.
EXAMPLES
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 ALSO
See Plack::App::DAIA and Plack::App::DAIA::Validator for DAIA server implementations.
AUTHOR
Jakob Voß
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.