NAME

Catmandu::FedoraCommons::Model::datastreamProfile - Perl model for the Fedora 'addDatastream', 'getDatastream', 'modifyDatastream','setDatastreamState' and 'setDatastreamVersionable' REST call

SYNOPSIS

use Catmandu::FedoraCommons;

my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');

my $obj = $fedora->getDatastream(pid => 'demo:29', dsID => 'DC')->parse_content;

{
   'pid'  => 'demo:29' ,
   'dsID' => 'DC',
   'dateTime' => '2008-07-02T05:09:43.234Z' ,
   'profile' => {
      'dsLabel' => 'Dublin Core Record for this object' ,
      'dsVersionID' => 'DC1.0' ,
      'dsCreateDate' => '2008-07-02T05:09:43.234Z' ,
      'dsState' => 'A' ,
      'dsMIME' => 'text/xml' ,
      'dsFormatURI' => 'http://www.openarchives.org/OAI/2.0/oai_dc/' ,
      'dsControlGroup' => 'X' ,
      'dsSize' => 626,
      'dsVersionable' => 'true' ,
      'dsInfoType' => '' ,
      'dsLocation' => 'demo:29+DC+DC1.0' ,
      'dsLocationType' => '' ,
      'dsChecksumType' => 'DISABLED' ,
      'dsChecksum' => 'none' ,
   }
}

SEE ALSO

Catmandu::FedoraCommons