51 lines
No EOL
2.3 KiB
Text
51 lines
No EOL
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 VIVO 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 VIVO application</li>
|
|
<li style="list-style-type:none;"><input type="radio" name="subgraph" value="abox"/> All Instance data (ABox) for the VIVO application</li>
|
|
<%VitroRequest vreq = new VitroRequest(request);
|
|
OntologyDao daoObj = vreq.getFullWebappDaoFactory().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-TRIPLES">N-Triples</option>
|
|
<option value="TURTLE">Turtle</option>
|
|
</select>
|
|
|
|
<input type="submit" name="submit" value="Export"/>
|
|
|
|
</form>
|
|
|
|
</div> |