Actually you might want to consider upgrading to fedora 3.0+.  The
addRelationship() is a much better and cleaner solution. Building the RDF on
the fly isn't the most pretty thing :)
Ahmed

On Sun, Feb 24, 2008 at 3:19 AM, Andreas Moser <andreas.moser.bm@
googlemail.com> wrote:

> thx for those tipps. Because I am using Fedora 2.2.1 I follow the way Ahmed
> described in his mail. It works. ;)
>
> 2008/2/24, auspicious 007 <[EMAIL PROTECTED]>:
>>
>> You can simply use the addRelationship method.
>>
>> apim.addRelationship(newpid,
>> "info:fedora/fedora-system:def/model#hasContentModel", 
>> "info:fedora/"+CModelID,
>> *false* , *null*);
>>
>> ------------------------------
>> Connect and share in new ways with Windows Live. Get it 
>> now!<http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008>
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>


-- 
Ahmed Abdeen Hamed, MS
Scientific Informatics Project Leader
MBLWHOI Library
Marine Biological Laboratory
7 MBL Street
Woods Hole, MA 02543 USA
+1 508 289 7676
[EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to