VIVO-82 Use ModelAccess to get or set the JenaOntModel (Union Full model)
This commit is contained in:
parent
4e4384bd3e
commit
6a4c7ba6fc
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue