NAME
Catmandu::FedoraCommons::Model::datastreamProfile - Perl model for the Fedora 'addDatastream', 'getDatastream', 'modifyDatastream','setDatastreamState' and 'setDatastreamVersionable' REST call
SYNOPSIS
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'
,
'dsControlGroup'
=>
'X'
,
'dsSize'
=> 626,
'dsVersionable'
=>
'true'
,
'dsInfoType'
=>
''
,
'dsLocation'
=>
'demo:29+DC+DC1.0'
,
'dsLocationType'
=>
''
,
'dsChecksumType'
=>
'DISABLED'
,
'dsChecksum'
=>
'none'
,
}
}