Adding code to make link to rdf/xml of entity page.

This commit is contained in:
bdc34 2010-03-30 21:25:04 +00:00
parent 822ad3b159
commit c90d286d8f
3 changed files with 13 additions and 1 deletions

View file

@ -216,6 +216,11 @@ public class EntityController extends VitroHttpServlet {
css += customCss;
}
if( indiv.getURI().startsWith( vreq.getWebappDaoFactory().getDefaultNamespace() )){
vreq.setAttribute("entityLinkedDataURL", indiv.getURI() + "/" + indiv.getLocalName() + ".rdf");
}
// generate link to RDF representation for semantic web clients like Piggy Bank
// BJL 2008-07-16: I'm temporarily commenting this out because I forgot we need to make sure it filters out the hidden properties
// generate url for this entity

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

View file

@ -316,6 +316,13 @@ if (VitroRequestPrep.isSelfEditing(request) || LoginFormBean.loggedIn(request, L
</p:process>
${requestScope.servletButtons}
<!--
<c:if test="${not empty entityLinkedDataURL}">
<c:url var="rdfImg" value="/images/edit_icons/rdf_w3c_icon48.gif"/>
<a href="${entityLinkedDataURL}" title="get this as RDF/XML"><img src="${rdfImg}"/></a>
</c:if>
-->
</div> <!-- contents -->
</div> <!-- content -->