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="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <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="http://www.openarchives.org/OAI/2.0/">oai:llgc.org.uk:llgc-id:57</oai:itemID>
   </rdf:Description>
 </rdf:RDF>
                                                                                                                                                                       

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="http://www.openarchives.org/OAI/2.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rel="info:fedora/fedora-system:def/relations-external#">
    <rdf:Description rdf:about="info:fedora/collection:thesis">
       <oai:setSpec>thesis</oai:setSpec>
       <oai:setName>Electronic Thesis</oai:setName>
    </rdf:Description>
 </rdf:RDF>
                 

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

Adding new Metadata

In the proai.properties configuration file you need to add the following lines:

driver.fedora.md.format.uketd_dc.loc = http://naca.central.cranfield.ac.uk/ethos-oai/2.0/uketd.xsd
driver.fedora.md.format.uketd_dc.uri = http://naca.central.cranfield.ac.uk/ethos-oai/2.0
driver.fedora.md.format.uketd_dc.dissType = info:fedora/*/UKETD_DC

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

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