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.rdf.model.ModelMaker" %>
|
|
|
|
<%@ page import="java.util.Iterator" %>
|
|
|
|
<%@ page import="java.net.URLEncoder" %>
|
|
|
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
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> > Load XML and convert to RDF</h2>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<form action="jenaXmlFileUpload" method="post" enctype="multipart/form-data">
|
|
|
|
|
|
|
|
<input type="file" name="xmlfile"/>
|
2010-04-05 17:01:03 +00:00
|
|
|
|
|
|
|
<p>XML file</p>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<select name="targetModel">
|
2010-04-05 17:01:03 +00:00
|
|
|
<option value="vitro:baseOntModel">webapp assertions</option>
|
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>
|
2010-04-05 17:01:03 +00:00
|
|
|
|
|
|
|
<p>Destination model</p>
|
|
|
|
|
2010-12-10 22:08:36 +00:00
|
|
|
<input id="submit" type="submit" name="submit" value="upload XML and convert to RDF"/>
|
2010-01-29 22:13:57 +00:00
|
|
|
</form>
|
|
|
|
|