From: <rv...@us...> - 2009-06-25 02:52:25
|
Revision: 113 http://treebase.svn.sourceforge.net/treebase/?rev=113&view=rev Author: rvos Date: 2009-06-25 02:52:19 +0000 (Thu, 25 Jun 2009) Log Message: ----------- attachTreebaseID now also attaches a dc:relation annotation with the canonical URL for the annotated resource Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java 2009-06-25 02:50:10 UTC (rev 112) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlObjectConverter.java 2009-06-25 02:52:19 UTC (rev 113) @@ -63,7 +63,13 @@ */ protected void attachTreeBaseID(Annotatable annotatable,TBPersistable tbPersistable,Class<?> persistableClass) { if ( null != tbPersistable.getId() ) { - attachAnnotation(mDCIdentifier,makeNamespacedID(tbPersistable,persistableClass),mDCURI,annotatable); + attachAnnotation(mDCIdentifier,makeNamespacedID(tbPersistable,persistableClass),mDCURI,annotatable); + String uriString = "http://localhost:8080/treebase-web/PhyloWS/" + makeNamespacedID(tbPersistable,persistableClass); + try { + annotatable.addAnnotationValue("dc:relation",mDCURI, new URI(uriString)); + } catch ( Exception e ) { + + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |