You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by co...@apache.org on 2011/03/20 18:01:36 UTC

svn commit: r1083505 [8/9] - in /incubator/stanbol/trunk/kres/jersey: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/stanbol/ src/main/java/org/apache/stanbol/kres/ src/main/java/org/apache/stanbo...

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/scripts/tinybox.js
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/scripts/tinybox.js?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/scripts/tinybox.js (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/scripts/tinybox.js Sun Mar 20 17:01:32 2011
@@ -0,0 +1,342 @@
+var TINY={};
+
+function T$(i){return document.getElementById(i)}
+
+TINY.box=function(){
+	var p,m,b,fn,ic,iu,iw,ih,ia,f=0;
+	return{
+		show:function(c,u,w,h,a,t){
+			if(!f){
+				p=document.createElement('div'); p.id='tinybox';
+				m=document.createElement('div'); m.id='tinymask';
+				b=document.createElement('div'); b.id='tinycontent';
+				document.body.appendChild(m); document.body.appendChild(p); p.appendChild(b);
+				m.onclick=TINY.box.hide; window.onresize=TINY.box.resize; f=1
+				var useragent = navigator.userAgent;
+				
+				if(useragent.indexOf('MSIE')> -1){
+					p.style.marginLeft = "50%";
+					p.style.marginTop = "15%";
+					p.style.position = "absolute";
+				}
+				else{
+					p.style.position = "absolute";
+				}
+			}
+			if(!a&&!u){
+				p.style.width=w?w+'px':'auto'; p.style.height=h?h+'px':'auto';
+				p.style.backgroundImage='none'; b.innerHTML=c
+			}else{
+				b.style.display='none'; p.style.width=p.style.height='100px'
+			}
+			this.mask();
+			ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3);
+			if(t){setTimeout(function(){TINY.box.hide()},1000*t)}
+		},
+		showS:function(c,u,w,h,a,t){
+			if(!f){
+				p=document.createElement('div'); p.id='tinybox';
+				m=document.createElement('div'); m.id='tinymask';
+				document.body.appendChild(m); document.body.appendChild(p);
+				m.onclick=TINY.box.hide; window.onresize=TINY.box.resize; f=1
+				var useragent = navigator.userAgent;
+				
+				if(useragent.indexOf('MSIE')> -1){
+					p.style.marginLeft = "50%";
+					p.style.marginTop = "15%";
+					p.style.position = "absolute";
+				}
+				else{
+					p.style.position = "absolute";
+				}
+			}
+			p.style.width=p.style.height='100px';
+			this.mask();
+			ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3);
+			if(t){setTimeout(function(){TINY.box.hide()},1000*t)}
+		},
+		showL:function(c,u,w,h,a,t){
+			
+			b=document.createElement('div'); b.id='tinycontent';
+			p.appendChild(b);
+			
+			p.style.width=w?w+'px':'auto'; p.style.height=h?h+'px':'auto';
+			p.style.backgroundImage='none'; b.innerHTML=c
+			
+		},
+		fill:function(c,u,w,h,a){
+			if(u){
+				p.style.backgroundImage='';
+				var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');
+				x.onreadystatechange=function(){
+					if(x.readyState==4&&x.status==200){TINY.box.psh(x.responseText,w,h,a)}
+				};
+				x.open('GET',c,1); x.send(null)
+			}else{
+				this.psh(c,w,h,a)
+			}
+		},
+		psh:function(c,w,h,a){
+			if(a){
+				if(!w||!h){
+					var x=p.style.width, y=p.style.height; b.innerHTML=c;
+					p.style.width=w?w+'px':''; p.style.height=h?h+'px':'';
+					b.style.display='';
+					w=parseInt(b.offsetWidth); h=parseInt(b.offsetHeight);
+					b.style.display='none'; p.style.width=x; p.style.height=y;
+				}else{
+					b.innerHTML=c
+				}
+				this.size(p,w,h,4)
+			}else{
+				p.style.backgroundImage='none'
+			}
+		},
+		hide:function(){
+			TINY.box.alpha(p,-1,0,3)
+		},
+		resize:function(){
+			TINY.box.pos(); TINY.box.mask()
+		},
+		mask:function(){
+			m.style.height=TINY.page.theight()+'px';
+			m.style.width=''; m.style.width=TINY.page.twidth()+'px'
+		},
+		pos:function(){
+			var t=(TINY.page.height()/2)-(p.offsetHeight/2); t=t<10?10:t;
+			p.style.top=(t+TINY.page.top())+'px';
+			p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'
+		},
+		alpha:function(e,d,a,s){
+			clearInterval(e.ai);
+			if(d==1){
+				e.style.opacity=0; e.style.filter='alpha(opacity=0)';
+				e.style.display='block'; this.pos()
+			}
+			e.ai=setInterval(function(){TINY.box.twalpha(e,a,d,s)},20)
+		},
+		twalpha:function(e,a,d,s){
+			var o=Math.round(e.style.opacity*100);
+			if(o==a){
+				clearInterval(e.ai);
+				if(d==-1){
+					e.style.display='none';
+					e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=''
+				}else{
+					e==m?this.alpha(p,1,100,5):TINY.box.fill(ic,iu,iw,ih,ia)
+				}
+			}else{
+				var n=o+Math.ceil(Math.abs(a-o)/s)*d;
+				e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'
+			}
+		},
+		size:function(e,w,h,s){
+			e=typeof e=='object'?e:T$(e); clearInterval(e.si);
+			var ow=e.offsetWidth, oh=e.offsetHeight,
+			wo=ow-parseInt(e.style.width), ho=oh-parseInt(e.style.height);
+			var wd=ow-wo>w?-1:1, hd=(oh-ho>h)?-1:1;
+			e.si=setInterval(function(){TINY.box.twsize(e,w,wo,wd,h,ho,hd,s)},20)
+		},
+		twsize:function(e,w,wo,wd,h,ho,hd,s){
+			var ow=e.offsetWidth-wo, oh=e.offsetHeight-ho;
+			if(ow==w&&oh==h){
+				clearInterval(e.si); p.style.backgroundImage='none'; b.style.display='block'
+			}else{
+				if(ow!=w){e.style.width=ow+(Math.ceil(Math.abs(w-ow)/s)*wd)+'px'}
+				if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}
+				this.pos()
+			}
+		},
+		work:function(){
+			var tinybox = document.getElementById("tinybox");
+			if(tinybox != null){
+				tinybox.style.background = "#fff url(img/loading.gif) no-repeat 50% 50%";
+				tinybox.style.display = "block";
+				var tinycontent = document.getElementById("tinycontent");
+				if(tinycontent != null){
+					tinycontent.innerHTML = "<br>";
+					//tinycontent.style.background = "#fff url(img/loading.gif) no-repeat 40% 40%";
+					//tinycontent.style.display = 'none';
+				}
+				
+			}
+		},
+		searchShow:function(c,u,w,h,a,t){
+			if(!f){
+				p=document.createElement('div'); p.id='tinybox';
+				m=document.createElement('div'); m.id='tinymask';
+				document.body.appendChild(m); document.body.appendChild(p);
+				m.onclick=TINY.box.hide; window.onresize=TINY.box.resize; f=1
+				var useragent = navigator.userAgent;
+				
+				if(useragent.indexOf('MSIE')> -1){
+					p.style.marginLeft = "50%";
+					p.style.marginTop = "15%";
+					p.style.position = "absolute";
+				}
+				else{
+					p.style.position = "absolute";
+				}
+			}
+			
+			this.mask();
+			ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3);
+			if(t){setTimeout(function(){TINY.box.hide()},1000*t)}
+		}
+	}
+}();
+
+TINY.page=function(){
+	return{
+		top:function(){return document.body.scrollTop||document.documentElement.scrollTop},
+		width:function(){return self.innerWidth||document.documentElement.clientWidth},
+		height:function(){return self.innerHeight||document.documentElement.clientHeight},
+		theight:function(){
+			var d=document, b=d.body, e=d.documentElement;
+			return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))
+		},
+		twidth:function(){
+			var d=document, b=d.body, e=d.documentElement;
+			return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))
+		}
+	}
+}();
+
+
+function popupCentrata(req, parameter) {
+	
+	var ebhclibrary = readCookie("ebhclibrary");
+	var auth;
+	var remember = false;
+	if(ebhclibrary != null){
+		auth = ebhclibrary.split(";");
+		auth = auth[0].split(" ");
+		remember = true;
+	}
+	
+	var content2;
+	
+	if(remember){
+		content2 = "<div id=\"popupbox\">" +
+					"<form name=\"login\" action=\"\" method=\"post\">" +
+					"<center>Username:</center>" +
+					"<center><input id=\"username\" name=\"username\" value=\""+auth[0]+"\" size=\"14\" /></center>" +
+					"<center>Password:</center>" +
+					"<center><input id=\"password\" name=\"password\" type=\"password\" value=\""+auth[1]+"\" size=\"14\" /></center>";
+	}
+	else{
+		content2 = "<div id=\"popupbox\">" +
+					"<form name=\"login\" action=\"\" method=\"post\">" +
+					"<center>Username:</center>" +
+					"<center><input id=\"username\" name=\"username\" size=\"14\" /></center>" +
+					"<center>Password:</center>" +
+					"<center><input id=\"password\" name=\"password\" type=\"password\" size=\"14\" /></center>";
+	}
+					
+	
+	if(req != null){
+		req = "'"+req+"'";
+	}
+	if(parameter != null){
+		parameter = "'"+parameter+"'";
+	}
+	
+	if(remember){
+		content2 += "<center><input id=\"rememberme\" type=\"checkbox\" name=\"rememberme\" value=\"rememberme\" checked/>Remember me</center></form>";
+	}
+	else{
+		content2 += "<center><input id=\"rememberme\" type=\"checkbox\" name=\"rememberme\" value=\"rememberme\"/>Remember me</center></form>";
+	}
+	
+	content2 += "<center><input type=\"button\" name=\"submit\" value=\"login\" onclick=\"javascript:loggin("+req+", "+parameter+")\"/></center></form>" +
+				"<center><span id=\"loginincorrect\" style=\"color:red\"></span></center>";
+	
+	//var content2 = "<img src='img/full-text.gif' width='298' height='373' alt='' />";
+	
+	//TINY.box.show(content2,0,0,0,1);
+	TINY.box.showL(content2,0,0,0,1);
+
+ }
+
+function poplog(req, parameter) {
+	
+	var ebhclibrary = readCookie("ebhclibrary");
+	var auth;
+	var remember = false;
+	if(ebhclibrary != null){
+		auth = ebhclibrary.split(";");
+		auth = auth[0].split(" ");
+		remember = true;
+	}
+	
+	var content2;
+	
+	if(remember){
+		content2 = "<div id=\"popupbox\">" +
+					"<form name=\"login\" action=\"\" method=\"post\">" +
+					"<center>Username:</center>" +
+					"<center><input id=\"username\" name=\"username\" value=\""+auth[0]+"\" size=\"14\" /></center>" +
+					"<center>Password:</center>" +
+					"<center><input id=\"password\" name=\"password\" type=\"password\" value=\""+auth[1]+"\" size=\"14\" /></center>";
+	}
+	else{
+		content2 = "<div id=\"popupbox\">" +
+					"<form name=\"login\" action=\"\" method=\"post\">" +
+					"<center>Username:</center>" +
+					"<center><input id=\"username\" name=\"username\" size=\"14\" /></center>" +
+					"<center>Password:</center>" +
+					"<center><input id=\"password\" name=\"password\" type=\"password\" size=\"14\" /></center>";
+	}
+					
+	
+	if(req != null){
+		req = "'"+req+"'";
+	}
+	if(parameter != null){
+		parameter = "'"+parameter+"'";
+	}
+	
+	if(remember){
+		content2 += "<center><input id=\"rememberme\" type=\"checkbox\" name=\"rememberme\" value=\"rememberme\" checked/>Remember me</center></form>";
+	}
+	else{
+		content2 += "<center><input id=\"rememberme\" type=\"checkbox\" name=\"rememberme\" value=\"rememberme\"/>Remember me</center></form>";
+	}
+	
+	content2 += "<center><input type=\"button\" name=\"submit\" value=\"login\" onclick=\"javascript:loggin("+req+", "+parameter+")\"/></center></form>" +
+				"<center><span id=\"loginincorrect\" style=\"color:red\"></span></center>";
+	
+	//var content2 = "<img src='img/full-text.gif' width='298' height='373' alt='' />";
+	
+	TINY.box.show(content2,0,0,0,1);
+
+ }
+
+
+function readCookie(name) {
+	var nameEQ = name + "=";
+	var ca = document.cookie.split(';');
+	for(var i=0;i < ca.length;i++) {
+		var c = ca[i];
+		while (c.charAt(0)==' ') c = c.substring(1,c.length);
+		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
+	}
+	return null;
+}
+
+function createCookie(name,value,days) {
+	if (days) {
+		var date = new Date();
+		date.setTime(date.getTime()+(days*24*60*60*1000));
+		var expires = "; expires="+date.toGMTString();
+	}
+	else var expires = "";
+	
+	document.cookie = name+"="+value+expires+"; path=/";
+}
+
+function eraseCookie(name) {
+	createCookie(name,"",-1);
+}
+
+

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/fise.css
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/fise.css?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/fise.css (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/fise.css Sun Mar 20 17:01:32 2011
@@ -0,0 +1,368 @@
+body {
+  font: normal 13px/20px Arial,Helvetica,sans-serif;
+  padding: 0;
+  margin: 0;
+  background-color: #eff9f0;
+}
+
+img {
+  border: none;
+}
+
+a:link, a:visited, a:hover {
+  color: #c43187;
+}
+
+a: active {
+  color: black;  
+}
+
+a:focus {
+  outline: none;
+}
+
+dt, dd {
+  margin-top: 1em;
+}
+
+pre, textarea {
+  border: 1px solid #f8dcbb;
+  padding: 1em;
+  background-color: #f8f8f8;
+  font-size: 90%;  
+  overflow: auto;
+}
+
+textarea {
+  width: 100%;
+}
+
+pre {
+  white-space: pre-wrap;       /* css-3 */
+  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
+  white-space: -pre-wrap;      /* Opera 4-6 */
+  white-space: -o-pre-wrap;    /* Opera 7 */
+  word-wrap: break-word;       /* Internet Explorer 5.5+ */  
+}
+
+form  {
+  margin-bottom: 2em;
+}
+
+.home {
+  position: absolute;
+}
+
+.header {
+  padding: 0.5em 1em;
+  background: #4c4c4c url("/static/images/header_bg.png") repeat-x top left;  
+  border-bottom: 1px solid black;
+}
+
+.header h1 {
+  float: left;
+}
+
+.header .mainNavigationMenu {
+  margin: 23px 1em 0;
+  text-align: right;
+}
+
+.header .mainNavigationMenu ul {
+  display: inline;
+}
+
+.header .mainNavigationMenu li {
+  display: inline;
+  margin-left: 0.5em;
+  border: 1px solid transparent;
+  padding: 0.3em 0.5em 0.5em 0.5em;
+  border-radius: 8px;
+}
+
+.header .mainNavigationMenu li.selected {
+  border: 1px solid #222;
+  background-color: #333;
+}
+
+.header .mainNavigationMenu a {
+  font-weight: bold;
+  color: #EFF9F0;
+}
+
+
+h1 {
+  color: #e9e9e9;
+  font-size: 18px;
+  font-weight: normal;
+  margin: 22px 0 3px;
+  padding: 0 0 0 160px;
+  text-shadow: 0 1px 0 #000;
+}
+
+h2 {
+  padding: 0;
+  margin: 1em 0;
+  font-size: 16px;
+}
+
+h3 {
+  padding: 0;
+  margin: 1em 0;
+  font-size: 14px;
+  font-weight:bold;
+}
+
+.content {
+  background-color: #fff;
+  border-color: #d1dfce;
+  border-style: solid;
+  border-width: 0 1px 2px;
+  margin: 0 auto 5em;
+  padding: 0.5em 2em 1em;
+  width: 75%;
+}
+
+.content img {
+  border: 1px solid gray;  
+  max-width: 800px;  
+}
+
+.content fieldset {
+  border-color: #d1dfce;
+  border-style: solid;
+  border-width: 1px;
+}
+
+.footer {
+  background-color: #494949;
+  border-top: 2px solid #373737;
+  color: #d9d9d9;
+  font-size: 85%;
+  padding: 1em 1em 2em;
+  text-shadow: 0 1px 0 #111111;
+}
+
+.footer .column {
+  float: left;
+  width: 48%;
+  padding: 0.5em;
+}
+
+.column a img {
+  border: 1px solid #373737;
+}
+
+.footer img.swcube {
+  padding: 6px;
+  background-color: white;  
+}
+
+.right {
+  text-align: right;
+} 
+
+table {
+  text-align: left;
+  width: 100%;
+}
+
+.storeContents table {
+  border-collapse: collapse;
+  margin: 5px 0 0px;
+}
+
+.storeContents th {  
+  color: #000;
+  font-size: 105%;
+  font-weight: normal;
+  padding: 6px 10px;
+  border-bottom: 1px solid #d1dfce;
+  background-color:#f8f8f8;
+}
+
+.storeContents th img {
+  vertical-align: top;
+  border: medium none;
+  margin: 0 0.1em;
+}
+
+.storeContents td {
+  padding: 4px 10px 5px;
+  border-bottom: 1px solid #ffe8f9;
+}
+
+.content input.url {
+  width: 600px;
+}
+
+.content .contentItemPreview pre {
+  max-height: 200px;  
+}
+
+.content table {
+  font-size: 95%; 
+}
+
+.entitylistings {
+  margin-top: 20px;
+  }
+
+.entitylisting h3 {
+  text-align: center;  
+}
+
+.entitylisting {
+  float: left;
+  width: 33%;
+  margin: auto;
+}
+
+.entitylisting p {
+  margin: 0.2em;
+}
+
+.entitylisting table {
+  border: 1px solid #eee;
+  border-radius: 8px;
+  background: url("/static/images/foldable_unfolded.png") no-repeat scroll right 17px transparent;
+}
+
+.entitylisting table.collapsed {
+  background: url("/static/images/foldable_folded.png") no-repeat scroll right center transparent;
+  }
+
+.entitylisting .subheader {
+  height: 25px;
+}
+
+.entitylisting .subheader td {
+  background-color: #f9f9f9;
+  border-bottom: 1px solid #eee;
+  border-top: 1px solid #eee;
+  font-weight: bold;
+  padding: 0 10px;
+}
+
+.entitylisting img {
+  vertical-align: middle;
+  border: 1px solid transparent;
+}
+
+.entitylisting .thumb {
+  width: 50px;
+}
+
+.entitylisting thead {
+  cursor: pointer;
+}
+
+.entitylisting tbody{
+  background-color: #fcfcfc;
+  }
+
+.entitylisting tbody tr {
+  height: 42px;
+}
+
+.entitylisting .collapsed tbody tr {
+  display: none;
+}
+
+.downloadLinks, .previousNext {
+  list-style: none;
+  text-align: right;
+  padding: 0;
+  }
+
+.downloadLinks li, .previousNext li {
+  border: 1px solid #c3c3c3;
+  display: inline;
+  margin: 0 0 0 30px;
+  padding: 4px 6px 5px;
+  background-color: #fafafa;
+  }
+
+.downloadLinks li a, .previousNext li a {
+  color: #333;
+  text-decoration: none;
+  }
+
+.downloadLinks li a:hover, .previousNext li a:hover {
+  text-decoration: underline;
+  }
+
+li.older a {
+  background: url("/static/images/next.png") no-repeat scroll right center transparent;
+  padding: 0 12px 0 0;
+  }
+  
+li.moreRecent a {
+  background: url("/static/images/previous.png") no-repeat scroll left center transparent;
+  padding: 0 0 0 13px;
+  }
+
+.download {
+  background: url("/static/images/download.png") no-repeat scroll left center transparent;
+  padding: 0 0 2px 20px;
+  }
+
+.downloadRDF {
+  background: url("/static/images/download_rdf.png") no-repeat scroll left center transparent;
+  padding: 0 0 2px 20px;
+  }
+
+.external {
+  background: url("/static/images/external.png") no-repeat scroll right center transparent;
+  padding: 0 18px 0 0;
+  }
+  
+#enginesOuputWaiter {
+  opacity: 90%;
+  font-style: italic;
+  text-align: center;  
+}
+
+#enginesOuput pre {
+  max-height: 200px;
+}
+
+.enginelisting {
+  padding: 0.5em;
+  border: 1px solid #eee;
+  border-radius: 8px;
+}
+
+.enginelisting .collapseheader {
+  margin: 0.1em;
+  cursor: pointer;
+  background: url("/static/images/foldable_unfolded.png") no-repeat scroll right center transparent;
+}
+
+.enginelisting .collapsed .collapseheader {
+  background: url("/static/images/foldable_folded.png") no-repeat scroll right center transparent;
+}
+
+.enginelisting ul {
+  padding-left: 0;
+}
+
+.enginelisting .collapsed .collapsable {
+  display: none;
+}
+
+.enginelisting li {
+  list-style: none;
+  padding-left: 20px; 
+  background: transparent url(/static/images/black_gear_16.png) no-repeat scroll 0% 50%;
+}
+
+#enginesInput .submitButtons {
+  text-align: right;  
+}
+
+p.note {
+  font-size: 90%;
+  font-style: italic;
+  text-align: right;
+}
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/date-bottom.gif
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/date-bottom.gif?rev=1083505&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/date-bottom.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/date-top.gif
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/date-top.gif?rev=1083505&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/date-top.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/footer.jpg
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/footer.jpg?rev=1083505&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/footer.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/frontphoto.jpg
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/frontphoto.jpg?rev=1083505&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/frontphoto.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/header.jpg
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/header.jpg?rev=1083505&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/header.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/wrapbg.gif
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/wrapbg.gif?rev=1083505&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/images/wrapbg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kres.css
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kres.css?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kres.css (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kres.css Sun Mar 20 17:01:32 2011
@@ -0,0 +1,108 @@
+
+* {margin:0; padding:0;}
+
+/******** General tags ********/
+body {margin:25px auto; padding:0; font:76% Verdana,Tahoma,Arial,sans-serif; background:#1e3044; color:#303030; line-height:1.3em;}
+a {text-decoration:none; color:#20526a; font-weight:bold;}
+a:hover {text-decoration:underline; color:#20526a;}
+a img {border:0;}
+p {margin:0 0 18px 8px;}
+h2 {font-size:1.5em; font-weight:normal; letter-spacing:-1px; margin:10px 0 8px 0;}
+h3 {font-size:1.2em; margin:2px 0 8px 0;}
+
+/******** Main wrap ********/
+#wrap {background:#ffffff url(images/wrapbg.gif) top left repeat-y; color:#303030; margin:0 auto; width:760px;}
+
+/******** Header ********/
+#header {clear:both; background:url(images/header.jpg) top left no-repeat; height:150px;}
+#header h1 {font-size:3.8em; letter-spacing:-4px; color:#d88d44; padding:10px 0 10px 45px;}
+#header h1 a {color:#d88d44; text-decoration:none;}
+#header h1 a:hover {color:#e99e55;}
+#slogan {color:#20526a; margin:60px 0 0 45px; font-size:1.6em; letter-spacing:-1px; }
+
+#leftHeader {width: 15%; float: left;}
+#rightHeader {width: 85%; float: right;}
+
+/******** Sitemenu, left sidebar ********/
+#sitemenu {clear:both; float:left; width:135px; margin:0; padding:20px 0 0 15px;}
+#sitemenu ul {list-style:none; width:135px; margin:0 0 20px 0; padding:0; font-size:1#2em; letter-spacing:-1px;}
+#sitemenu li {margin-bottom:4px;}
+#sitemenu li a {font-weight:bold; text-decoration:none; color:#20526a; display:block; height:1.1em; padding:2px 2px 2px 8px; border-left: 8px solid #70a2ba;}
+#sitemenu li a:hover {color:#d88d44; text-decoration:none; border-left:8px solid #d88d44;}
+#sitemenu #current {border-left:8px solid #d88d44;}
+#sitemenu ul ul {font-size:0.8em; width:110px; font-weight:normal; margin:5px 0 8px 20px;}
+#sitemenu ul ul li {margin-bottom:2px;}
+#sitemenu ul ul li a {border:0; padding:2px;}
+#sitemenu ul ul li a:hover {border:0; padding:2px; text-decoration:underline;}
+
+/******** Extras, right sitebar ********/
+#extras {float:right; width:135px; margin:0; padding:10px 15px 0 0;}
+#extras ul {margin:0 0 14px 2px; list-style:none; color:#808080;}
+#extras li {margin:0 0 2px 0;}
+#extras li a {padding:2px 2px 2px 2px; height:1.2em; letter-spacing:-1px; font-weight:bold;}
+#extras li a:hover {color:#d88d44;}
+#extras ul ul, #extras ul ul ul {font-size:0.9em; line-height:1.2em; margin:2px 0 2px 15px;}
+#extras ul ul a, #extras ul ul ul a {font-weight:normal;}
+
+/******** Content variations ********/
+#content {margin:5px 170px 0 170px; padding:2px 0 0 0; line-height:1.5em; text-align:left;}
+#content h2 {font-size:1.6em; margin:20px 0 10px 0;}
+#content h3 {font-size:1.4em; font-weight:normal; letter-spacing:-1px; margin:10px 0 8px 0;}
+#content p {text-align:justify;}
+
+/******** Footer ********/
+#footer {clear:both; margin:5px auto 0 auto; padding:10px 0 10px 0; width:760px; text-align:center; background: url(images/footer.jpg) bottom left no-repeat; color:#555; font-size:0.9em; line-height:1.5em;}
+#footer p {margin:3px;}
+#footer p strong {font-size:1.1em; font-weight:400;}
+#footer a {color:#777; font-weight:400; text-decoration:none;}
+#footer a:hover {text-decoration:underline;}
+
+/******** Various classes ********/
+.datetag {width:50px; padding:0 0 10px 0; text-align:center; background:.20526a url(images/date-bottom.gif) bottom left no-repeat; margin:2px 15px 1px 10px; color:.ffffff; font-size:2.2em; text-align:center; float:left;}
+.datetag .date {width:50px; display:block; letter-spacing:-1px; padding:15px 0 5px 0; background:.20526a url(images/date-top.gif) top left no-repeat;}
+.datetag .month {font-size:0.5em; letter-spacing:-1px; width:50px; display:block; font-weight:bold;}
+.textright {text-align:right;}
+.center {text-align:center;}
+.frontphoto {margin:20px 0 10px 0;}
+.small {font-size:0.8em;}
+.bold {font-weight:bold;}
+.clear {clear:both;}
+.hide {display:none;}
+
+input.url {width: 400px;}
+
+div#data-source-form{
+	margin-left: 25px;
+	margin-top: 25px;
+}
+
+ul.kressList{
+	margin: 0 0 0 25px;
+}
+
+.indent{margin-left: 20px;}
+.indent code{border: thin; border-style: dotted; padding: 5px 5px 5px 5px;}
+
+
+.configure {margin-left: 5px; width: 12px; height: 12px;}
+.scopeDIV {margin: 20px 0 20px 20px; display: none;}
+.contentAlign {margin: 20px 0 0 20px;}
+.menuLeft {width: 80%; float: left;}
+.menuRight {width: 20%; float: right; margin-top: 10px;}
+.menuRightText {width: 20%; float: right;}
+.contentTag {margin-right: 10px;}
+.contentTagNoShow {margin: 30px 0 0 30px; display: none;}
+.refactor {width: 350px; margin-bottom: 10px;}
+
+#recipeList {display: none; width: 100%;}
+
+#tinybox {width:230px; height:190px; display:none; padding:10px; background:#fff url(img/loading.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000}
+#tinymask {text-align:center; position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000; z-index:1500}
+#tinycontent {background:#fff}
+
+.code {width: 300px;}
+
+.contentTag fieldset {border-color: #d1dfce; border-style: solid; border-width: 1px; width: 380px; margin: 0 0 30px 18px;}
+.contentTag div.fieldset {margin: 20px 20px 20px 20px;}
+.fieldset select {width: 300px;}
+.fieldset .code {width: 200px;}
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kress.css
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kress.css?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kress.css (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/static/style/kress.css Sun Mar 20 17:01:32 2011
@@ -0,0 +1,67 @@
+
+* {margin:0; padding:0;}
+
+/******** General tags ********/
+body {margin:25px auto; padding:0; font:76% Verdana,Tahoma,Arial,sans-serif; background:.1e3044; color:.303030; line-height:1.3em;}
+a {text-decoration:none; color:.20526a; font-weight:bold;}
+a:hover {text-decoration:underline; color:.20526a;}
+a img {border:0;}
+p {margin:0 0 18px 8px;}
+h2 {font-size:1.5em; font-weight:normal; letter-spacing:-1px; margin:10px 0 8px 0;}
+h3 {font-size:1.2em; margin:2px 0 8px 0;}
+
+/******** Main wrap ********/
+#wrap {background:.ffffff url(images/wrapbg.gif) top left repeat-y; color:.303030; margin:0 auto; width:760px;}
+
+/******** Header ********/
+.header {clear:both; background:url(images/header.jpg) top left no-repeat; height:150px;}
+.header h1 {font-size:3.8em; letter-spacing:-4px; color:.d88d44; padding:55px 0 10px 45px;}
+.header h1 a {color:.d88d44; text-decoration:none;}
+.header h1 a:hover {color:.e99e55;}
+.slogan {color:.20526a; margin:15px 0 0 45px; font-size:1.6em; letter-spacing:-1px;}
+
+/******** Sitemenu, left sidebar ********/
+.sitemenu {clear:both; float:left; width:135px; margin:0; padding:20px 0 0 15px;}
+.sitemenu ul {list-style:none; width:135px; margin:0 0 20px 0; padding:0; font-size:1.2em; letter-spacing:-1px;}
+.sitemenu li {margin-bottom:4px;}
+.sitemenu li a {font-weight:bold; text-decoration:none; color:.20526a; display:block; height:1.1em; padding:2px 2px 2px 8px; border-left: 8px solid .70a2ba;}
+.sitemenu li a:hover {color:.d88d44; text-decoration:none; border-left:8px solid .d88d44;}
+.sitemenu .current {border-left:8px solid .d88d44;}
+.sitemenu ul ul {font-size:0.8em; width:110px; font-weight:normal; margin:5px 0 8px 20px;}
+.sitemenu ul ul li {margin-bottom:2px;}
+.sitemenu ul ul li a {border:0; padding:2px;}
+.sitemenu ul ul li a:hover {border:0; padding:2px; text-decoration:underline;}
+
+/******** Extras, right sitebar ********/
+.extras {float:right; width:135px; margin:0; padding:10px 15px 0 0;}
+.extras ul {margin:0 0 14px 2px; list-style:none; color:.808080;}
+.extras li {margin:0 0 2px 0;}
+.extras li a {padding:2px 2px 2px 2px; height:1.2em; letter-spacing:-1px; font-weight:bold;}
+.extras li a:hover {color:.d88d44;}
+.extras ul ul, .extras ul ul ul {font-size:0.9em; line-height:1.2em; margin:2px 0 2px 15px;}
+.extras ul ul a, .extras ul ul ul a {font-weight:normal;}
+
+/******** Content variations ********/
+.content {margin:5px 170px 0 170px; padding:2px 0 0 0; line-height:1.5em; text-align:left;}
+.content h2 {font-size:1.6em; margin:20px 0 10px 0;}
+.content h3 {font-size:1.4em; font-weight:normal; letter-spacing:-1px; margin:10px 0 8px 0;}
+.content p {text-align:justify;}
+
+/******** Footer ********/
+.footer {clear:both; margin:5px auto 0 auto; padding:10px 0 10px 0; width:760px; text-align:center; background: url(images/footer.jpg) bottom left no-repeat; color:.555; font-size:0.9em; line-height:1.5em;}
+.footer p {margin:3px;}
+.footer p strong {font-size:1.1em; font-weight:400;}
+.footer a {color:.777; font-weight:400; text-decoration:none;}
+.footer a:hover {text-decoration:underline;}
+
+/******** Various classes ********/
+.datetag {width:50px; padding:0 0 10px 0; text-align:center; background:.20526a url(images/date-bottom.gif) bottom left no-repeat; margin:2px 15px 1px 10px; color:.ffffff; font-size:2.2em; text-align:center; float:left;}
+.datetag .date {width:50px; display:block; letter-spacing:-1px; padding:15px 0 5px 0; background:.20526a url(images/date-top.gif) top left no-repeat;}
+.datetag .month {font-size:0.5em; letter-spacing:-1px; width:50px; display:block; font-weight:bold;}
+.textright {text-align:right;}
+.center {text-align:center;}
+.frontphoto {margin:20px 0 10px 0;}
+.small {font-size:0.8em;}
+.bold {font-weight:bold;}
+.clear {clear:both;}
+.hide {display:none;}
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/ajax/contentitem.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/ajax/contentitem.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/ajax/contentitem.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/ajax/contentitem.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,9 @@
+<#import "/imports/contentitem.ftl" as contentitem>
+<#escape x as x?html>
+
+<@contentitem.view />
+
+<h3>Raw RDF output</h3>
+<pre>${it.rdfMetadata}</pre>
+</div>
+</#escape>
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/common.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/common.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/common.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/common.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,69 @@
+<#macro page title>
+<html>
+  <head>
+
+    <title>KReS Platform - ${title?html}</title>
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+
+    <link rel="stylesheet" href="/kres/static/style/kres.css" title="KReS Style" media="screen,projection" /> 
+ 
+ 	<link rel="icon" type="image/png" href="/kres/static/images/kresLogoExtended.png" />
+ 	
+    <script type="text/javascript" src="/kres/static/scripts/jquery-1.4.2.js"></script>
+    <script type="text/javascript" src="/kres/static/scripts/kres.js"></script>
+    <script type="text/javascript" src="/kres/static/scripts/jquery.rdfquery.core-1.0.js"></script>
+    <script type="text/javascript" src="/kres/static/scripts/tinybox.js"></script>
+    <script type="text/javascript" src="/kres/static/scripts/jit-yc.js"></script>
+
+  </head>
+  <body> <div id="wrap">
+  		<div id="header">
+  			<div id="leftHeader">
+  				<h1><a href="/kres"><img alt="KReS Logo" src="/kres/static/images/kresLogoExtended.png" width="110" height="112"></a></h1>
+  			</div>
+  			<div id="rightHeader">
+  				<p id="slogan">The Knowledge Representation and Reasoning System!</p>
+  			</div> 
+			 
+		</div>  
+		
+		<#if it?exists && it.mainMenuItems?exists>
+		<div id="sitemenu"> 
+			<h2 class="hide">KReS menu:</h2> 
+			<ul> 
+				<#list it.mainMenuItems as item>
+					<li><a class="${item.cssClass}" href="${item.link}">${item.label}</a>
+					<#if item.subMenu?exists>
+						<div id="${item.id}" class="hide">
+							<ul>
+							<#list item.subMenu as subItem>
+								<a class="${subItem.cssClass}" href="${subItem.link}">${subItem.label}</a></li>
+							</#list>
+							</ul>	
+						</div>
+					</#if>
+					</li>
+				</#list> 
+			</ul> 
+			<h2><a href="http://stlab.istc.cnr.it/stlab/The_Semantic_Technology_Laboratory_(STLab)"><img src="/kres/static/images/stlabLogo.jpg" width="80" height="40"></a></h2>
+		</div> 
+		</#if>
+		
+	    <div id="content">
+	      <h2>${title?html}</h2>
+	      <#nested>
+	    </div>
+	
+		<div id="footer">
+		
+		  <a href="http://www.w3.org/standards/semanticweb/"><img class="swcube"
+		    src="/kres/static/images/sw-cube.png"/></a>
+	      <a href="http://www.iks-project.eu"><img
+	        height="60px" alt="IKS Project" src="/kres/static/images/iks_project_logo.jpg" /></a>
+	      <p><em>The research leading to these results has received funding from the European Community's
+	          Seventh Framework Programme (FP7/2007-2013) under grant agreement n° 231527</em></p>
+	   </div>
+	</div>
+  </body>
+</html>
+</#macro>

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/contentitem.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/contentitem.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/contentitem.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/contentitem.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,40 @@
+<#import "/imports/entities.ftl" as entities>
+<#macro view>
+
+<div class="entitylistings">
+<#if it.personOccurrences?size != 0 || it.organizationOccurrences?size != 0 ||  it.placeOccurrences?size != 0>
+<h3>Extracted entities</h3>
+</#if>
+
+<div class="entitylisting">
+<#if it.personOccurrences?size != 0>
+<h3>People</h3>
+<@entities.listing entities=it.personOccurrences
+  iconsrc="/static/images/user_48.png" /> 
+</#if>
+</div>
+
+<div class="entitylisting">
+<#if it.organizationOccurrences?size != 0>
+<h3>Organizations</h3>
+<@entities.listing entities=it.organizationOccurrences
+  iconsrc="/static/images/organization_48.png" /> 
+</#if>
+</div>
+
+<div class="entitylisting">
+<#if it.placeOccurrences?size != 0>
+<h3>Places</h3>
+<@entities.listing entities=it.placeOccurrences
+  iconsrc="/static/images/compass_48.png" /> 
+</#if>
+</div>
+</div>
+<div style="clear: both"></div>
+
+<script>
+$("th").click(function () {
+  $(this).parents("table").toggleClass("collapsed");
+});    
+</script>
+</#macro>
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/entities.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/entities.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/entities.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/entities.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,46 @@
+<#macro listing entities iconsrc>
+<#list entities as entity>
+<p>
+<table class="collapsed">
+<thead>
+<tr>
+  <th class="thumb">
+    <img src="${iconsrc}" height="42" width="48" />
+  </th>
+  <th class="name">
+    <#if entity.uri?exists>
+    <a href="${entity.uri}" title="${entity.uri}">${entity.name}</a>
+    <#else>
+    ${entity.name}
+    </#if>
+  </th>
+</tr>
+</thead>
+<tbody>
+<#if entity.suggestions?size != 0>
+<tr class="subheader">
+  <td colspan="2">Referenced entities</td>
+</tr>
+</#if>
+<#list entity.suggestions as suggestion>
+<tr>
+  <td><img src="${iconsrc}" height="42" width="48" /></td>
+  <td><a href="${suggestion.uri}" title="${suggestion.uri}" class="external">${suggestion.label}</a></td>
+</tr>
+</#list>
+<#if entity.mentions?size != 0>
+<tr class="subheader">
+  <td colspan="2">Mentions</td>
+</tr>
+</#if>
+<#list entity.mentions as mention>
+<tr>
+  <td></td>
+  <td>${mention}</td>
+</tr>
+</#list>
+</tbody>
+</table>
+</p>
+</#list>
+</#macro>
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/kres.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/kres.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/kres.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/kres.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,18 @@
+<#macro form>
+<form id="sparql" action="/kres" method="POST"
+ enctype="application/x-www-form-urlencoded"
+ accept="application/sparql-results+xml, application/rdf+xml">
+<input type="text" class="url" name="databaseName" value="" >Database Name for NGraph</Input
+<input type="text" class="url" name="namespace" value="" >Triples namespace
+<input type="text" class="url" name="phisicalDBName" value="" >Phisical DB Name
+<input type="text" class="url" name="jdbcDriver" value="" >JDBC Driver
+<input type="text" class="url" name="protocol" value="" >Protocol
+<input type="text" class="url" name="host" value="" >Host
+<input type="text" class="url" name="port" value="" >Port
+<input type="text" class="url" name="username" value="" >Username
+<input type="text" class="url" name="password" value="" >Password
+<p><input type="submit" class="submit" value="RDB Reengineering"/></p>
+<pre class="prettyprint result" style="max-height: 200px; display: none" disabled="disabled">
+</pre>
+</form>
+</#macro>
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/sparql.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/sparql.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/sparql.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/imports/sparql.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,49 @@
+<#macro form>
+<form id="sparql" action="/sparql" method="GET"
+ enctype="application/x-www-form-urlencoded"
+ accept="application/sparql-results+xml, application/rdf+xml">
+<textarea class="query" rows="11" name="query">
+PREFIX fise: &lt;http://fise.iks-project.eu/ontology/&gt;
+PREFIX dc:   &lt;http://purl.org/dc/terms/&gt;
+SELECT distinct ?enhancement ?content ?engine ?extraction_time
+WHERE {
+  ?enhancement a fise:Enhancement .
+  ?enhancement fise:extracted-from ?content .
+  ?enhancement dc:creator ?engine .
+  ?enhancement dc:created ?extraction_time .
+}
+ORDER BY DESC(?extraction_time) LIMIT 5
+</textarea>
+<p><input type="submit" class="submit" value="Run SPARQL query" /></p>
+<pre class="prettyprint result" style="max-height: 200px; display: none" disabled="disabled">
+</pre>
+</form>
+<script language="javascript"><!--
+function registersSparqlHandler() {
+   $("#sparql input.submit", this).click(function(e) {
+     // disable regular form click
+     e.preventDefault();
+     
+     // clean the result area
+     $("#sparql textarea.result").text('');
+     
+     // submit sparql query using Ajax
+     $.ajax({
+       type: "POST",
+       url: "/sparql",
+       data: {query: $("#sparql textarea.query").val()},
+       dataType: "html",
+       cache: false,
+       success: function(result) {
+         $("#sparql pre.result").text(result).css("display", "block");
+         prettyPrint();
+       },
+       error: function(result) {
+         $("#sparql pre.result").text('Invalid query.').css("display", "block");
+       }
+     });
+   });
+ }
+ $(document).ready(registersSparqlHandler);
+--></script>
+</#macro>
\ No newline at end of file

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/manager/Recipe/index.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/manager/Recipe/index.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/manager/Recipe/index.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/manager/Recipe/index.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,12 @@
+<#import "/imports/common.ftl" as common>
+<#escape x as x?html>
+<@common.page title="Recipes and Rules">
+
+<div class="contentTag">
+<div class="menuLeft">Recipes stored <span id="addRecipe" class="hide"><a href="javascript:var recipe = new Recipe(); recipe.displayAddBox()" alt="add recipe"><img src="/kres/static/images/add.gif"</a><span></div>
+<div class="menuRightText"><a id="action" href="javascript:listRecipes()">view</a></div>
+<div id="recipeList"></div>
+</div>
+
+</...@common.page>
+</#escape>

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/DocumentationResource/index.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/DocumentationResource/index.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/DocumentationResource/index.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/DocumentationResource/index.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,20 @@
+<#import "/imports/common.ftl" as common>
+<#escape x as x?html>
+<@common.page title="KReS Documentation">
+
+<div class="contentTag">
+
+<p>Javadoc documentation is available <a href="${it.javadoc}" alt="Javadoc">here</a></p>
+<p>The delivarable about the KReS Alpha is available <a href="${it.alphaReleaseDocumentation}" alt="Javadoc">here</a></p>
+<p>The delivarable about the requirements that drove the implementation of the KReS Alpha is available <a href="${it.requirementsReleaseDocumentation}" alt="Javadoc">here</a></p>
+<p>The SVN repository can be browsed <a href="${it.alphaReleaseCode}" alt="Javadoc">here</a>.<br>
+To checkout the code from the SVN repository you can copy and past in your terminal the following code:<br>
+<div class="indent"><code>svn co ${it.alphaReleaseCode}</code></div>
+</p>
+
+</div>
+
+
+
+</...@common.page>
+</#escape>

Added: incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/KReSResource/index.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/KReSResource/index.ftl?rev=1083505&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/KReSResource/index.ftl (added)
+++ incubator/stanbol/trunk/kres/jersey/src/main/resources/META-INF/templates/org/apache/stanbol/kres/jersey/resource/KReSResource/index.ftl Sun Mar 20 17:01:32 2011
@@ -0,0 +1,23 @@
+<#import "/imports/common.ftl" as common>
+<#escape x as x?html>
+<@common.page title="About KReS...">
+
+<p>The Knowledge Representation and Reasoning System (or short KReS) is a standalone set of software components 
+targeted at the realization of the vast majority of functionalities and requirements belonging to the IKS knowledge 
+management tier, as per IKS Deliverable D3.2 . The rationale behind it is to provide a controlled environment for 
+CMS developers and administrators to execute KR, rule management and reasoning tasks for managing their content. 
+Here, the notion of "controlled environment" indicates the ability to provide each user with all and only the knowledge 
+and semantic services required within their business setting, despite the fact that KReS as a whole is always able to 
+deliver additional services on demand.</p>
+
+<p>The knowledge representation and reasoning capabilities of KReS span from loading, querying, storing and applying 
+OWL ontologies and SWRL rule sets to executing rules and applying simple and composite Description Logic reasoning, 
+along with reengineering and alignment of Linked Data and other models (such as DOM trees and relational databases) 
+with the content stored by a CMS.</p>
+
+<p>The initial KReS alpha provides both Java and RESTful APIs for the most basic functionalities that allow for some 
+knowledge representation and reasoning capabilities along with an early, strictly closed-compartment-like implementation 
+of the controlled environment management of ontologies and rules.</p>
+
+</...@common.page>
+</#escape>