Strabon

changeset 606:b060242046c2

Added styles for td and made letters smaller in HTML format. Styles have to be filled in the future.
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Wed Oct 03 12:34:02 2012 +0300 (2012-10-03)
parents 3e0f14b9bcd4
children 26af8ebdc892
files endpoint/WebContent/browse.jsp endpoint/WebContent/style.css endpoint/WebContent/teleios-header.html resultio/src/main/java/org/openrdf/query/resultio/sparqlhtml/stSPARQLResultsHTMLWriter.java
line diff
     1.1 --- a/endpoint/WebContent/browse.jsp	Tue Oct 02 18:35:44 2012 +0300
     1.2 +++ b/endpoint/WebContent/browse.jsp	Wed Oct 03 12:34:02 2012 +0300
     1.3 @@ -61,9 +61,9 @@
     1.4          <table width="100%" border=0>
     1.5           <tr>
     1.6              <td width="1"><img src="images/nav2_bg.gif" width="1" height="60"></td>
     1.7 -            <td valign="top" width="50px"><a href="query.jsp"><img border="0" src="images/teleios_	logo.png" /></a></td>
     1.8 +            <td valign="top" width="50px"><a href="query.jsp"><img border="0" src="images/teleios_logo.png" /></a></td>
     1.9              <td valign="top" align="left">
    1.10 -            <span id="logo"><a href="query.jsp">&nbsp;stSPARQL Endpoint</a></span><br><span class="style4"></span></td>
    1.11 +            <span class="logo"><a href="query.jsp">&nbsp;stSPARQL Endpoint</a></span><br><span class="style4"></span></td>
    1.12            </tr>
    1.13          </table>
    1.14        </TD>
    1.15 @@ -72,15 +72,15 @@
    1.16  	<h1>About: </h1>
    1.17  	<a href=""><%=request.getAttribute("resource")%></a>
    1.18  	<div id="response">
    1.19 -	<!-- Response -->	
    1.20 -<% if (request.getAttribute("response") != null) {
    1.21 -	if (Common.getHTMLFormat().equals(request.getParameter("format"))) {%>
    1.22 -		<%=request.getAttribute("response")%>
    1.23 -	<%} else { %>
    1.24 -	<PRE><%=request.getAttribute("response") %></PRE>
    1.25 -	<%}%>
    1.26 -<%}%>
    1.27 -</div>
    1.28 +		<!-- Response -->	
    1.29 +		<% if (request.getAttribute("response") != null) {
    1.30 +			if (Common.getHTMLFormat().equals(request.getParameter("format"))) {%>
    1.31 +				<%=request.getAttribute("response")%>
    1.32 +			<%} else { %>
    1.33 +			<PRE><%=request.getAttribute("response") %></PRE>
    1.34 +			<%}%>
    1.35 +		<%}%>
    1.36 +	</div>
    1.37  </body>
    1.38  
    1.39  </html>
    1.40 \ No newline at end of file
     2.1 --- a/endpoint/WebContent/style.css	Tue Oct 02 18:35:44 2012 +0300
     2.2 +++ b/endpoint/WebContent/style.css	Wed Oct 03 12:34:02 2012 +0300
     2.3 @@ -26,12 +26,13 @@
     2.4  a
     2.5  {
     2.6  	color:black;
     2.7 +	text-decoration: none;	
     2.8  }
     2.9  
    2.10  a:hover 
    2.11  {
    2.12  	color: blue;
    2.13 -	}
    2.14 +}
    2.15  
    2.16  p {
    2.17  	text-align: justify
    2.18 @@ -128,30 +129,7 @@
    2.19  	border: 1px solid #E6A685;
    2.20  	border-radius:5px;
    2.21  	}
    2.22 -	
    2.23 -#uri a {			
    2.24 -	text-decoration: none;	
    2.25 -	}	
    2.26 -	
    2.27 -#logo
    2.28 -{
    2.29 -	font:20px Arial, Helvetica, sans-serif;
    2.30 -	color: #333333;
    2.31 -	letter-spacing:.2em;
    2.32 -	line-height:30px;
    2.33 -}
    2.34 -	
    2.35 -#logo a	{
    2.36 -	padding-left: 10px;
    2.37 -	padding-top: 20px;
    2.38 -	text-decoration: none;
    2.39 -	}
    2.40 -
    2.41 -#logo a:hover
    2.42 -{
    2.43 -	color:  #333333;
    2.44 -}
    2.45 -
    2.46 +		
    2.47  #tagline 	{	
    2.48  	font:11px Arial, Helvetica, sans-serif;
    2.49  	color: #993300;
    2.50 @@ -167,7 +145,26 @@
    2.51  	line-height:20px;
    2.52  	margin-top:0px;
    2.53  	}
    2.54 +
    2.55 +.logo
    2.56 +{
    2.57 +	font:20px Arial, Helvetica, sans-serif;
    2.58 +	color: #333333;
    2.59 +	letter-spacing:.2em;
    2.60 +	line-height:30px;
    2.61 +}
    2.62  	
    2.63 +.logo a:link{
    2.64 +	padding-left: 10px;
    2.65 +	padding-top: 20px;
    2.66 +	text-decoration: none;
    2.67 +	}
    2.68 +
    2.69 +.logo a:hover
    2.70 +{
    2.71 +	color:  #333333;
    2.72 +}
    2.73 +
    2.74  .pageName{
    2.75  	font: 18px Arial, Helvetica, sans-serif;
    2.76  	color: #99CC66;
    2.77 @@ -202,16 +199,22 @@
    2.78  	text-decoration: none;
    2.79  	}
    2.80  	
    2.81 +.query_results_data{
    2.82 +	font:13px Arial, Helvetica, sans-serif;	
    2.83 +}
    2.84 +
    2.85  .comment {
    2.86  	width: 400px;
    2.87  	background-color: #f0f0f0;
    2.88  	margin: 10px;
    2.89  }
    2.90 +
    2.91  a.morelink {
    2.92  	text-decoration:none;
    2.93  	outline: none;
    2.94  	color: blue;
    2.95  }
    2.96 +
    2.97  .morecontent span {
    2.98  	display: none;
    2.99  
     3.1 --- a/endpoint/WebContent/teleios-header.html	Tue Oct 02 18:35:44 2012 +0300
     3.2 +++ b/endpoint/WebContent/teleios-header.html	Wed Oct 03 12:34:02 2012 +0300
     3.3 @@ -8,9 +8,9 @@
     3.4          <table width="100%" border=0>
     3.5           <tr>
     3.6              <td width="1"><img src="images/nav2_bg.gif" width="1" height="60"></td>
     3.7 -            <td valign="top" width="50px"><a href="query.jsp"><img border="0" src="images/teleios_	logo.png" /></a></td>
     3.8 +            <td valign="top" width="50px"><a href="query.jsp"><img border="0" src="images/teleios_logo.png" /></a></td>
     3.9              <td valign="top" align="left">
    3.10 -            <span id="logo"><a href="query.jsp">&nbsp;stSPARQL Endpoint</a></span><br><span class="style4"></span></td>
    3.11 +            <span class="logo"><a href="query.jsp">&nbsp;stSPARQL Endpoint</a></span><br><span class="style4"></span></td>
    3.12            </tr>
    3.13          </table>
    3.14        </TD>
     4.1 --- a/resultio/src/main/java/org/openrdf/query/resultio/sparqlhtml/stSPARQLResultsHTMLWriter.java	Tue Oct 02 18:35:44 2012 +0300
     4.2 +++ b/resultio/src/main/java/org/openrdf/query/resultio/sparqlhtml/stSPARQLResultsHTMLWriter.java	Wed Oct 03 12:34:02 2012 +0300
     4.3 @@ -121,12 +121,12 @@
     4.4  														
     4.5  					if(boundValue instanceof BNode) {
     4.6  						value.insert(0, "_:");
     4.7 -					}
     4.8 -										
     4.9 +					}															
    4.10 +					
    4.11  					// If the value is a uri, make it link
    4.12  					if(boundValue instanceof URI)
    4.13 -					{						
    4.14 -						xmlWriter.setAttribute(ID, LINK_ID);						
    4.15 +					{
    4.16 +						xmlWriter.setAttribute(STYLE, TABLE_DATA_CLASS);
    4.17  						xmlWriter.startTag(TABLE_DATA_TAG);
    4.18  						
    4.19  						// select all the triples that contain the boundValue  
    4.20 @@ -147,7 +147,7 @@
    4.21  					}
    4.22  					else
    4.23  					{	
    4.24 -						xmlWriter.setAttribute(STYLE, MORE_LINK);						
    4.25 +						xmlWriter.setAttribute(STYLE, TABLE_DATA_CLASS+" "+MORE_LINK);												
    4.26  						xmlWriter.startTag(TABLE_DATA_TAG);
    4.27  						xmlWriter.text(boundValue.toString());
    4.28  					}