Strabon

view endpoint/WebContent/browse.jsp @ 1410:2a7de8a1a022

support also geof:convexHull in grounded expressions evaluated in the SELECT clause
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Sep 21 19:21:57 2014 +0300 (2014-09-21)
parents b060242046c2
children
line source
1 <%@page import="java.net.URLDecoder"%>
2 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
3 <%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
4 <%@page import="org.springframework.web.context.WebApplicationContext"%>
5 <%@page import="eu.earthobservatory.org.StrabonEndpoint.StrabonBeanWrapper"%>
6 <%@page import="eu.earthobservatory.org.StrabonEndpoint.StrabonBeanWrapperConfiguration"%>
7 <%@page import="java.util.List"%>
8 <%@page import="java.util.Iterator"%>
9 <jsp:directive.page import="eu.earthobservatory.org.StrabonEndpoint.Common"/>
10 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
11 <html>
12 <head>
13 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15 <link rel="stylesheet" href="style.css" type="text/css" />
16 <script type="text/javascript" src="js/more_link.js"></script>
17 <title>TELEIOS: Strabon Endpoint</title>
18 <script>
19 $(document).ready(function() {
20 var showChar = 100;
21 var ellipsestext = "...";
22 var moretext = "more";
23 var lesstext = "less";
24 $('.more').each(function() {
25 var content = $(this).html();
27 if(content.length > showChar) {
29 var c = content.substr(0, showChar);
30 var h = content.substr(showChar-1, content.length - showChar);
32 var html = c + '<span class="moreelipses">'+ellipsestext+'</span>&nbsp;<span class="morecontent"><span>' + h + '</span>&nbsp;&nbsp;<a href="" class="morelink">'+moretext+'</a></span>';
34 $(this).html(html);
35 }
37 });
39 $(".morelink").click(function(){
40 if($(this).hasClass("less")) {
41 $(this).removeClass("less");
42 $(this).html(moretext);
43 } else {
44 $(this).addClass("less");
45 $(this).html(lesstext);
46 }
47 $(this).parent().prev().toggle();
48 $(this).prev().toggle();
49 return false;
50 });
51 });
52 </script>
53 </head>
54 <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
55 <TABLE width="80%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
56 <TR>
57 <TD height="1"></TD>
58 </TR>
59 <TR>
60 <TD height="60" background="images/nav2_bg.gif">
61 <table width="100%" border=0>
62 <tr>
63 <td width="1"><img src="images/nav2_bg.gif" width="1" height="60"></td>
64 <td valign="top" width="50px"><a href="query.jsp"><img border="0" src="images/teleios_logo.png" /></a></td>
65 <td valign="top" align="left">
66 <span class="logo"><a href="query.jsp">&nbsp;stSPARQL Endpoint</a></span><br><span class="style4"></span></td>
67 </tr>
68 </table>
69 </TD>
70 </TR>
71 </TABLE>
72 <h1>About: </h1>
73 <a href="#"><%=URLDecoder.decode(request.getAttribute("resource").toString(), "UTF-8")%></a>
74 <div id="response">
75 <!-- Response -->
76 <% if (request.getAttribute("response") != null) {
77 if (Common.getHTMLFormat().equals(request.getParameter("format"))) {%>
78 <%=request.getAttribute("response")%>
79 <%} else { %>
80 <PRE><%=request.getAttribute("response") %></PRE>
81 <%}%>
82 <%}%>
83 </div>
84 </body>
86 </html>