VIVO-82 Use ModelAccess to get or set the JenaOntModel (Union Full model)

This commit is contained in:
j2blake 2013-05-17 12:37:49 -04:00
parent 4e4384bd3e
commit 6a4c7ba6fc
4 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@
}
String contextId = sesameProperties.getProperty(SESAME_CONTEXT);
Model fullModel = ModelAccess.on(getServletContext).getJenaOntModel();
Model fullModel = ModelAccess.on(getServletContext()).getJenaOntModel();
// Copy the model to avoid locking the main model during sync. Assumes enough memory.
Model copyModel = ModelFactory.createDefaultModel();
fullModel.enterCriticalSection(Lock.READ);