VIVO-82 Use ModelAccess to get or set the BaseOntModel
a.k.a the Base Full model, or AssertionsModel
This commit is contained in:
parent
9b7f6c92e6
commit
cba000c58b
3 changed files with 7 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
<%@taglib prefix="vitro" uri="/WEB-INF/tlds/VitroUtils.tld" %>
|
||||
<%@page import="edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission" %>
|
||||
<%@page import="edu.cornell.mannlib.vitro.webapp.dao.ModelAccess"%>
|
||||
<% request.setAttribute("requestedActions", SimplePermission.USE_MISCELLANEOUS_CURATOR_PAGES.ACTION); %>
|
||||
<vitro:confirmAuthorization />
|
||||
|
||||
|
@ -16,7 +17,7 @@
|
|||
String describeQueryStr =
|
||||
"DESCRIBE <" + resourceURIStr + ">";
|
||||
|
||||
OntModel ontModel = (OntModel) getServletContext().getAttribute("baseOntModel");
|
||||
OntModel ontModel = ModelAccess.on(getServletContext()).getBaseOntModel();
|
||||
Model resourceDescription = ModelFactory.createDefaultModel();
|
||||
try {
|
||||
ontModel.enterCriticalSection(Lock.READ);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue