At Leiden University, The Netherlands, we wanted to add a DAI to authors in Dublin Core metadata.
This implementation let's administrators add DAIs to existing authors, and provides an API for displaying / using the DAI.
The DAI of a author is defined by using the Basic RDF implementation . Because the author in Dublin Core metadata does not have a DSpace ID, a RDF resource is generated to identify the author and link it to the DAI (an RDF value).
The modifications were made to Dspace 1.3.2. This is also the version of DSpace where this functionality was tested extensively.
It should be possible to use this with another version of DSpace.
This installation provides a way for administrators to associate DAIs to authors, and provides an API for displaying / using the DAI.
See Basic RDF implementation for details on how to do this.
Add the following:
<servlet> <servlet-name>rdf</servlet-name> <servlet-class>nl.leidenuniv.dspace.app.webui.servlet.RDFServlet</servlet-class> </servlet> |
<form method="post" action="<%= request.getContextPath() %>/rdf"> <input type="hidden" name="item_id" value="<%= item.getID() %>" /> <input type="submit" name="edit_rdf" value="Edit RDF"/> </form> |
Do the stuff you normally do when deploying a new version of DSpace.
RDFpredicate predicate = RDFpredicate.find(context, "hasDAI"); if (predicate != null) \{ RDFtriple[] triples = RDFtriple.findAll(context,item,predicate,(Object)null); for (int i=0;i<triples.length;i++) \{ Object dai = triples[i].getObject(); // use the dai as a String \} \} |
If you need help, or have any comments, or you just want to inform me that you (are going to) use this, please contact me at schaik (at) library.leidenuniv.nl