54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
![]() |
<%-- $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" %>
|
||
|
|
||
|
<%
|
||
|
|
||
|
ModelMaker maker = (ModelMaker) request.getSession().getAttribute("vitroJenaModelMaker");
|
||
|
if (maker == null) {
|
||
|
maker = (ModelMaker) getServletContext().getAttribute("vitroJenaModelMaker");
|
||
|
}
|
||
|
|
||
|
%>
|
||
|
|
||
|
<h2>Generate TBox from Assertions Data</h2>
|
||
|
|
||
|
<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">
|
||
|
<option value="vitro:jenaOntModel"/>webapp model</option>
|
||
|
<option value="vitro:baseOntModel"/>webapp assertions</option>
|
||
|
<%
|
||
|
for (Iterator it = maker.listModels(); it.hasNext(); ) {
|
||
|
String modelName = (String) it.next();
|
||
|
%> <option value="<%=modelName%>"/><%=modelName%></option>
|
||
|
<%
|
||
|
}
|
||
|
%>
|
||
|
</select>
|
||
|
|
||
|
<input type="submit" value="Generate TBox"/>
|