Project

General

Profile

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-07 10:06:34 -0700 (Tue, 07 Sep 2010) $'
11
 * '$Revision: 5538 $'
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

    
74
<h3>Available BioPortal Ontologies</h3>
75
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="bioportalRegistrationForm" name="bioportalRegistrationForm" ">
76
	<input name="qformat" value="semtools" type="hidden" />
77
	<table>
78
		<tr>
79
			<td>Action:</td>
80
			<td>
81
				<select name="action" id="action">
82
					<option value="registerOntology">Register Ontology</option>
83
					<option value="unregisterOntology">Unregister Ontology</option>
84
				</select>
85
			</td>
86
		</tr>
87
		<tr>
88
			<td>Ontology:</td>
89
			<td>
90
				<select name='id' id='id'>
91
					<%=dropDown.toString()%>
92
				</select>
93
			</td>
94
		</tr>
95
		<tr>
96
			<td colspan="2"><input type="submit" value="Submit"/></td>
97
		</tr>
98
	</table>
99
</form>
100

    
101
<h3>Other Ontologies</h3>
102
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="registrationForm" name="registrationForm" ">
103
	<input name="qformat" value="semtools" type="hidden" />
104
	<table>
105
		<tr>
106
			<td>Action:</td>
107
			<td>
108
				<select name="action" id="action">
109
					<option value="registerOntology">Register Ontology</option>
110
					<option value="unregisterOntology">Unregister Ontology</option>
111
				</select>
112
			</td>
113
		</tr>
114
		<tr>
115
			<td>URI:</td>
116
			<td><input type="text" name="uri" id="uri" size="100" /></td>
117
		</tr>
118
		<tr>
119
			<td>URL:</td>
120
			<td><input type="text" name="url" id="url" size="100" /></td>
121
		</tr>
122
		<tr>
123
			<td colspan="2"><input type="submit" value="Submit"/></td>
124
		</tr>
125
	</table>
126
</form>
127

    
128
<h2>Ontology search (BioPortal)</h2>
129
<p>Not sure which BioPortal ontology to use?</p>
130
<p>Explore ontologies in BioPortal before registering them with Metacat. Use this search interface to find appropriate ontologies.</p>
131
<div id="bp_quick_jump"></div>
132
<script type="text/javascript">
133
    var BP_ontology_id = "all";
134
</script>
135
<script src="<%=STYLE_SKINS_URL%>/semtools/bioportal/quick_jump.js" type="text/javascript" charset="utf-8">
136
</script>
137

    
138
<h2>Tree browser (BioPortal)</h2>
139
<p>Explore existing ontologies in BioPortal</p>
140
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
141
	id="OntologyTree" width="300" height="100%"
142
	codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
143
	<param name="movie" value="http://keg.cs.uvic.ca/ncbo/ontologytree/OntologyTree.swf" />
144
	<param name="quality" value="high" />
145
	<param name="bgcolor" value="#ffffff" />
146
	<param name="allowScriptAccess" value="always" />
147
	<param name="flashVars" value="ontology=1523&alerterrors=false&canchangeontology=true&virtual=true" />
148
	<embed src="http://keg.cs.uvic.ca/ncbo/ontologytree/OntologyTree.swf" quality="high" bgcolor="#ffffff"
149
		width="300" height="100%" name="OntologyTree" align="middle"
150
		play="true"
151
		loop="false"
152
		allowScriptAccess="always"
153
		type="application/x-shockwave-flash"
154
		flashVars="ontology=1523&alerterrors=false&canchangeontology=true&virtual=true"
155
		pluginspage="http://www.adobe.com/go/getflashplayer">
156
	</embed>
157
</object>
158

    
159
<!-- Included default search/login -->
160
<% if ( PropertyService.getProperty("spatial.runSpatialOption").equals("true") ) { %>
161
<script language="javascript">
162
	insertMap("<%=CONTEXT_URL%>");
163
</script>
164
<br/>
165
<% } %>
166
  
167
<script language="javascript">
168
	insertSearchBox("<%=CONTEXT_URL%>");
169
	insertLoginBox("<%=CONTEXT_URL%>");	
170
</script>
171

    
172
<script language="javascript">
173
	insertTemplateClosing("<%=CONTEXT_URL%>");
174
</script>
175

    
176
</body>
177
</html>
(12-12/21)