2010-01-29 22:13:57 +00:00
|
|
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
|
|
|
|
<%@ 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="com.hp.hpl.jena.shared.Lock" %>
|
|
|
|
<%@ page import="java.util.Iterator" %>
|
|
|
|
<%@ page import="java.util.List" %>
|
|
|
|
<%@ page import="java.net.URLEncoder" %>
|
2011-04-27 20:20:25 +00:00
|
|
|
|
|
|
|
<%@taglib prefix="vitro" uri="/WEB-INF/tlds/VitroUtils.tld" %>
|
|
|
|
<%@page import="edu.cornell.mannlib.vitro.webapp.auth.requestedAction.usepages.UseAdvancedDataToolsPages" %>
|
|
|
|
<% request.setAttribute("requestedActions", new UseAdvancedDataToolsPages()); %>
|
|
|
|
<vitro:confirmAuthorization />
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<%
|
|
|
|
|
|
|
|
ModelMaker maker = (ModelMaker) request.getSession().getAttribute("vitroJenaModelMaker");
|
|
|
|
if (maker == null) {
|
|
|
|
maker = (ModelMaker) getServletContext().getAttribute("vitroJenaModelMaker");
|
|
|
|
}
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
2010-12-22 17:33:20 +00:00
|
|
|
<h2><a class="ingestMenu" href="ingest">Ingest Menu</a> > Generate TBox from Assertions Data</h2>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<form action="ingest" method="get">
|
|
|
|
<input type="hidden" name="action" value="generateTBox"/>
|
|
|
|
|
|
|
|
<h3>Select Source Models for Assertions Data</h3>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><input type="checkbox" name="sourceModelName" value="vitro:jenaOntModel"/>webapp model</li>
|
|
|
|
<li><input type="checkbox" name="sourceModelName" value="vitro:baseOntModel"/>webapp assertions</li>
|
|
|
|
<%
|
|
|
|
for (Iterator it = maker.listModels(); it.hasNext(); ) {
|
|
|
|
String modelName = (String) it.next();
|
|
|
|
%> <li> <input type="checkbox" name="sourceModelName" value="<%=modelName%>"/><%=modelName%></li>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Select Destination Model for Generated TBox</h3>
|
|
|
|
|
|
|
|
<select name="destinationModelName">
|
2011-01-05 04:54:22 +00:00
|
|
|
<option value="vitro:baseOntModel"/>webapp assertions</option>
|
2010-01-29 22:13:57 +00:00
|
|
|
<option value="vitro:jenaOntModel"/>webapp model</option>
|
2011-01-05 04:54:22 +00:00
|
|
|
|
2010-01-29 22:13:57 +00:00
|
|
|
<%
|
|
|
|
for (Iterator it = maker.listModels(); it.hasNext(); ) {
|
|
|
|
String modelName = (String) it.next();
|
|
|
|
%> <option value="<%=modelName%>"/><%=modelName%></option>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
</select>
|
|
|
|
|
2011-02-02 17:15:05 +00:00
|
|
|
<input class="submit" type="submit" value="Generate TBox"/>
|