Hi Vincent
 
There are two methods to update relationships using API-M
 
The easiest is probably to use the relationships methods - see:
 
https://wiki.duraspace.org/display/FCR30/API-M#API-M-RelationshipManagement
and the corresponding methods in the REST API at
https://wiki.duraspace.org/display/FCR30/REST+API#RESTAPI-APIMMethods
 
The second is as you suggest - read the RDF directly (eg API-A
getDatastreamDissemination) , modify it in your application, and then update
RELS-EXT with the updated version (eg the API-M modifyDatastream methods).
 
Full documentation on the REST and SOAP APIs is at:
SOAP: https://wiki.duraspace.org/display/FCR30/API-A and
https://wiki.duraspace.org/display/FCR30/API-M
REST: https://wiki.duraspace.org/display/FCR30/REST+API
 
Regards
Steve
 

-----Original Message-----
From: Nguyen, Vincent (CDC/OD/OADS) (CTR) [mailto:v...@cdc.gov] 
Sent: 02 February 2011 06:05
To: fedora-commons-users@lists.sourceforge.net
Subject: [fcrepo-user] Modify RDF content



Hi,

 

Currently I add a custom node (isFeatured) in the RELS-EXT Datastream to
grab objects I want to feature in my repository.  I didn't really know any
other way to do this so I used the RELS-EXT Datastream.  I want to modify
RDF Datastream to add this custom node using Fedora APIM.  Is there a way to
do this?  Or is there a way to read the RDF Datastream as an XML and add a
node and then "re-add" the datastream?  Please let me know if there's a
better way to achieve this functionality.  

 

Pardon any ignorant questions I may ask, as I'm still a Newbie.

 

Vincent Vu Nguyen



 

------------------------------------------------------------------------------
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