-
Notifications
You must be signed in to change notification settings - Fork 35
/
Browse.jsp
57 lines (46 loc) · 1.57 KB
/
Browse.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%@ include file="Prelude.jsp" %>
<%
/** This code is copyright Teknowledge (c) 2003, Articulate Software (c) 2003-2017,
Infosys (c) 2017-present.
This software is released under the GNU Public License
<http://www.gnu.org/copyleft/gpl.html>.
Please cite the following article in any publication with references:
Pease A., and Benzmüller C. (2013). Sigma: An Integrated Development Environment
for Logical Theories. AI Communications 26, pp79-97. See also
http://github.com/ontologyportal
*/
/**
* Browse.jsp responds to several HTTPD parameters:
* term = <name> - the SUMO term to browse
* kb = <name> - the name of the knowledge base
* lang = <lang> - the name of the language used to display axiom paraphrases
* */
String nonRelTerm = request.getParameter("nonrelation");
String relTerm = request.getParameter("relation");
if (StringUtil.emptyString(term))
term = "";
if (StringUtil.emptyString(nonRelTerm))
nonRelTerm = "";
if (StringUtil.emptyString(relTerm))
relTerm = "";
if (flang.equals("OWL")) {
response.sendRedirect(HTMLformatter.createHrefStart() + "/sigma/OWL.jsp?" +
"kb=" + kbName + "&term=" + term);
return;
}
%>
<html>
<head><title><%=term%> - Sigma Knowledge base Browser</title></head>
<body bgcolor="#FFFFFF">
<%
String parentPage = "Browse.jsp";
StringBuffer show = null;
%>
<%@ include file="BrowseBody.jsp"%>
<!-- show KB header and KB search input -->
<%@ include file="BrowseHeader.jsp" %>
<br>
<%=show.toString() %><BR>
<%@ include file="Postlude.jsp" %>
</body>
</html>