Revision 5537
Added by ben leinfelder about 14 years ago
ontologies.jsp | ||
---|---|---|
1 | 1 |
<%@ page language="java"%> |
2 |
<%@page import="org.ecoinformatics.sms.ontology.bioportal.OntologyService,org.ecoinformatics.sms.ontology.bioportal.OntologyBean,java.util.List"%> |
|
2 | 3 |
<% |
3 | 4 |
/** |
4 | 5 |
* |
... | ... | |
27 | 28 |
|
28 | 29 |
<%@ include file="../../common/common-settings.jsp"%> |
29 | 30 |
<%@ include file="../../common/configure-check.jsp"%> |
31 |
<% |
|
32 |
// construct the drop down and the lookup key for the available ontologies |
|
33 |
StringBuffer dropDown = new StringBuffer(); |
|
34 |
List<OntologyBean> beans = OntologyService.getInstance().getOntologyBeans(); |
|
35 |
for (OntologyBean bean: beans) { |
|
36 |
|
|
37 |
dropDown.append("<option value='"); |
|
38 |
dropDown.append(bean.getId()); |
|
39 |
dropDown.append("'>"); |
|
40 |
dropDown.append(bean.getDisplayLabel()); |
|
41 |
dropDown.append("</option>"); |
|
42 |
|
|
43 |
} |
|
44 |
|
|
45 |
%> |
|
46 |
|
|
30 | 47 |
<html> |
31 | 48 |
<head> |
32 | 49 |
<title>Semantic search</title> |
33 | 50 |
<link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/semtools/semtools.css"> |
34 |
<script type="text/javascript" |
|
35 |
src="<%=STYLE_SKINS_URL%>/semtools/search.js"></script> |
|
36 | 51 |
|
37 | 52 |
<script type="text/javascript"> |
38 | 53 |
// Set defaults for this installation |
... | ... | |
81 | 96 |
</table> |
82 | 97 |
</form> |
83 | 98 |
|
99 |
<h2>Available BioPortal Ontologies</h2> |
|
100 |
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="bioportalRegistrationForm" name="bioportalRegistrationForm" "> |
|
101 |
<input name="qformat" value="semtools" type="hidden" /> |
|
102 |
<table> |
|
103 |
<tr> |
|
104 |
<td>Action:</td> |
|
105 |
<td> |
|
106 |
<select name="action" id="action"> |
|
107 |
<option value="registerOntology">Register Ontology</option> |
|
108 |
<option value="unregisterOntology">Unregister Ontology</option> |
|
109 |
</select> |
|
110 |
</td> |
|
111 |
</tr> |
|
112 |
<tr> |
|
113 |
<td>Ontology:</td> |
|
114 |
<td> |
|
115 |
<select name='id' id='id'> |
|
116 |
<%=dropDown.toString()%> |
|
117 |
</select> |
|
118 |
</td> |
|
119 |
</tr> |
|
120 |
<tr> |
|
121 |
<td colspan="2"><input type="submit" value="Submit"/></td> |
|
122 |
</tr> |
|
123 |
</table> |
|
124 |
</form> |
|
125 |
|
|
84 | 126 |
<h2>Ontology search (BioPortal)</h2> |
85 | 127 |
<p>Ontologies can be located in BioPortal and then registered with Metacat. Use this search interface to find appropriate ontologies.</p> |
86 | 128 |
<div id="bp_quick_jump"></div> |
Also available in: Unified diff
include dropdown of all bioportal ontologies - you can choose to register or unregister them with metacat for annotation-based searching. perhaps not the most elegant workflow, but better than having to manually collect the URIs and URLs.