Aha! Thanks Steve, I should have spotted the enumeration's for the
checksum types in the schema.  

 

Cheers,

Simon

 

From: Steve Bayliss [mailto:stephen.bayl...@acuityunlimited.net] 
Sent: 26 January 2011 11:20
To: 'Support and info exchange list for Fedora users.'
Subject: Re: [fcrepo-user] Adding checksum to FOXML datastream

 

Hi Simon

 

The checksum type is in the schema as a <contentDigest> element within
<datastreamVersion> - see xsd:complexType name="contentDigestType".

 

If you are adding/updating datastreams I believe the relevant API
methods allow you to specify the relevant parameters for checksums (as
opposed to ingesting a complete FOXML object).

 

Regards

Steve

        -----Original Message-----
        From: Simon W Lamb [mailto:s.l...@hull.ac.uk] 
        Sent: 26 January 2011 10:41
        To: fedora-commons-users@lists.sourceforge.net
        Subject: [fcrepo-user] Adding checksum to FOXML datastream

        Hi,

         

        I'm in the process of building a set of Fedora objects using
FOXML.  I have left the fedora.fcfg autoChecksum configuration set to
False for performance reasons, however I would like to specify
checksums on specific Datastreams.   The Checksum documentation at
https://wiki.duraspace.org/display/FCR30/Checksums hints that it should
be possible to add checksum information at a Datastream level:-

         

        "Another way to override the default checksumming mechanism is
via new attributes that have been added to the FOXML and METS specs for
ingesting digital objects. The FOXML and METS specifications now allow
the checksum algorithm to be used for each Datastream to be specified as
attributes on one of the elements defining that Datastream. When a
checksum algorithm is specified in the XML for a Datastream of a digital
object, this value will be used to compute the checksum for that
Datastream rather than the default algorithm specified in the
fedora.fcfg file. Note that the syntax for thusly specifying a checksum
algorithm for a Datastream in a digital object is different for FOXML
and for METS, the specific syntax to use can be found in the schemas for
those XML formats."

         

        Therefore I have a built a FOXML with the following:-

         

        <foxml:datastream STATE="A" CONTROL_GROUP="M" VERSIONABLE="true"
CHECKSUM="MD5" ID="content"> 

             <foxml:datastreamVersion ID="content.0" LABEL="content"
MIMETYPE="application/pdf"> ...

        </foxml:datastreamVersion> 

        </foxml:datastream>

         

        Unfortunately this fails the schema validation (checksum not a
valid attribute).  Sure enough there is no mention of checksum at
http://www.fedora.info/definitions/1/0/foxml1-1.xsd

         

        What is the correct way of specifying a checksum for datastream
within FOXML? 

         

        Many thanks,

        Simon Lamb
        Software Developer
        Information and Communication Technology Department (ICTD) ||
The University of Hull
        T. +44 (0) 1482 462076 
        s.l...@hull.ac.uk|| www.hull.ac.uk

        Customer Support. +44 (0) 1482 462010 || h...@hull.ac.uk  ||
www.hull.ac.uk/help

         

*****************************************************************************************
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to