Improve output: distinguish between failed assertions (failures) and unexpected exceptions (errors), and print a filtered stack trace for any exception.
This commit is contained in:
commit
4f2e303079
1839 changed files with 235630 additions and 0 deletions
57
webapp/web/jenaIngest/renameBNodes.jsp
Normal file
57
webapp/web/jenaIngest/renameBNodes.jsp
Normal file
|
@ -0,0 +1,57 @@
|
|||
<%-- $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>Convert Blank Nodes to Named Resources</h2>
|
||||
|
||||
<form action="ingest" method="get"i>
|
||||
<input type="hidden" name="action" value="renameBNodes"/>
|
||||
|
||||
<h3>Select URI prefix</h3>
|
||||
|
||||
<p>URIs will be constructed from the following string concatenated with a random integer:</p>
|
||||
<input type="text" name="namespaceEtcStr"/>
|
||||
|
||||
<p/>
|
||||
|
||||
<h3>Select Source Models</h3>
|
||||
|
||||
<ul>
|
||||
|
||||
<%
|
||||
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</h3>
|
||||
|
||||
<select name="destinationModelName">
|
||||
<%
|
||||
for (Iterator it = maker.listModels(); it.hasNext(); ) {
|
||||
String modelName = (String) it.next();
|
||||
%> <option value="<%=modelName%>"/><%=modelName%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
|
||||
<input type="submit" value="Rename Blank Nodes"/>
|
Loading…
Add table
Add a link
Reference in a new issue