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
49
webapp/web/jenaIngest/workflowStep.jsp
Normal file
49
webapp/web/jenaIngest/workflowStep.jsp
Normal file
|
@ -0,0 +1,49 @@
|
|||
<%-- $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>Execute RDF-Encoded Ingest Workflow</h2>
|
||||
|
||||
<form action="ingest" method="get"i>
|
||||
<input type="hidden" name="action" value="executeWorkflow"/>
|
||||
|
||||
<h3>Choose a Workflow Step at Which To Start</h3>
|
||||
|
||||
<input type="hidden" name="workflowURI" value="${param.workflowURI}"/>
|
||||
|
||||
<select name="workflowStepURI">
|
||||
|
||||
<%
|
||||
OntModel jenaOntModel = (OntModel) getServletContext().getAttribute("jenaOntModel");
|
||||
jenaOntModel.enterCriticalSection(Lock.READ);
|
||||
try {
|
||||
List workflowSteps = (List) request.getAttribute("workflowSteps");
|
||||
for (Iterator it = workflowSteps.iterator(); it.hasNext();) {
|
||||
Individual workflowStep = (Individual) it.next();
|
||||
String workflowStepURI = workflowStep.getURI();
|
||||
String workflowStepLabel = workflowStep.getLabel(null);
|
||||
String workflowStepString = (workflowStepLabel != null) ? workflowStepLabel : workflowStepURI;
|
||||
%> <option value="<%=workflowStepURI%>"><%=workflowStepString%></option> <%
|
||||
}
|
||||
} finally {
|
||||
jenaOntModel.leaveCriticalSection();
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
|
||||
<input type="submit" value="Execute Workflow"/>
|
Loading…
Add table
Add a link
Reference in a new issue