2010-07-08 23:13:07 +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="com.hp.hpl.jena.rdf.model.Model"%>
|
|
|
|
<%@ page import="java.util.Iterator"%>
|
|
|
|
<%@ page import="java.net.URLEncoder"%>
|
|
|
|
<%@ page import="java.util.List"%>
|
2011-12-05 20:13:37 +00:00
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
2011-04-27 20:20:25 +00:00
|
|
|
|
|
|
|
<%@taglib prefix="vitro" uri="/WEB-INF/tlds/VitroUtils.tld" %>
|
2011-12-21 23:02:31 +00:00
|
|
|
<%@page import="edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission" %>
|
|
|
|
<% request.setAttribute("requestedActions", SimplePermission.USE_ADVANCED_DATA_TOOLS_PAGES.ACTION); %>
|
2011-04-27 20:20:25 +00:00
|
|
|
<vitro:confirmAuthorization />
|
2011-04-15 22:01:08 +00:00
|
|
|
|
2010-12-22 17:33:20 +00:00
|
|
|
<h2><a class="ingestMenu" href="ingest">Ingest Menu</a> > Assign Permanent URIs To Resources</h2>
|
2010-07-15 18:12:15 +00:00
|
|
|
|
|
|
|
<p>This tool will rename the resources in the selected model to with new
|
|
|
|
randomly-generated URIs following the pattern used in the main application.
|
|
|
|
The tool will generate URIs that are not already in use in the main web
|
|
|
|
application model. Statements using the newly-renamed resources will be
|
|
|
|
written to the "model to save."</p>
|
|
|
|
|
|
|
|
<p>The permanent URIs may be generated in an arbitrary "new namespace for
|
|
|
|
resources." Otherwise, the "use default namespace" option will generate
|
|
|
|
URIs exactly of the form created through the GUI interface.</p>
|
|
|
|
|
2010-07-08 23:13:07 +00:00
|
|
|
<form action="ingest" method="get" >
|
2011-12-05 20:13:37 +00:00
|
|
|
<input type="hidden" name="oldModel" value="${modelName}"/>
|
2010-07-08 23:13:07 +00:00
|
|
|
<input type="hidden" name="action" value="permanentURI" />
|
2011-12-05 20:13:37 +00:00
|
|
|
<p>Current namespace of resources
|
|
|
|
<select name=oldNamespace>
|
|
|
|
<%List namespaces = (List)request.getAttribute("namespaceList");
|
|
|
|
if(namespaces != null) {
|
2010-07-08 23:13:07 +00:00
|
|
|
Iterator namespaceItr = namespaces.iterator();
|
|
|
|
Integer count = 0;
|
|
|
|
while (namespaceItr.hasNext()){
|
|
|
|
String namespaceText = (String) namespaceItr.next();
|
|
|
|
%>
|
2011-12-05 20:13:37 +00:00
|
|
|
<option value="<%=namespaceText%>"><%=namespaceText%></option>
|
|
|
|
<% }
|
|
|
|
}%>
|
2010-07-08 23:13:07 +00:00
|
|
|
</select></p>
|
|
|
|
|
2011-12-05 20:13:37 +00:00
|
|
|
<p>Model in which to save results <select name="newModel">
|
|
|
|
<c:forEach var="modelName" items="${modelNames}">
|
|
|
|
<option value="${modelName}">${modelName}</option>
|
|
|
|
</c:forEach>
|
|
|
|
|
2010-07-08 23:13:07 +00:00
|
|
|
</select></p>
|
2010-07-15 18:12:15 +00:00
|
|
|
<p>New namespace for resources <input type="text" name="newNamespace" /></p>
|
2011-12-05 20:13:37 +00:00
|
|
|
<p>Use default namespace ${defaultNamespace} <input type="checkbox" name="defaultNamespace" value ="${defaultNamespace}"/>
|
2010-07-08 23:13:07 +00:00
|
|
|
</p>
|
|
|
|
|
2011-02-02 17:15:05 +00:00
|
|
|
<p><input class="submit" type="submit" name="submit" value="Generate URIs" /></p>
|
2011-11-04 21:01:34 +00:00
|
|
|
</form>
|