Hi, everyong!

I am using diringest to ingest objects (books, volumes and pages), and I
want to find a way to automatically generate the relationship "hasModel" for
every object (the models have been already defined).

For crules, it is quite easy to generate the relationship between objects
according to the hierarchy in StrutMap. However, it seems not so possible to
fix a value to the target of a relationship, because the primitiveRel is
restricted to "tree:parent", "tree:child", "tree:ancestor" and
"tree:descendant".

I have tried several ways to deal with it:

   1. Hardcoding the "hasModel" in METS.xml. It doesn't work becauce I have
to use crules to define the id "RELS-EXT" for this kind of node, and there
will be a "name conflict" (I guess) with the other rules. In other words,
relationship in METS.xml and crules.xml can't be merged together.
   2. Using models as objects. Although I have modified the source code to
allow customized PIDs (as diringest uses getNextPIDs the assign PIDs), this
solution is aweful and dramatically increase the difficulty of writing
METS.xml files.

The ideal way, I think, is to generate the relationship "hasModel" only
depending on the nodeType and some rules in crules.xml.

Any idea for that?

Thank you!
LI Zheng
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to