<%-- $This file is distributed under the terms of the license in LICENSE$ --%>

<%@taglib prefix="vitro" uri="/WEB-INF/tlds/VitroUtils.tld" %>
<%@page import="edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission" %>
<% request.setAttribute("requestedActions", SimplePermission.USE_ADVANCED_DATA_TOOLS_PAGES.ACTION); %>
<vitro:confirmAuthorization />

<h2><a class="ingestMenu" href="ingest">Ingest Menu</a> > Load RDF Data</h2>

<form style="margin-bottom: 2ex;" action="uploadRDF" method="POST" enctype="multipart/form-data">
<input type="hidden" name="modelName"
	value="<%=request.getParameter("modelName")%>" /> <input type="hidden"
	name="action" value="loadRDFData" />
<p>RDF document URI: <input type="text" size="32" name="docLoc" /></p>
<p>Or upload a file from your computer:</p>
<p><input type="file" name="filePath" /></p>

<ul style="list-style-type:none;">
	<li><input type="radio" name="mode" value="directAddABox" checked="checked"/>add RDF data</li>
	<li><input type="radio" name="mode" value="remove"/>remove RDF data</li>
</ul>

<select name="language">
	<option value="RDF/XML">RDF/XML</option>
	<option value="N3">N3</option>
	<option value="N-TRIPLE">N-Triples</option>
	<option value="TTL">Turtle</option>
</select>
<br></br>
<br></br>
<p><input class="submit" type="submit" name="submit" value="Load Data" /></p>
</form>
