2010-07-13 15:31:46 +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" %>
|
|
|
|
<%@page import="edu.cornell.mannlib.vitro.webapp.auth.requestedAction.usepages.UseAdvancedDataToolsPages" %>
|
|
|
|
<% request.setAttribute("requestedActions", new UseAdvancedDataToolsPages()); %>
|
|
|
|
<vitro:confirmAuthorization />
|
2011-04-15 22:01:08 +00:00
|
|
|
|
2010-07-13 15:31:46 +00:00
|
|
|
<script type="text/javascript" src="js/jquery.js"></script>
|
|
|
|
<script type="text/javascript" src="js/jenaIngest/ingestUtils.js"></script>
|
|
|
|
|
2011-07-21 12:33:41 +00:00
|
|
|
<h2><a class="ingestMenu" href="ingest">Ingest Menu</a> > Merge Resources</h2>
|
2010-07-15 18:12:15 +00:00
|
|
|
|
2011-07-21 12:33:41 +00:00
|
|
|
<p>This tool allows two resources with different URIs to be collapsed into a
|
|
|
|
single URI. Any statements using the "duplicate resource URI" will be
|
|
|
|
rewritten using the "primary resource URI." If there are multiple
|
2010-07-15 18:12:15 +00:00
|
|
|
statements for a property that can have only a single value, the extra
|
|
|
|
statements will be retracted from the model and offered for download.</p>
|
|
|
|
<p>This tool operates on the main web application model only, not on any
|
|
|
|
of the additional Jena models.</p>
|
|
|
|
|
2010-07-13 15:31:46 +00:00
|
|
|
<form id="takeuri" action="ingest" method="get">
|
2011-07-21 12:33:41 +00:00
|
|
|
<input type="hidden" name="action" value="mergeResources"/>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Primary resource URI</td><td><input id="uri1" type="text" size="52" name="uri1"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Duplicate resource URI</td><td><input id="uri2" type="text" size="52" name="uri2"/></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<input type="checkbox" name="usePrimaryLabelOnly" value="Use Primary Label Only">Retain rdfs:labels only from Primary Resource</input>
|
|
|
|
|
|
|
|
<p><input class="submit"type="submit" name="submit" value="Merge resources" /></p>
|
2011-11-04 21:01:34 +00:00
|
|
|
</form>
|