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