Catmandu::FedoraCommons::Model::validate - Perl model for the Fedora 'validate' REST call
use Catmandu::FedoraCommons; my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin'); my $obj = $fedora->validate(pid => 'demo:29')->parse_content; { 'pid' => 'demo:29' , 'valid' => 'false' , 'asOfDateTime' => '2013-02-08T10:09:09.273Z' , 'model' => [ 'info:fedora/demo:UVA_STD_IMAGE' , 'info:fedora/fedora-system:FedoraObject-3.0' , ], 'problem' => [ 'test' ] , 'datastream' => [ { 'dsID' => 'url' , 'problem' => [ "Datastream 'url' is does not have the FORMAT_URI and MIME_TYPE attributes required by 'demo:UVA_STD_IMAGE'" , ] } ] , }
Catmandu::FedoraCommons
To install Catmandu::FedoraCommons, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::FedoraCommons
CPAN shell
perl -MCPAN -e shell install Catmandu::FedoraCommons
For more information on module installation, please visit the detailed CPAN module installation guide.