Add rdf link to individual page

This commit is contained in:
rjy7 2011-01-11 21:56:45 +00:00
parent 7874d600b9
commit 86b6d57fcf
2 changed files with 10 additions and 1 deletions

View file

@ -77,6 +77,12 @@ public class IndividualTemplateModel extends BaseTemplateModel {
return uri.startsWith(defaultNamespace) ? uri + "/" + getLocalName() + ".rdf" : null;
}
// RY Used for the rdf link on the individual page. Is it correct that this is not the same
// as getLinkedDataUrl()?
public String getRdfUrl() {
return getProfileUrl() + "/" + getLocalName() + ".rdf";
}
public String getEditUrl() {
return urlBuilder.getPortalUrl(Route.INDIVIDUAL_EDIT, "uri", getUri());
}