Jacob,

Fedora content models are, out of the box, descriptive of structure, not 
prescriptive.  They provide you with data hooks to perform your own 
(external) organization and validation of your objects and their 
structure.  So as it ships, there is no Fedora validation of the kind 
you seek.

That said, there is a third-party add-on for Fedora that I think 
provides what you're looking for:  the Enhanced Content Models.

https://wiki.duraspace.org/display/FCREPO/Enhanced+Content+Models

It's been some time since they have been updated, so I'm not sure that 
they work with later (3.6.x, 3.7.x) versions of Fedora -- YMMV.

-- Scott

On 12/04/2013 12:50 PM, Jacob Sanford wrote:
> Hi Everyone,
>
> I am looking for a way for an object in Fedora to fail the api-m
> validate() call if specific datastreams are not attached to an object
> (and ideally of a minimum size).
>
> So far, in the ds-composite-model I have discovered a way to ensure that
> the MIMEtype is explicitly set (through the <form> element), but if the
> datastream is missing, it appears to ignore the requirements and pass
> the object (even by setting required="true" explicitly).
>
> Am I incorrect in assuming this is possible? My alternative solution is
> a direct ITQL query, but I believe that leaving the validation to Fedora
> itself would be much more elegant.
>
> JS
>
> ----------------------
> Jacob Sanford
> Senior Developer
> Harriet Irving Library
> University of New Brunswick
> Phone: (506)458-7047
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>


-- 
Scott Prater
Shared Development Group
General Library System
University of Wisconsin - Madison
pra...@wisc.edu
5-5415

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to