Author: reto
Date: Sun Mar 27 17:48:16 2011
New Revision: 1085996

URL: http://svn.apache.org/viewvc?rev=1085996&view=rev
Log:
CLEREZZA-448: made it a theme for clerezza, adapted readme

Added:
    incubator/clerezza/site/trunk/pom.xml
    incubator/clerezza/site/trunk/src/
    incubator/clerezza/site/trunk/src/main/
    incubator/clerezza/site/trunk/src/main/resources/
    incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/
    incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/architecture/
      - copied from r1085680, incubator/clerezza/site/trunk/architecture/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/downloads/
      - copied from r1085680, incubator/clerezza/site/trunk/downloads/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/faq/
      - copied from r1085680, incubator/clerezza/site/trunk/faq/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/getting-started/
      - copied from r1085680, incubator/clerezza/site/trunk/getting-started/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/images/
      - copied from r1085680, incubator/clerezza/site/trunk/images/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/index.html
      - copied unchanged from r1085680, incubator/clerezza/site/trunk/index.html
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/mailinglists/
      - copied from r1085680, incubator/clerezza/site/trunk/mailinglists/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/style/
      - copied from r1085680, incubator/clerezza/site/trunk/style/
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/titillium/
      - copied from r1085680, incubator/clerezza/site/trunk/titillium/
    incubator/clerezza/site/trunk/src/main/scala/
    incubator/clerezza/site/trunk/src/main/scala/Activator.scala
    incubator/clerezza/site/trunk/src/main/scala/HeadedPageRenderlet.scala
    incubator/clerezza/site/trunk/src/main/scala/Ontology.scala
Removed:
    incubator/clerezza/site/trunk/architecture/
    incubator/clerezza/site/trunk/downloads/
    incubator/clerezza/site/trunk/faq/
    incubator/clerezza/site/trunk/getting-started/
    incubator/clerezza/site/trunk/images/
    incubator/clerezza/site/trunk/index.html
    incubator/clerezza/site/trunk/mailinglists/
    incubator/clerezza/site/trunk/style/
    incubator/clerezza/site/trunk/titillium/
Modified:
    incubator/clerezza/site/trunk/   (props changed)
    incubator/clerezza/site/trunk/graph.nt
    incubator/clerezza/site/trunk/readme.txt
    
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/style/style.css

Propchange: incubator/clerezza/site/trunk/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Mar 27 17:48:16 2011
@@ -0,0 +1 @@
+target

Modified: incubator/clerezza/site/trunk/graph.nt
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/graph.nt?rev=1085996&r1=1085995&r2=1085996&view=diff
==============================================================================
--- incubator/clerezza/site/trunk/graph.nt (original)
+++ incubator/clerezza/site/trunk/graph.nt Sun Mar 27 17:48:16 2011
@@ -1,6 +1,6 @@
 <http://localhost:8080/> <http://clerezza.org/2009/09/hierarchy#members> 
_:2d7f383e72651f1469e7dd5b4e9f08701 . 
 <http://localhost:8080/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://clerezza.org/2009/09/hierarchy#Collection> .
-<http://localhost:8080/content-el/0> <http://discobits.org/ontology#infoBit> 
"ApachClerezza is an OSGi-based modular application and set of components 
(bundles) for building RESTFul Semantic Web applications and services.<br 
xmlns=\"http://www.w3.org/1999/xhtml\";></br>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
+<http://localhost:8080/content-el/0> <http://discobits.org/ontology#infoBit> 
"<div xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"column 
one-column\">\n\t\t\t\tClerezza is a service platform based on OSGi (Open 
Services Gateway initiative) which provides a set of functionality for 
management of semantically linked data accessable through RESTful Web Services 
and in a secured way.\n\t\t\t\tFurthermore, Clerezza allows to easily develop 
semantic web applications by providing tools to manipulate RDF data, create 
RESTful Web Services and Renderlets using 
ScalaServerPages.\n\t\t\t\t<br></br>\n\t\t\t\t<br></br>Contents are stored as 
triples based on <a href=\"http://www.w3.org/TR/2004/REC-rdf-primer-20040210/\"; 
target=\"_blank\">W3C RDF specification</a>. These triples are stored via 
Clerezza\u2019s Smart Content Binding (SCB). SCB defines a technology-agnostic 
layer to access and modify triple stores. It provides a java implementation of 
the graph data model specified by W3C RDF 
 and functionalities to operate on that data model. SCB offers a service 
interface to access multiple named graphs and it can use various weighted 
providers to manage RDF graphs in a technology specific manner, e.g., using 
Jena  or Sesame. It also provides for adaptors that allow an application to use 
Jena or Sesame APIs to process RDF graphs. Furthermore, SCB offers a 
serialization and a parsing service to convert a graph into a certain 
representation (format) and vice 
versa.\n\t\t\t</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 <http://localhost:8080/content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <http://localhost:8080/content-el/1-content-el/0> 
<http://discobits.org/ontology#infoBit> "Apache Clerezza allows to easily 
develop semantic web application by providing the following:<ul 
xmlns=\"http://www.w3.org/1999/xhtml\";><li>An API to access RDF 
Graphs</li><li>A Jax RS implementation</li><li>TypeHandlers: Jax-RS resources 
bound to an RDF type</li><li>Renderlets to create various represenattions from 
RDF resources, ScalaServerPages allow to easily write renderlets in 
Scala</li></ul>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 <http://localhost:8080/content-el/1-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
@@ -10,7 +10,9 @@
 <http://localhost:8080/content-el/1-title> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <http://localhost:8080/content-el/1> <http://discobits.org/ontology#contains> 
_:55507095b65418d3fd56589570c018151 . 
 <http://localhost:8080/content-el/1> <http://discobits.org/ontology#contains> 
_:829f2db6b156c0fe3dc22fe7674f43531 . 
+<http://localhost:8080/content-el/1> <http://discobits.org/ontology#infoBit> 
"<div xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"column 
first-column\">\n\t\t\t\t<h2>Apache Clerezza in <strong>5 Bullet 
Points</strong></h2>\n\n\t\t\t\t<ul>\n\t\t\t\t\t<li><div>OSGi-based 
Platform</div></li>\n\t\t\t\t\t<li><div>RESTful Web Service Framework</div> 
</li>\n\t\t\t\t\t<li><div>Based on W3C 
Standard</div></li>\n\t\t\t\t\t<li><div>Database/Triple Store 
independent</div></li>\n\t\t\t\t\t<li><div>Scripting Support (JSR 223 
compatible)</div></li>\n\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div 
xmlns=\"http://www.w3.org/1999/xhtml\"; class=\"column 
second-column\">\n\t\t\t\t<h2>Apache Clerezza for 
<strong>Developers</strong></h2>\n\t\t\t\tApache Clerezza allows to easily 
develop semantic web application by providing the 
following:\n\t\t\t\t<ul>\n\t\t\t\t\t<li><div>An API to access RDF 
Graphs</div></li>\n\t\t\t\t\t<li><div>SPARQL Support</div> 
</li>\n\n\t\t\t\t\t<li><div>A JAX-RS implementation<
 /div> </li>\n\t\t\t\t\t<li><div>TypeHandlers: JAX-RS resources bound to an RDF 
type</div></li>\n\t\t\t\t\t<li><div>Renderlets to create various 
representations from RDF resources, ScalaServerPages allows to easily write 
renderlets in Scala</div></li>\n\t\t\t\t\t<li><div>Scripting in Scala on the <a 
href=\"http://incubator.apache.org/clerezza/getting-started/shell/\"; 
target=\"_blank\">Clerezza 
Console</a></div></li>\n\t\t\t\t</ul>\n\n\t\t\t</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
 <http://localhost:8080/content-el/1> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
+<http://localhost:8080/content-el/1> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <http://localhost:8080/content-el/2-content-el/0> 
<http://discobits.org/ontology#infoBit> "<div 
xmlns=\"http://www.w3.org/1999/xhtml\";>Clerezza documentation is available on 
every clerezza instance for the active bundles at 
http://host:port/documentation, a copy is also available on this server: <a 
href=\"/documentation\">documentation</a></div>\n<div 
xmlns=\"http://www.w3.org/1999/xhtml\";>Maven generated site: <a 
href=\"http://incubator.apache.org/clerezza/mvn-site\";>http://incubator.apache.org/clerezza/mvn-site/</a></div>\n"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
 <http://localhost:8080/content-el/2-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <http://localhost:8080/content-el/2-content-el/1> 
<http://discobits.org/ontology#infoBit> "<a 
xmlns=\"http://www.w3.org/1999/xhtml\"; 
href=\"getting-started/\">Getting-Started</a>: A mini howto describing the 
compilation process and how to install a mini 
application"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
@@ -40,10 +42,7 @@
 <http://localhost:8080/content-el/3> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
 <http://localhost:8080/content-el/4> <http://discobits.org/ontology#infoBit> 
"<img xmlns=\"http://www.w3.org/1999/xhtml\"; 
src=\"/images/sw-horz-w3c.png\"></img>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
 <http://localhost:8080/content-el/4> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<http://localhost:8080/content> <http://discobits.org/ontology#contains> 
_:397460d01fd460ccd57d57abb57f1bf51 . 
-<http://localhost:8080/content> <http://discobits.org/ontology#contains> 
_:398363a9569ce48089801a360888375f1 . 
 <http://localhost:8080/content> <http://discobits.org/ontology#contains> 
_:aac2a6fb0229ba69a9ef6a42feabf2ef1 . 
-<http://localhost:8080/content> <http://discobits.org/ontology#contains> 
_:db7e7c4b8075a221ddc5b2ee94cfd9461 . 
 <http://localhost:8080/content> <http://discobits.org/ontology#contains> 
_:fc4727e708c988cfc46b2277c43250a61 . 
 <http://localhost:8080/content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
 <http://localhost:8080/documentation/> 
<http://discobits.org/ontology#contains> _:48451ad3fb48ef0bd88b695fc4d7d0fb1 . 
@@ -65,7 +64,7 @@
 <http://localhost:8080/faq/index> <http://discobits.org/ontology#contains> 
_:c4383b1639cb1dde13468cd4b8588c0b1 . 
 <http://localhost:8080/faq/index> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#TitledContent> .
 <http://localhost:8080/getting-started/> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://clerezza.org/2009/09/hierarchy#Collection> .
-<http://localhost:8080/getting-started/index-content-el/0> 
<http://discobits.org/ontology#infoBit> "<ul 
xmlns=\"http://www.w3.org/1999/xhtml\";>\n<li> Building the code:\n        
<ul><li> svn co http://svn.apache.org/repos/asf/incubator/clerezza/</li>\n      
  <li> cd scala-scripting</li>\n        <li> mvn clean install</li>\n        
<li> cd ..</li>\n        <li> cd org.apache.clerezza.parent</li>\n        <li> 
mvn clean install -Dmaven.test.skip=true\n              + NB - Skipping tests 
because of the hang, here:\n                
https://issues.apache.org/jira/browse/CLEREZZA-326</li></ul></li>\n  <li> Start 
clerezza:\n        <ul><li> cd 
org.apache.clerezza.platform.launcher.tdb/target</li>\n        <li> java 
-XX:MaxPermSize=256m -jar\n          
org.apache.clerezza.platform.launcher.tdb-0.5-incubating-SNAPSHOT.jar\n         
 (ignore an exception message about missing keystore)</li>\n        <li> You 
should now have clerezza running on port 8080. Navigate\n          to http:
 //localhost:8080/</li></ul></li>\n  <li> Running a HelloWorld app:\n        
<ul><li>cd trunk/maven-archetypes/java-ssp-ttl/</li>\n        <li> mvn clean 
install -o</li>\n        <li> You have now compiled the demo/skeleton 
consisting of two\n          bundles (ontologies and core)</li></ul></li>\n  
<li> Install the app bundles:\n        <ul><li>Go back to the terminal where 
clerezza is running (pressing\n          Enter should reveal the OSGi console 
prompt \"-&gt;\"), and enter</li>\n        <li> start 
mvn:org.apache.clerezza.java-ssp-ttl-skeleton/ontologies</li>\n        <li> 
start mvn:org.apache.clerezza.java-ssp-ttl-skeleton/core</li></ul></li>\n  <li> 
Check that things are working correctly:\n       <ul><li> Point browser to: 
http://localhost:8080/greeting/manager\n        <li> Enter a URI at which you 
want to create a greeting page,\n          e.g. 
http://localhost:8080/hello-world</li>\n        <li> Enter the \"Hello World\" 
word</li>\n        <li> Press submit, if as
 ked for a user/password enter \"admin\"\n          twice (the next step would 
be to create a WebId for secure\n          log-in without password)</li>\n      
  <li> Point the browser to the newly created greeting-resource</li>\n          
(like 
http://localhost:8080/hello-world)</li></ul></li>\n</ul>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
+<http://localhost:8080/getting-started/index-content-el/0> 
<http://discobits.org/ontology#infoBit> "<p 
xmlns=\"http://www.w3.org/1999/xhtml\";>For first-time users, here are a few 
links that might get you started more quickly:</p>\n\t\t\t\t<ul 
xmlns=\"http://www.w3.org/1999/xhtml\";>\n\t\t\t\t\t<li><div><a 
href=\"../downloads/\">Downloads</a> - Download 
Clerezza.</div></li>\n\t\t\t\t\t<li><div><a 
href=\"building-clerezza/\">Building Clerezza</a> - Learn how to build 
Clerezza.</div></li>\n\n\t\t\t\t\t<li><div><a 
href=\"launching-clerezza/\">Launching Clerezza</a> - Learn how to launch 
Clerezza.</div></li>\n\t\t\t\t\t<li><div><a 
href=\"/getting-started/shell/\">Clerezza Console</a> - Learn how to use the 
Console.</div></li>\n\t\t\t\t\t<li><div><a href=\"/documentation/\">Clerezza 
Documenation</a> - Clerezza Platform provides a documentation available under 
<a 
href=\"http://localhost:8080/documentation\";>http://localhost:8080/documentation</a>.
 This documentation is also availabl
 e on this website.</div></li>\n\n\t\t\t\t\t<li><div><a 
href=\"http://incubator.apache.org/clerezza/mvn-site/org.apache.clerezza.triaxrs.parent/org.apache.clerezza.triaxrs/documentation/tutorial_1.xhtml\";
 target=\"_blank\">RESTful Web Service Framework (JAX-RS) Tutorial</a> - Learn 
how to develop Web Services with Clerezza.</div></li>\n\t\t\t\t\t<li><div><a 
href=\"http://incubator.apache.org/clerezza/mvn-site/org.apache.clerezza.rdf.core/documentation/tutorial_1.xhtml\";
 target=\"_blank\">RDF Tutorial</a> - Learn how to retrieve and store RDF 
data.</div></li>\n\t\t\t\t\t<li><div><a 
href=\"http://incubator.apache.org/clerezza/mvn-site/org.apache.clerezza.rdf.core/documentation/scb-triaxrs-tutorial.xhtml\";
 target=\"_blank\">Tutorial: Combining JAX-RS and RDF</a> - Learn how to 
develop RDF backed RESTful applications.</div></li>\n\t\t\t\t\t<li><div><a 
href=\"http://felix.apache.org/site/apache-felix-osgi-tutorial.html\"; 
target=\"_blank\">Felix OSGi tutorial</a> - Go to the tutori
 al page to learn some OSGi basics.</div></li>\n\n\t\t\t\t\t<li><div><a 
href=\"http://felix.apache.org/site/apache-felix-osgi-faq.html\"; 
target=\"_blank\">Felix OSGi FAQ</a> - Check out the OSGi FAQ for answers to 
common 
questions.&gt;</div></li>\n\t\t\t\t</ul>\n"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
 .
 <http://localhost:8080/getting-started/index-content-el/0> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <http://localhost:8080/getting-started/index-content> 
<http://discobits.org/ontology#contains> _:9e78aec795befa9d7bd75c2b15a3bc2e1 . 
 <http://localhost:8080/getting-started/index-content> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#OrderedContent> .
@@ -198,12 +197,6 @@ _:30863aa097f8ef77f9f58629536ff53f1 <htt
 _:38f582ffbe0d2c52c37f69789ca0716f1 <http://discobits.org/ontology#holds> 
<http://localhost:8080/content-el/2-content> . 
 _:38f582ffbe0d2c52c37f69789ca0716f1 <http://discobits.org/ontology#pos> "1" . 
 _:38f582ffbe0d2c52c37f69789ca0716f1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
-_:397460d01fd460ccd57d57abb57f1bf51 <http://discobits.org/ontology#holds> 
<http://localhost:8080/content-el/2> . 
-_:397460d01fd460ccd57d57abb57f1bf51 <http://discobits.org/ontology#pos> "2" . 
-_:397460d01fd460ccd57d57abb57f1bf51 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
-_:398363a9569ce48089801a360888375f1 <http://discobits.org/ontology#holds> 
<http://localhost:8080/content-el/3> . 
-_:398363a9569ce48089801a360888375f1 <http://discobits.org/ontology#pos> "3" . 
-_:398363a9569ce48089801a360888375f1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
 _:410129d932f3068bdcf1a306d3ad97cb1 
<http://clerezza.org/2009/06/custompropery#category> 
<http://clerezza.org/2008/10/permission#Role> . 
 _:410129d932f3068bdcf1a306d3ad97cb1 
<http://clerezza.org/2009/06/custompropery#categoryproperty> 
"DefaultRole"^^<http://www.w3.org/2001/XMLSchema#string> . 
 _:410129d932f3068bdcf1a306d3ad97cb1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://clerezza.org/2009/06/custompropery#CustomFieldCollection> . 
@@ -320,9 +313,6 @@ _:c6cf7677baf6648625092e492d69813b1 <htt
 _:d5a79557f0b9e9f8f09076917d9f07fd1 <http://discobits.org/ontology#holds> 
<http://localhost:8080/content-el/2-content-el/1> . 
 _:d5a79557f0b9e9f8f09076917d9f07fd1 <http://discobits.org/ontology#pos> "1" . 
 _:d5a79557f0b9e9f8f09076917d9f07fd1 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
-_:db7e7c4b8075a221ddc5b2ee94cfd9461 <http://discobits.org/ontology#holds> 
<http://localhost:8080/content-el/4> . 
-_:db7e7c4b8075a221ddc5b2ee94cfd9461 <http://discobits.org/ontology#pos> "4" . 
-_:db7e7c4b8075a221ddc5b2ee94cfd9461 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 
 _:dc1e79a8481e5530352bf35fbb0ff9f41 <http://discobits.org/ontology#holds> 
<http://localhost:8080/getting-started/shell/title> . 
 _:dc1e79a8481e5530352bf35fbb0ff9f41 <http://discobits.org/ontology#pos> "0" . 
 _:dc1e79a8481e5530352bf35fbb0ff9f41 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://discobits.org/ontology#Entry> . 

Added: incubator/clerezza/site/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/pom.xml?rev=1085996&view=auto
==============================================================================
--- incubator/clerezza/site/trunk/pom.xml (added)
+++ incubator/clerezza/site/trunk/pom.xml Sun Mar 27 17:48:16 2011
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><project 
xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.apache.clerezza</groupId>
+               <artifactId>parent</artifactId>
+               <version>0.2-incubating-SNAPSHOT</version>
+       </parent>
+       <artifactId>website</artifactId>
+       <version>0.1-incubating-SNAPSHOT</version>
+       <packaging>bundle</packaging>
+       <name>Clerezza - Website</name>
+       <dependencies>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.compendium</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+               </dependency>
+        <dependency>
+                       <groupId>org.apache.clerezza</groupId>
+                       <artifactId>platform.typerendering.core</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.clerezza</groupId>
+                       <artifactId>platform.typerendering.scala</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.clerezza</groupId>
+                       <artifactId>rdf.ontologies</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.clerezza</groupId>
+                       <artifactId>rdf.utils</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.clerezza</groupId>
+                       <artifactId>rdf.scala.utils</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.clerezza</groupId>
+                       <artifactId>osgi.services</artifactId>
+               </dependency>
+        <dependency>
+                       <groupId>org.scala-lang</groupId>
+                       <artifactId>scala-library</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>javax.ws.rs</groupId>
+                       <artifactId>jsr311-api</artifactId>
+        </dependency>
+       </dependencies>
+       <build>
+               <sourceDirectory>src/main/scala</sourceDirectory>
+    <testSourceDirectory>src/test/scala</testSourceDirectory>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <configuration>
+                                       <instructions>
+                                               
<Bundle-activator>skeleton.Activator</Bundle-activator>
+                                               
<Export-Package>skeleton</Export-Package>
+                                               
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-eclipse-plugin</artifactId>
+                               <configuration>
+                                       <downloadSources>true</downloadSources>
+                                       
<downloadJavadocs>true</downloadJavadocs>
+                                       <buildcommands>
+                                               
<buildcommand>ch.epfl.lamp.sdt.core.scalabuilder</buildcommand>
+                                       </buildcommands>
+                                       <additionalProjectnatures>
+                                               
<projectnature>ch.epfl.lamp.sdt.core.scalanature</projectnature>
+                                       </additionalProjectnatures>
+                                       <classpathContainers>
+                                               
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER
+                                               </classpathContainer>
+                                               
<classpathContainer>ch.epfl.lamp.sdt.launching.SCALA_CONTAINER
+                                               </classpathContainer>
+                                       </classpathContainers>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.scala-tools</groupId>
+                               <artifactId>maven-scala-plugin</artifactId>
+                       </plugin>
+               </plugins>
+       </build>
+</project>
+
+

Modified: incubator/clerezza/site/trunk/readme.txt
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/readme.txt?rev=1085996&r1=1085995&r2=1085996&view=diff
==============================================================================
--- incubator/clerezza/site/trunk/readme.txt (original)
+++ incubator/clerezza/site/trunk/readme.txt Sun Mar 27 17:48:16 2011
@@ -1,8 +1,9 @@
 - start clerezza on localhost:8080
 - install offline-generation bundle with: 
start("mvn:org.apache.clerezza/tools.offline")
-- install stable serialization bundle with: 
start("mvn:org.apache.clerezza/rdf.stable.serializer") 
+- install stable serialization bundle with: 
start("mvn:org.apache.clerezza/rdf.stable.serializer")
+- install the directoty with the site project (the directory containing this 
readme) with: Dev load "/path/to/apache/clerezza/site/trunk"
 - go to http://localhost:8080/graph/upload-form, replace 
http://tpf.localhost/content.graph with graph.nt (note: you may need to make 
sure your operating system or browser associated the file-extensison .nt to 
text/rdf+nt)
-- change the site as needed, do not create pages ending with /, create a page 
ending with /index instead, the entry page is http://localhost:8080/index (you 
may use http://localhost:8080/tools/editor to edit it)
+- change the site as needed, do not create pages ending with /, create a page 
ending with /index instead, the entry page is http://localhost:8080/index (you 
may open http://localhost:8080/tools/editor with firefox to edit it)
 - retrieve a zipped offline version from 
http://localhost:8080/admin/offline/download?baseUri=http://localhost:8080/&targetUri=http://incubator.apache.org/clerezza/&formatExtension=xhtml&formatExtension=rdf&formatExtension=png&formatExtension=html&formatExtension=js&formatExtension=jpeg&rootLinkPrefix=/clerezza
 - scp site<id>.zip  people.apache.org:/www/incubator.apache.org/clerezza
 - on people.apache.org: unzip -o site<id>.zip

Modified: 
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/style/style.css
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/style/style.css?rev=1085996&r1=1085680&r2=1085996&view=diff
==============================================================================
--- 
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/style/style.css
 (original)
+++ 
incubator/clerezza/site/trunk/src/main/resources/CLEREZZA-INF/web-resources/style/style.css
 Sun Mar 27 17:48:16 2011
@@ -164,6 +164,7 @@ li div,span {
        color: #98bf0e;
        padding-bottom: 0.5em;
        border-bottom: 2px solid #98bf0e;
+       text-transform: uppercase
 }
 
 .top-nav-entry ul > li {
@@ -274,6 +275,7 @@ li div,span {
        padding-top: 1.875em;
        color: #ffffff;
        width:192px;
+       text-transform: uppercase
 }
 
 .footer .sitemap-content {
@@ -301,6 +303,7 @@ li div,span {
 .footer .sitemap-column .title {
        font-family: Titillium Text, Arial, Helvetica;
        margin-bottom:2.625em;
+       text-transform: uppercase
 }
 
 .footer .sitemap-column ul {

Added: incubator/clerezza/site/trunk/src/main/scala/Activator.scala
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/src/main/scala/Activator.scala?rev=1085996&view=auto
==============================================================================
--- incubator/clerezza/site/trunk/src/main/scala/Activator.scala (added)
+++ incubator/clerezza/site/trunk/src/main/scala/Activator.scala Sun Mar 27 
17:48:16 2011
@@ -0,0 +1,33 @@
+package org.apache.clerezza.site
+
+import org.osgi.framework.{BundleActivator, BundleContext, ServiceRegistration}
+import scala.collection.JavaConversions.asJavaDictionary
+import org.apache.clerezza.platform.typerendering.{TypeRenderlet, 
RenderletManager}
+
+/**
+ * Activator for a bundle using Apache Clerezza.
+ */
+class Activator extends BundleActivator {
+
+       var renderletRegistration: ServiceRegistration = null
+       /**
+        * called when the bundle is started, this method initializes the 
provided service
+        */
+       def start(context: BundleContext) {
+
+               val renderlet = new HeadedPageRenderlet
+               val serviceReference = 
context.getServiceReference(classOf[RenderletManager].getName)
+               renderletRegistration = 
context.registerService(classOf[TypeRenderlet].getName,
+                                                                               
                  renderlet, null)
+               println("enjoy it the site")
+       }
+
+       /**
+        * called when the bundle is stopped, this method unregisters the 
provided service
+        */
+       def stop(context: BundleContext) {
+               renderletRegistration.unregister()
+               println("bye")
+       }
+
+}

Added: incubator/clerezza/site/trunk/src/main/scala/HeadedPageRenderlet.scala
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/src/main/scala/HeadedPageRenderlet.scala?rev=1085996&view=auto
==============================================================================
--- incubator/clerezza/site/trunk/src/main/scala/HeadedPageRenderlet.scala 
(added)
+++ incubator/clerezza/site/trunk/src/main/scala/HeadedPageRenderlet.scala Sun 
Mar 27 17:48:16 2011
@@ -0,0 +1,138 @@
+package org.apache.clerezza.site
+
+import javax.ws.rs.core.MediaType
+import org.apache.clerezza.platform.typerendering._
+import org.apache.clerezza.rdf.core.UriRef
+import org.apache.clerezza.rdf.utils.GraphNode
+import org.apache.clerezza.rdf.ontologies._
+import org.apache.clerezza.rdf.core._
+import org.apache.clerezza.rdf.utils._
+import org.apache.clerezza.rdf.scala.utils.Preamble._
+import org.apache.clerezza.platform.typerendering.scala._
+import org.apache.clerezza.rdf.ontologies.DC
+
+/**
+ * A Renderlet for the menu
+ */
+class HeadedPageRenderlet extends SRenderlet {
+
+       val getRdfType = DISCOBITS.TitledContent
+
+       override def getModePattern = null
+
+       override def renderedPage(arguments: XmlResult.Arguments) = {
+               new XmlResult(arguments) {
+                       override def content = {
+                               <html xmlns="http://www.w3.org/1999/xhtml";>
+                                       <head>
+                                               <link type="text/css" 
href="/style/style.css" rel="stylesheet" />
+                                               
{(res/DISCOBITS.contains).find(e => ((e/DISCOBITS.pos*) == "0")) match {
+                                                               case Some(e) => 
<title>{render(e/DISCOBITS.holds, "naked")}</title>
+                                                               case None => 
<title>An incomplite titled content {res/DISCOBITS.contains*}</title>
+                                                       }
+                                               }
+                                       </head>
+                                       <body>
+                                               <div class="header">
+
+                                                       <div class="bar"></div>
+                                                       <div class="logo">
+                                                               <a 
href="http://incubator.apache.org/clerezza/"; style=""><img 
src="/images/logo.png" alt="logo" /></a>
+                                                       </div>
+                                               </div>
+                                               <div class="column nav">
+                                                       <ul>
+                                                               <li 
class="top-nav-entry"><div class="title">Documentation</div>
+
+                                                                       <ul 
class="nav-entries">
+                                                                               
<li><a href="/getting-started/">Getting Started</a></li>
+                                                                               
<li><a href="/architecture/">The Apache Clerezza Stack</a></li>
+                                                                               
<li><a href="http://incubator.apache.org/clerezza/mvn-site"; target="_blank">API 
docs</a></li>
+                                                                               
<li><a href="/faq/">FAQ</a></li>
+                                                                       </ul>
+                                                               </li>
+
+                                                               <li 
class="top-nav-entry"><div class="title">Project Infos</div>
+                                                                       <ul  
class="nav-entries">
+                                                                               
<li><a href="/downloads/">Downloads</a></li>
+                                                                               
<li><a href="http://www.apache.org/licenses/"; target="_blank">License</a></li>
+                                                                               
<li><a href="/mailinglists/">Mailing lists</a></li>
+                                                                               
<li><a href="http://issues.apache.org/jira/browse/CLEREZZA"; 
target="_blank">Issue Tracker</a></li>
+
+                                                                               
<li><a href="http://svn.apache.org/viewvc/incubator/clerezza/trunk/"; 
target="_blank">Source Repository</a></li>
+                                                                       </ul>
+                                                               </li>
+                                                               <li 
class="top-nav-entry"><div class="title">Sponsorship</div>
+                                                                       <ul  
class="nav-entries">
+                                                                               
<li><a href="http://www.apache.org/foundation/thanks.html"; 
target="_blank">Thanks</a></li>
+                                                                               
<li><a href="http://www.apache.org/foundation/sponsorship.html"; 
target="_blank">Become a Sponsor</a></li>
+
+                                                                               
<li><a href="http://www.apache.org/foundation/buy_stuff.html"; 
target="_blank">Buy Stuff</a></li>
+                                                                       </ul>
+                                                               </li>
+                                                       </ul>
+                                               </div>
+
+                                               <div class="content">
+                                                       {render(res, "naked")}
+                                               </div>
+                                               <div class="footer">
+                                                       <div class="logos"><img 
src="/images/feather.png" /><img src="/images/sw-vert-w3c.png" /><img 
src="/images/footer-logo.png" /></div>
+
+                                                       <div 
class="divider"></div>
+                                                       <div class="dark">
+                                                               <div 
class="sitemap">
+                                                                       <div 
class="sitemap-title">Sitemap</div>
+                                                                       <div 
class="sitemap-content">
+                                                                               
<div class="sitemap-column">
+                                                                               
        <div class="title" >Documentation</div>
+                                                                               
        <ul>
+
+                                                                               
                <li><a href="/getting-started/">Getting Started</a></li>
+                                                                               
                <li><a href="/architecture/">The Apache Clerezza Stack</a></li>
+                                                                               
                <li><a href="http://incubator.apache.org/clerezza/mvn-site"; 
target="_blank">API docs</a></li>
+                                                                               
                <li><a href="/faq/">FAQ</a></li>
+                                                                               
        </ul>
+
+                                                                               
</div>
+                                                                               
<div class="sitemap-column">
+
+                                                                               
        <div class="title" >Project Infos</div>
+                                                                               
        <ul >
+                                                                               
                <li><a href="/downloads/">Downloads</a></li>
+                                                                               
                <li><a href="http://www.apache.org/licenses/"; 
target="_blank">License</a></li>
+                                                                               
                <li><a href="mailinglists/">Mailing lists</a></li>
+                                                                               
                <li><a href="http://issues.apache.org/jira/browse/CLEREZZA"; 
target="_blank">Issue Tracker</a></li>
+
+                                                                               
                <li><a 
href="http://svn.apache.org/viewvc/incubator/clerezza/trunk/"; 
target="_blank">Source Repository</a></li>
+                                                                               
        </ul>
+                                                                               
</div>
+                                                                               
<div class="sitemap-column">
+                                                                               
        <div class="title" >Sponsorship</div>
+                                                                               
        <ul>
+                                                                               
                <li><a href="http://www.apache.org/foundation/thanks.html"; 
target="_blank">Thanks</a></li>
+
+                                                                               
                <li><a href="http://www.apache.org/foundation/sponsorship.html"; 
target="_blank">Become a Sponsor</a></li>
+                                                                               
                <li><a href="http://www.apache.org/foundation/buy_stuff.html"; 
target="_blank">Buy Stuff</a></li>
+                                                                               
        </ul>
+                                                                               
</div>
+                                                                       </div>
+
+                                                               </div>
+                                                               <div 
class="copyright">
+                                                                       <div 
class="copyright-text">Apache Clerezza, Clerezza, Apache, the Apache feather 
logo, and the Apache Clerezza project logo are trademarks of The Apache 
Software Foundation. <br/>
+
+                                                                               
© 2011 The Apache Software Foundation.
+                                                                       </div>
+                                                               </div>
+                                                       </div>
+                                               </div>
+
+
+                                       </body>
+                               </html>
+                       }
+               }
+       }
+
+}

Added: incubator/clerezza/site/trunk/src/main/scala/Ontology.scala
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/site/trunk/src/main/scala/Ontology.scala?rev=1085996&view=auto
==============================================================================
--- incubator/clerezza/site/trunk/src/main/scala/Ontology.scala (added)
+++ incubator/clerezza/site/trunk/src/main/scala/Ontology.scala Sun Mar 27 
17:48:16 2011
@@ -0,0 +1,12 @@
+package skeleton
+
+import org.apache.clerezza.rdf.core.UriRef
+
+object Ontology {
+
+       /**
+        * The uri for the RDF type of HelloWordMessage
+        */
+       val HelloWordMessageType = new 
UriRef("http://example.org/skeleton#HelloWordMessage";)
+
+}


Reply via email to