vitro/webapp/web/jenaIngest/exportSelection.jsp
j2blake 345f99790f VIVO-212 Rename WADF access methods on VitroRequest
Overlooked a reference in a JSP
2013-07-18 15:31:42 -04:00

50 lines
2.3 KiB
Text

<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%>
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Ontology"%>
<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.OntologyDao"%>
<div class="staticPageBackground">
<h2>Export to RDF</h2>
<form action="" method="get">
<ul>
<li style="list-style-type:none;"><input type="radio" name="subgraph" checked="checked" value="full"/> Entire RDF model for the application (TBox and ABox, including application metadata)</li>
<li style="list-style-type:none;"><input type="radio" name="subgraph" value="tbox"/> Entire ontology (TBox) for the application</li>
<li style="list-style-type:none;"><input type="radio" name="subgraph" value="abox"/> All Instance data (ABox) for the application</li>
<%VitroRequest vreq = new VitroRequest(request);
OntologyDao daoObj = vreq.getUnfilteredWebappDaoFactory().getOntologyDao();
List ontologiesObj = daoObj.getAllOntologies();
if(ontologiesObj !=null && ontologiesObj.size()>0){
Iterator ontItr = ontologiesObj.iterator();
while(ontItr.hasNext()){
Ontology ont = (Ontology) ontItr.next();%>
<li style="list-style-type:none;"><input type="radio" name="subgraph" value=<%=ont.getURI()%>/> <%=ont.getName()%> (TBox)</li>
<%}}%>
</ul>
<hr/>
<ul>
<li style="list-style-type:none;"><input type="radio" name="assertedOrInferred" checked="checked" value="asserted"/> Export only asserted statements </li>
<li style="list-style-type:none;"><input type="radio" name="assertedOrInferred" value="inferred"/> Export only inferred statements </li>
<li style="list-style-type:none;"><input type="radio" name="assertedOrInferred" value="full"/> Export asserted and inferred statements together </li>
</ul>
<h3>Select format</h3>
<select name="format">
<option value="RDF/XML">RDF/XML</option>
<option value="RDF/XML-ABBREV">RDF/XML abbrev.</option>
<option value="N3">N3</option>
<option value="N-TRIPLE">N-Triples</option>
<option value="TURTLE">Turtle</option>
</select>
<input class="submit" type="submit" name="submit" value="Export"/>
</form>
</div>