Implementing PROAI

From Devwiki
Jump to: navigation, search

Back to Implementation

Allowing an object to be harvested

Object needs the following in RELS-EXT stream:

 <rdf:RDF xmlns:rdf="">
   <rdf:Description rdf:about="info:fedora/llgc-id:57">
     <rel:isMemberOf xmlns:rel="info:fedora/fedora-system:def/relations-external#" rdf:resource="info:fedora/collection:thesis_aber"/>
     <rel:isMemberOf xmlns:rel="info:fedora/fedora-system:def/relations-external#" rdf:resource="info:fedora/collection:thesis"/>
     <oai:itemID xmlns:oai=""></oai:itemID>

Especially the oai part. This object is a member of two sets: thesis and aber

Adding a set

The set needs to have a RELS-EXT datastream similar to the following:

 <rdf:RDF xmlns:oai="" xmlns:rdf="" xmlns:rel="info:fedora/fedora-system:def/relations-external#">
    <rdf:Description rdf:about="info:fedora/collection:thesis">
       <oai:setName>Electronic Thesis</oai:setName>

Also the memebers of this set need to have the isMemberOf relationship to this object.

Adding new Metadata

In the configuration file you need to add the following lines: = = = info:fedora/*/UKETD_DC

The file is located in $TOMCAT_HOME/webapps/$OAI_LOCATION/WEB_INF/classes/

For an object to show this meta data they need to have a datastream named UKETD_DC (as shown by the property 'info:fedora/*/UKETD_DC').

Example Harvest

You can see an example harvest: here