From: <rv...@us...> - 2010-06-03 17:16:17
|
Revision: 711 http://treebase.svn.sourceforge.net/treebase/?rev=711&view=rev Author: rvos Date: 2010-06-03 17:16:11 +0000 (Thu, 03 Jun 2010) Log Message: ----------- Where available, now adds rdfs:isDefinedBy annotations that point to the containing context (e.g. for a tree, the study in which it is published). This is on the recommendation of the SADI bunch, and at @rdmpage's request. Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java 2010-06-03 17:14:46 UTC (rev 710) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/AbstractPersistedObject.java 2010-06-03 17:16:11 UTC (rev 711) @@ -115,6 +115,11 @@ List<Annotation> annotations = new ArrayList<Annotation>(); URI uri = URI.create(TreebaseUtil.getPurlBase()+getPhyloWSPath()); annotations.add(new Annotation(Constants.OWLURI,"owl:sameAs",uri)); + TBPersistable context = getContext(); + if ( null != context ) { + URI contextUri = URI.create(TreebaseUtil.getPurlBase()+context.getPhyloWSPath()); + annotations.add(new Annotation(Constants.RDFSURI, "rdfs:isDefinedBy",contextUri)); + } return annotations; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |