VIVO-82 Use ModelAccess to get or set the JenaOntModel (Union Full model)
This commit is contained in:
parent
0a15a6df7d
commit
4e4384bd3e
5 changed files with 10 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
|||
<%@ page import="com.hp.hpl.jena.ontology.Individual"%>
|
||||
<%@ page import="com.hp.hpl.jena.ontology.OntModel"%>
|
||||
<%@ page import="com.hp.hpl.jena.rdf.model.ModelMaker"%>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.ModelAccess"%>
|
||||
<%@ page import="com.hp.hpl.jena.shared.Lock"%>
|
||||
<%@ page import="java.util.Iterator"%>
|
||||
<%@ page import="java.util.List"%>
|
||||
|
@ -46,7 +47,7 @@
|
|||
<h3>SPARQL Query <select name="savedQuery">
|
||||
<option value="">select saved query</option>
|
||||
<%
|
||||
OntModel jenaOntModel = (OntModel) getServletContext().getAttribute("jenaOntModel");
|
||||
OntModel jenaOntModel = ModelAccess.on(getServletContext().getJenaOntModel();
|
||||
jenaOntModel.enterCriticalSection(Lock.READ);
|
||||
try {
|
||||
List savedQueries = (List) request.getAttribute("savedQueries");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue