1
|
<%@ page language="java"%>
|
2
|
<%@page import="org.ecoinformatics.sms.ontology.bioportal.OntologyService,org.ecoinformatics.sms.ontology.bioportal.OntologyBean,java.util.List"%>
|
3
|
<%
|
4
|
/**
|
5
|
*
|
6
|
* '$RCSfile$'
|
7
|
* Copyright: 2008 Regents of the University of California and the
|
8
|
* National Center for Ecological Analysis and Synthesis
|
9
|
* '$Author: leinfelder $'
|
10
|
* '$Date: 2010-09-06 16:50:40 -0700 (Mon, 06 Sep 2010) $'
|
11
|
* '$Revision: 5537 $'
|
12
|
*
|
13
|
* This program is free software; you can redistribute it and/or modify
|
14
|
* it under the terms of the GNU General Public License as published by
|
15
|
* the Free Software Foundation; either version 2 of the License, or
|
16
|
* (at your option) any later version.
|
17
|
*
|
18
|
* This program is distributed in the hope that it will be useful,
|
19
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
* GNU General Public License for more details.
|
22
|
|
23
|
* You should have received a copy of the GNU General Public License
|
24
|
* along with this program; if not, write to the Free Software
|
25
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26
|
*/
|
27
|
%>
|
28
|
|
29
|
<%@ include file="../../common/common-settings.jsp"%>
|
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
|
|
47
|
<html>
|
48
|
<head>
|
49
|
<title>Semantic search</title>
|
50
|
<link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/semtools/semtools.css">
|
51
|
|
52
|
<script type="text/javascript">
|
53
|
// Set defaults for this installation
|
54
|
//var BP_SEARCH_SERVER = "http://oor-01.cim3.net";
|
55
|
//var BP_SITE = "Sandbox";
|
56
|
//var BP_ORG = "OOR";
|
57
|
</script>
|
58
|
<script language="Javascript" type="text/JavaScript"
|
59
|
src="<%=STYLE_SKINS_URL%>/semtools/bioportal/form_complete.js">
|
60
|
</script>
|
61
|
|
62
|
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"></script>
|
63
|
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
|
64
|
|
65
|
</head>
|
66
|
<body>
|
67
|
<script language="javascript">
|
68
|
insertTemplateOpening("<%=CONTEXT_URL%>");
|
69
|
</script>
|
70
|
|
71
|
<h2>Ontology Management (Metacat)</h2>
|
72
|
<p>Ontologies should be registered in Metacat before they can be used in Annotation-based searches.</p>
|
73
|
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="registrationForm" name="registrationForm" ">
|
74
|
<input name="qformat" value="semtools" type="hidden" />
|
75
|
<table>
|
76
|
<tr>
|
77
|
<td>Action:</td>
|
78
|
<td>
|
79
|
<select name="action" id="action">
|
80
|
<option value="registerOntology">Register Ontology</option>
|
81
|
<option value="unregisterOntology">Unregister Ontology</option>
|
82
|
</select>
|
83
|
</td>
|
84
|
</tr>
|
85
|
<tr>
|
86
|
<td>URI:</td>
|
87
|
<td><input type="text" name="uri" id="uri" size="100" /></td>
|
88
|
</tr>
|
89
|
<tr>
|
90
|
<td>URL:</td>
|
91
|
<td><input type="text" name="url" id="url" size="100" /></td>
|
92
|
</tr>
|
93
|
<tr>
|
94
|
<td colspan="2"><input type="submit" value="Submit"/></td>
|
95
|
</tr>
|
96
|
</table>
|
97
|
</form>
|
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
|
|
126
|
<h2>Ontology search (BioPortal)</h2>
|
127
|
<p>Ontologies can be located in BioPortal and then registered with Metacat. Use this search interface to find appropriate ontologies.</p>
|
128
|
<div id="bp_quick_jump"></div>
|
129
|
<script type="text/javascript">
|
130
|
var BP_ontology_id = "all";
|
131
|
</script>
|
132
|
<script src="<%=STYLE_SKINS_URL%>/semtools/bioportal/quick_jump.js" type="text/javascript" charset="utf-8">
|
133
|
</script>
|
134
|
|
135
|
<h2>Tree browser (BioPortal)</h2>
|
136
|
<p>Explore existing ontologies</p>
|
137
|
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
|
138
|
id="OntologyTree" width="300" height="100%"
|
139
|
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
|
140
|
<param name="movie" value="http://keg.cs.uvic.ca/ncbo/ontologytree/OntologyTree.swf" />
|
141
|
<param name="quality" value="high" />
|
142
|
<param name="bgcolor" value="#ffffff" />
|
143
|
<param name="allowScriptAccess" value="always" />
|
144
|
<param name="flashVars" value="ontology=1523&alerterrors=false&canchangeontology=true&virtual=true" />
|
145
|
<embed src="http://keg.cs.uvic.ca/ncbo/ontologytree/OntologyTree.swf" quality="high" bgcolor="#ffffff"
|
146
|
width="300" height="100%" name="OntologyTree" align="middle"
|
147
|
play="true"
|
148
|
loop="false"
|
149
|
allowScriptAccess="always"
|
150
|
type="application/x-shockwave-flash"
|
151
|
flashVars="ontology=1523&alerterrors=false&canchangeontology=true&virtual=true"
|
152
|
pluginspage="http://www.adobe.com/go/getflashplayer">
|
153
|
</embed>
|
154
|
</object>
|
155
|
|
156
|
<!-- Included default search/login -->
|
157
|
<% if ( PropertyService.getProperty("spatial.runSpatialOption").equals("true") ) { %>
|
158
|
<script language="javascript">
|
159
|
insertMap("<%=CONTEXT_URL%>");
|
160
|
</script>
|
161
|
<br/>
|
162
|
<% } %>
|
163
|
|
164
|
<script language="javascript">
|
165
|
insertSearchBox("<%=CONTEXT_URL%>");
|
166
|
insertLoginBox("<%=CONTEXT_URL%>");
|
167
|
</script>
|
168
|
|
169
|
<script language="javascript">
|
170
|
insertTemplateClosing("<%=CONTEXT_URL%>");
|
171
|
</script>
|
172
|
|
173
|
</body>
|
174
|
</html>
|