You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2013/02/19 13:52:00 UTC

[22/52] [partial] code contribution, initial import of relevant modules of LMF-3.0.0-SNAPSHOT based on revision 4bf944319368 of the default branch at https://code.google.com/p/lmf/

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/solr/index.jsp
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/solr/index.jsp b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/solr/index.jsp
new file mode 100644
index 0000000..585f56e
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/solr/index.jsp
@@ -0,0 +1,62 @@
+<%--
+
+    Copyright (C) 2013 Salzburg Research.
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+--%>
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<%--
+  ~ Copyright (c) 2008-2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  --%>
+
+<html>
+<head>
+<link rel="stylesheet" type="text/css" href="solr-admin.css">
+<link rel="icon" href="favicon.ico" type="image/ico"></link>
+<link rel="shortcut icon" href="favicon.ico" type="image/ico"></link>
+<title>Welcome to Solr</title>
+</head>
+
+<body>
+<h1>Welcome to Solr!</h1>
+<a href="."><img border="0" align="right" height="78" width="142" src="admin/solr_small.png" alt="Solr"/></a>
+
+<% 
+  org.apache.solr.core.CoreContainer cores = (org.apache.solr.core.CoreContainer)request.getAttribute("org.apache.solr.CoreContainer");
+  if( cores != null
+   && cores.getCores().size() > 0 // HACK! check that we have valid names...
+   && cores.getCores().iterator().next().getName().length() != 0 ) { 
+    for( org.apache.solr.core.SolrCore core : cores.getCores() ) {%>
+<a href="<%= core.getName() %>/admin/">Admin <%= core.getName() %></a><br/>
+<% }} else { %>
+<a href="admin">Solr Admin</a>
+<% } %>
+<!--<a href="admin/shortcuts/search.gsp">SOLR shortcuts</a>--><br/>
+
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml
new file mode 100644
index 0000000..1597d4e
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml
@@ -0,0 +1,29 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<beans
+   xmlns="http://java.sun.com/xml/ns/javaee"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="
+      http://java.sun.com/xml/ns/javaee
+      http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
+
+</beans>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml
new file mode 100644
index 0000000..2de4af0
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/META-INF/test-persistence.xml
@@ -0,0 +1,86 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
+             version="2.0">
+
+    <!--
+
+            resources/META-INF/persistence.xml.tmpl should be the only place you change anything
+            any of persistence.*.xml. After changing it, "ant configure"
+            copies it to all places it is needed.
+
+    -->
+
+    <persistence-unit name="KiWi" transaction-type="RESOURCE_LOCAL">
+
+        <class>kiwi.core.model.rdf.KiWiNode</class>
+        <class>kiwi.core.model.rdf.KiWiResource</class>
+        <class>kiwi.core.model.rdf.KiWiUriResource</class>
+        <class>kiwi.core.model.rdf.KiWiAnonResource</class>
+        <class>kiwi.core.model.rdf.KiWiLiteral</class>
+        <class>kiwi.core.model.rdf.KiWiStringLiteral</class>
+        <class>kiwi.core.model.rdf.KiWiIntLiteral</class>
+        <class>kiwi.core.model.rdf.KiWiDoubleLiteral</class>
+        <class>kiwi.core.model.rdf.KiWiTextContentLiteral</class>
+        <class>kiwi.core.model.rdf.KiWiMediaContentLiteral</class>
+
+        <class>kiwi.core.model.rdf.KiWiNamespace</class>
+        <class>kiwi.core.model.rdf.KiWiTriple</class>
+
+        <class>${package}.user.model.UserAccount</class>
+        <!--<class>kiwi.core.model.user.KiWiUser</class>-->
+        <!--<class>kiwi.core.model.user.KiWiGroup</class>-->
+        <!--<class>kiwi.core.model.user.Role</class>-->
+
+        <class>${package}.versioning.model.Version</class>
+
+        <properties>
+            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
+            <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
+            <property name="javax.persistence.jdbc.user" value="sa"/>
+            <property name="javax.persistence.jdbc.password" value="sa"/>
+            <property name="javax.persistence.jdbc.url" value="jdbc:h2:/tmp/kiwi-test/db/kiwi2;MVCC=true;DB_CLOSE_ON_EXIT=FALSE"/>
+
+
+            <!-- valid values are validate, update, create, create-drop -->
+            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+            <property name="hibernate.show_sql" value="false"/>
+            <property name="hibernate.format_sql" value="true"/>
+            <property name="hibernate.jdbc.fetch_size" value="30"/>
+            <property name="hibernate.jdbc.batch_size" value="30"/>
+            <property name="hibernate.default_batch_fetch_size" value="16" />
+            <property name="hibernate.max_fetch_depth" value="3" />
+
+            <!-- Without this statement seem Hibernate to come to "Cannot open connection" state at peak times (e.g. test) -->
+            <property name="hibernate.connection.release_mode" value="after_statement" />
+
+            <!--  caching -->
+            <property name="hibernate.cache.region.factory_class"
+                      value="net.sf.ehcache.hibernate.EhCacheRegionFactory"/>
+            <property name="hibernate.cache.use_query_cache" value="true" />
+            <property name="hibernate.cache.use_second_level_cache" value="true"/>
+            <property name="hibernate.cache.region_prefix" value=""/>
+        </properties>
+    </persistence-unit>
+</persistence>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/WEB-INF/test-web.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/WEB-INF/test-web.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/WEB-INF/test-web.xml
new file mode 100644
index 0000000..ee5f013
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/WEB-INF/test-web.xml
@@ -0,0 +1,191 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<web-app version="2.5"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+
+
+    <resource-env-ref>
+       <resource-env-ref-name>BeanManager</resource-env-ref-name>
+       <resource-env-ref-type>
+          javax.enterprise.inject.spi.BeanManager
+       </resource-env-ref-type>
+    </resource-env-ref>
+
+    <filter>
+        <filter-name>KiWiInitFilter</filter-name>
+        <filter-class>kiwi.core.servlet.KiWiResourceFilter</filter-class>
+        <init-param>
+            <param-name>kiwi.home</param-name>
+            <param-value>/tmp/kiwi-test</param-value>
+        </init-param>
+    </filter>
+    <filter-mapping>
+        <filter-name>KiWiInitFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
+
+	<!-- enable CDI / Weld for dependency injection -->
+	<listener>
+	   <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
+	</listener>
+		 
+
+	
+	<!--  
+	  RESTeasy Webservices 
+      
+      Every service in the package kiwi.core.webservices is offered automatically as REST webservice; add additional packages as required
+	-->
+	<listener>
+      <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
+    </listener>
+	
+	<!-- Startup the H2 database -->
+	<context-param>
+		<param-name>db.url</param-name>
+		<param-value>jdbc:h2:/tmp/kiwi-test/db/kiwi2;MVCC=true;DB_CLOSE_ON_EXIT=FALSE</param-value>
+	</context-param>
+	<context-param>
+		<param-name>db.user</param-name>
+		<param-value>sa</param-value>
+	</context-param>
+	<context-param>
+		<param-name>db.password</param-name>
+		<param-value>sa</param-value>
+	</context-param>
+	<context-param>
+		<param-name>db.tcpServer</param-name>
+		<param-value>-tcpAllowOthers</param-value>
+	</context-param>
+	<listener>
+	    <listener-class>org.h2.server.web.DbStarter</listener-class>
+	</listener>
+	<servlet>
+		<servlet-name>H2Console</servlet-name>
+		<servlet-class>org.h2.server.web.WebServlet</servlet-class>
+		<!-- <init-param> <param-name>webAllowOthers</param-name> <param-value></param-value> </init-param> 
+			<init-param> <param-name>trace</param-name> <param-value></param-value> </init-param> -->
+		<load-on-startup>1</load-on-startup>
+	</servlet>
+	<servlet-mapping>
+		<servlet-name>H2Console</servlet-name>
+		<url-pattern>/h2/*</url-pattern>
+	</servlet-mapping>
+	
+
+     <!-- *************************************************************************************************** -->
+     <!-- Apache SOLR                                                                                         -->
+     <!-- *************************************************************************************************** -->
+
+
+
+     <!-- Any path (name) registered in solrconfig.xml will be sent to that filter -->
+     <filter>
+       <filter-name>SolrRequestFilter</filter-name>
+       <filter-class>org.apache.solr.servlet.SolrDispatchFilter</filter-class>
+       <init-param>
+         <param-name>path-prefix</param-name>
+         <param-value>/solr</param-value>
+       </init-param>
+     </filter>
+
+     <filter-mapping>
+       <!--
+         NOTE: When using multicore, /admin JSP URLs with a core specified
+         such as /solr/coreName/admin/stats.jsp get forwarded by a
+         RequestDispatcher to /solr/admin/stats.jsp with the specified core
+         put into request scope keyed as "org.apache.solr.SolrCore".
+
+         It is unnecessary, and potentially problematic, to have the SolrDispatchFilter
+         configured to also filter on forwards.  Do not configure
+         this dispatcher as <dispatcher>FORWARD</dispatcher>.
+       -->
+       <filter-name>SolrRequestFilter</filter-name>
+       <url-pattern>/solr/*</url-pattern>
+     </filter-mapping>
+
+
+     <mime-mapping>
+       <extension>.xsl</extension>
+       <!-- per http://www.w3.org/TR/2006/PR-xslt20-20061121/ -->
+       <mime-type>application/xslt+xml</mime-type>
+     </mime-mapping>
+
+
+
+
+	
+	<!-- EHCache Web Cache -->
+    <filter>
+            <filter-name>SimpleCachingHeadersPageCachingFilter</filter-name>
+            <filter-class>net.sf.ehcache.constructs.web.filter.SimpleCachingHeadersPageCachingFilter</filter-class>
+            <init-param>
+                    <param-name>suppressStackTraces</param-name>
+                    <param-value>false</param-value>
+            </init-param>
+            <init-param>
+                    <param-name>cacheName</param-name>
+                    <param-value>PageCache</param-value>
+            </init-param>
+
+    </filter>
+
+
+
+    <filter>
+        <filter-name>KiWi Webservices</filter-name>
+        <filter-class>
+            org.jboss.resteasy.plugins.server.servlet.FilterDispatcher
+        </filter-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>kiwi.core.webservices.CoreApplication</param-value>
+        </init-param>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>KiWi Webservices</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
+    <context-param>
+		<param-name>resteasy.injector.factory</param-name>
+		<param-value>org.jboss.resteasy.cdi.CdiInjectorFactory</param-value>
+	</context-param>
+
+
+    <servlet>
+       <servlet-name>ServletTestRunner</servlet-name>
+       <servlet-class>org.jboss.arquillian.protocol.servlet_3.ServletTestRunner</servlet-class>
+    </servlet>
+
+
+    <servlet-mapping>
+       <servlet-name>ServletTestRunner</servlet-name>
+       <url-pattern>/ArquillianServletRunner</url-pattern>
+    </servlet-mapping>
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/arquillian.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/arquillian.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/arquillian.xml
new file mode 100644
index 0000000..22aa252
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/arquillian.xml
@@ -0,0 +1,29 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<arquillian xmlns="http://jboss.com/arquillian"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xmlns:tomcat6="urn:arq:org.jboss.arquillian.container.tomcat.embedded_6"
+            xsi:schemaLocation="http://jboss.com/arquillian ">
+
+    <tomcat6:container>
+        <tomcat6:unpackArchive>true</tomcat6:unpackArchive>
+    </tomcat6:container>
+
+</arquillian>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529975.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529975.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529975.xml
new file mode 100644
index 0000000..39aedeb
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529975.xml
@@ -0,0 +1,54 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<SNXML>
+    <PUBLIKATION>SN</PUBLIKATION>
+    <DATUM/>
+    <ECID>sozj91a979wfjc35*z${symbol_dollar}rkdl</ECID>
+    <ARTIKEL>
+        <TIMEDATE>29.10.2008 13:56:41</TIMEDATE>
+        <PRIORITY>5</PRIORITY>
+        <KEYWORD>Sport</KEYWORD>
+        <METAID>SNZ41-17529975</METAID>
+        <NUMBER>41-17529975</NUMBER>
+        <RESSORT>sport</RESSORT>
+        <GEO>sydney</GEO>
+        <INHALT>
+            <TITEL>Hurley entriss Rupprath 50-m-R�cken-Weltrekord</TITEL>
+            <VORSPANN>Der 19-j�hrige Australier Robert Hurley hat am Sonntag beim Schwimm-Weltcup in Sydney einen
+                Kurzbahn-Weltrekord �ber 50 m R�cken fixiert. Der Lokalmatador verbesserte in 23,24 Sekunden die vom
+                Deutschen Thomas Rupprath bei der EM am 10. Dezember 2004 in Wien fixierte bisherige Topmarke um 3/100
+                Sekunden.
+            </VORSPANN>
+            <P>apa/ag.sydney</P>
+            <P></P>
+            <P>Rupprath hatte den Weltrekord beinahe zehn Jahre gehalten, am 11. Dezember 1998 hatte er ihn sich bei der
+                EM in Sheffiled mit 24,41 geholt, danach noch siebenmal gedr�ckt.
+            </P>
+            <P>Hurley war erstmals im vergangenen April bei den Kurzbahn-Weltmeisterschaften in Manchester international
+                etwas in Erscheinung getreten, als er im Finale �ber 100 m R�cken Achter geworden war. Es ist der zweite
+                Weltrekord dieses Meetings, nachdem am Samstag der �ber die australische Grenzen bisher weitgehend
+                unbekannt gewesene Matt Jaukovic �ber 50 m Delfin in 22,50 Sekunden zugeschlagen hatte. Am Sonntag
+                siegte der 22-J�hrige in 50,50 Sekunden auch �ber 100 m Delfin.
+            </P>
+            <P></P>
+        </INHALT>
+    </ARTIKEL>
+</SNXML>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529990.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529990.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529990.xml
new file mode 100644
index 0000000..de687a6
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17529990.xml
@@ -0,0 +1,71 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<SNXML>
+    <PUBLIKATION>SN</PUBLIKATION>
+    <DATUM/>
+    <ECID>sozj91a979wfjc38c_olbd9</ECID>
+    <ARTIKEL>
+        <TIMEDATE>29.10.2008 17:17</TIMEDATE>
+        <PRIORITY/>
+        <KEYWORD>Stadt Salzburg</KEYWORD>
+        <METAID>SNZ41-17529990</METAID>
+        <NUMBER>41-17529990</NUMBER>
+        <RESSORT>aussen</RESSORT>
+        <GEO/>
+        <INHALT>
+            <TITEL>Bauarbeiten an Unipark gehen weiter</TITEL>
+            <VORSPANN>Nach einem halben Jahr Verz�gerung gehen beim Unipark im Salzburger Nonntal nun die Arbeiten
+                wieder weiter. Dieser Tage wurde mit der Aufbringung einer wasserdurchl�ssigen Betonschicht begonnen,
+                auf die ab Mitte November die Bodenplatte f�r das Universit�tsgeb�ude gelegt wird.
+            </VORSPANN>
+            <P>(SN, APA). Bis M�rz kommenden Jahres soll der Rohbau fertiggestellt werden, sagte Ernst Eichinger,
+                Pressesprecher der Bundesimmobiliengesellschaft BIG, zur APA.
+            </P>
+            <P></P>
+            <P>Der Spatenstich f�r das seit Jahren diskutierte Geb�ude f�r Teile der Geisteswissenschaftlichen Fakult�t
+                der Universit�t Salzburg erfolgte im J�nner dieses Jahres. Doch nach dem Aushub der Baugrube war auch
+                schon wieder Schluss. Nach der Ausschreibung der Bauarbeiten w�re das mit 54 Mio. Euro budgetierte
+                Projekt wesentlich teurer gekommen als urspr�nglich angenommen. Die BIG stoppte die Arbeiten und schrieb
+                erneut aus. Mitte September erfolgte der Zuschlag f�r den Rohbau an die Bietergemeinschaft Ebster Bau
+                aus Henndorf und das Bauunternehmen Doll aus Seekirchen.
+            </P>
+            <P>Nach der Trockenlegung der Baugrube kann nun dieser Tage endlich mit den eigentlichen Bauarbeiten
+                gestartet werden. &${symbol_pound}8222;Der Einzugstermin ist f�r Herbst 2010 geplant&${symbol_pound}8220;, erkl�rte
+                Universit�tsdirektorin Elisabeth Werner zur APA. In der Gr��e und Funktion des Hauses gebe es durch die
+                Neuausschreibung keinerlei Abstriche. Um die Kosten zu senken, wurde auf die urspr�nglich geplante
+                Fachwerksl�sung verzichtet und eine Betonkonstruktion gew�hlt. Dadurch werde weniger Stahl ben�tigt,
+                sagte Werner. Der optische Eindruck des Baus werde ruhiger und die Raumaufteilung flexibler, sieht sie
+                in der �nderung durchaus Vorteile.
+            </P>
+            <P>In das quadratische, zweist�ckige Geb�ude mit 30.000 Quadratmeter Grundfl�che werden unter anderem die
+                Fachbereiche Anglistik, Romanistik, Germanistik, Kultursoziologie, Linguistik, Slawistik und
+                Erziehungswissenschaften einziehen. Derzeit sind diese F�cher in Plattenbauten aus den Sechzigerjahren
+                untergebracht, die nur f�r 20 Jahre als provisorische Unterkunft dienen sollten.
+            </P>
+            <P></P>
+            <P>Der Unipark ist Teil der Neugestaltung des Stadtteils Nonntal: Das Kulturgel�nde wurde verlegt und neu
+                gebaut, das Sportzentrum Mitte in den S�den des Areals transferiert. Das Herzst�ck des Stadtteilprojekts
+                bildet der Unipark Nonntal, der auf dem ehemaligen Sportplatzgel�nde gebaut wird. Er soll von einer
+                Gr�nzone, die sich in Richtung Zentrum zieht, umgeben werden.
+            </P>
+        </INHALT>
+    </ARTIKEL>
+</SNXML>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17530023.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17530023.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17530023.xml
new file mode 100644
index 0000000..4b29645
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/data/sn/news7x24-41-17530023.xml
@@ -0,0 +1,52 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<SNXML>
+    <PUBLIKATION>SN</PUBLIKATION>
+    <DATUM/>
+    <ECID>3nanwmv5zuvz81lpi94h${symbol_dollar}be</ECID>
+    <ARTIKEL>
+        <TIMEDATE>29.10.2008 13:56:20</TIMEDATE>
+        <PRIORITY>5</PRIORITY>
+        <KEYWORD>Sport</KEYWORD>
+        <METAID>SNZ41-17530023</METAID>
+        <NUMBER>41-17530023</NUMBER>
+        <RESSORT>sport</RESSORT>
+        <GEO>utsunomiya/japan</GEO>
+        <INHALT>
+            <TITEL>Erfolgreiches Comeback von Ivan Basso in Japan</TITEL>
+            <VORSPANN>Ivan Basso ist am Sonntag drei Tage nach Ablauf seiner zweij�hrigen Sperre erfolgreich in den
+                Radrennbetrieb zur�ckgekehrt. Der Giro-Sieger von 2006 erreichte beim Japan Cup im Sprint hinter seinen
+                Landsleuten Damiano Cunego und Giovanni Visconti Platz drei. Basso hatte mit einer Attacke 25 km vor
+                Schluss die Vorentscheidung eingeleitet.
+            </VORSPANN>
+            <P>apa/siutsunomiya/japan</P>
+            <P></P>
+            <P>&${symbol_pound}8222;Jetzt kann ich der n�chsten Saison beruhigt entgegensehen&${symbol_pound}8220;, sagte der 30-J�hrige. Der
+                Italiener war 2006 die Teilnahme an der Tour de France verweigert worden, weil Indizien auftauchten,
+                dass er in die Blutdopingaff�re um den spanischen Arzt Eufemiano Fuentes verwickelt gewesen sei. Der
+                Italiener gab sp�ter zu, Blut beim Dopingarzt gelagert zu haben, versicherte aber, selbst nie Blutdoping
+                durchgef�hrt zu haben. Das Gest�ndnis des versuchten Dopings gen�gte dem italienischen Verband
+                allerdings, seinen Star f�r zwei Jahre zu sperren.
+            </P>
+            <P></P>
+        </INHALT>
+    </ARTIKEL>
+</SNXML>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/ehcache.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/ehcache.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/ehcache.xml
new file mode 100644
index 0000000..c1abc56
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/ehcache.xml
@@ -0,0 +1,380 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+        
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<!--
+CacheManager Configuration
+==========================
+An ehcache-lmf.xml corresponds to a single CacheManager.
+
+See instructions below or the ehcache schema (ehcache.xsd) on how to configure.
+
+System property tokens can be specified in this file which are replaced when the configuration
+is loaded. For example multicastGroupPort=${symbol_dollar}{multicastGroupPort} can be replaced with the
+System property either from an environment variable or a system property specified with a
+command line switch such as -DmulticastGroupPort=4446.
+
+The attributes of <ehcache> are:
+* name - an optional name for the CacheManager.  The name is optional and primarily used 
+for documentation or to distinguish Terracotta clustered cache state.  With Terracotta 
+clustered caches, a combination of CacheManager name and cache name uniquely identify a 
+particular cache store in the Terracotta clustered memory.
+* updateCheck - an optional boolean flag specifying whether this CacheManager should check
+for new versions of Ehcache over the Internet.  If not specified, updateCheck="true".
+* monitoring - an optional setting that determines whether the CacheManager should 
+automatically register the SampledCacheMBean with the system MBean server.  Currently,
+this monitoring is only useful when using Terracotta and thus the "autodetect" value 
+will detect the presence of Terracotta and register the MBean.  Other allowed values 
+are "on" and "off".  The default is "autodetect".
+-->    
+<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">
+
+    <!-- 
+    DiskStore configuration
+    =======================
+
+    The diskStore element is optional. To turn off disk store path creation, comment out the diskStore
+    element below.
+
+    Configure it if you have overflowToDisk or diskPersistent enabled for any cache.
+
+    If it is not configured, and a cache is created which requires a disk store, a warning will be
+     issued and java.io.tmpdir will automatically be used.
+
+    diskStore has only one attribute - "path". It is the path to the directory where
+    .data and .index files will be created.
+
+    If the path is one of the following Java System Property it is replaced by its value in the
+    running VM. For backward compatibility these are not specified without being enclosed in the ${symbol_dollar}{token}
+    replacement syntax.
+
+    The following properties are translated:
+    * user.home - KiWiUser's home directory
+    * user.dir - KiWiUser's current working directory
+    * java.io.tmpdir - Default temp file path
+    * ehcache.disk.store.dir - A system property you would normally specify on the command line
+      e.g. java -Dehcache.disk.store.dir=/u01/myapp/diskdir ...
+
+    Subdirectories can be specified below the property e.g. java.io.tmpdir/one
+
+    -->
+    <diskStore path="java.io.tmpdir"/>
+
+   <!--
+    Cachemanagereventlistener
+    =========================
+    Specifies a CacheManagerEventListenerFactory which is notified when Caches are added
+    or removed from the CacheManager.
+
+    The attributes of CacheManagerEventListenerFactory are:
+    * class - a fully qualified factory class name
+    * properties - comma separated properties having meaning only to the factory.
+
+    Sets the fully qualified class name to be registered as the CacheManager event listener.
+
+    The events include:
+    * adding a Cache
+    * removing a Cache
+
+    Callbacks to listener methods are synchronous and unsynchronized. It is the responsibility
+    of the implementer to safely handle the potential performance and thread safety issues
+    depending on what their listener is doing.
+
+    If no class is specified, no listener is created. There is no default.
+    -->
+    <cacheManagerEventListenerFactory class="" properties=""/>
+
+
+    <!--
+    CacheManagerPeerProvider
+    ========================
+    (For distributed operation)
+
+    Specifies a CacheManagerPeerProviderFactory which will be used to create a
+    CacheManagerPeerProvider, which discovers other CacheManagers in the cluster.
+
+    One or more providers can be configured. The first one in the ehcache-lmf.xml is the default, which is used
+    for replication and bootstrapping.
+
+    The attributes of cacheManagerPeerProviderFactory are:
+    * class - a fully qualified factory class name
+    * properties - comma separated properties having meaning only to the factory.
+
+    Providers are available for RMI, JGroups and JMS as shown following.
+
+    RMICacheManagerPeerProvider
+    +++++++++++++++++++++++++++
+
+    Ehcache comes with a built-in RMI-based distribution system with two means of discovery of
+    CacheManager peers participating in the cluster:
+    * automatic, using a multicast group. This one automatically discovers peers and detects
+      changes such as peers entering and leaving the group
+    * manual, using manual rmiURL configuration. A hardcoded list of peers is provided at
+      configuration time.
+
+    Configuring Automatic Discovery:
+    Automatic discovery is configured as per the following example:
+    <cacheManagerPeerProviderFactory
+                        class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
+                        properties="hostName=fully_qualified_hostname_or_ip,
+                                    peerDiscovery=automatic, multicastGroupAddress=230.0.0.1,
+                                    multicastGroupPort=4446, timeToLive=32"/>
+
+    Valid properties are:
+    * peerDiscovery (mandatory) - specify "automatic"
+    * multicastGroupAddress (mandatory) - specify a valid multicast group address
+    * multicastGroupPort (mandatory) - specify a dedicated port for the multicast heartbeat
+      traffic
+    * timeToLive - specify a value between 0 and 255 which determines how far the packets will
+      propagate.
+
+      By convention, the restrictions are:
+      0   - the same host
+      1   - the same subnet
+      32  - the same site
+      64  - the same region
+      128 - the same continent
+      255 - unrestricted
+
+     * hostName - the hostname or IP of the interface to be used for sending and receiving multicast packets
+       (relevant to mulithomed hosts only)
+
+    Configuring Manual Discovery:
+    Manual discovery requires a unique configuration per host. It is contains a list of rmiURLs for the peers, other
+    than itself. So, if we have server1, server2 and server3 the configuration will be:
+
+    In server1's configuration:
+    <cacheManagerPeerProviderFactory class=
+                          "net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
+                          properties="peerDiscovery=manual,
+                          rmiUrls=//server2:40000/sampleCache1|//server3:40000/sampleCache1
+                          | //server2:40000/sampleCache2|//server3:40000/sampleCache2"
+                          propertySeparator="," />
+
+    In server2's configuration:
+    <cacheManagerPeerProviderFactory class=
+                          "net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
+                          properties="peerDiscovery=manual,
+                          rmiUrls=//server1:40000/sampleCache1|//server3:40000/sampleCache1
+                          | //server1:40000/sampleCache2|//server3:40000/sampleCache2"
+                          propertySeparator="," />
+
+    In server3's configuration:
+    <cacheManagerPeerProviderFactory class=
+                          "net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
+                          properties="peerDiscovery=manual,
+                          rmiUrls=//server1:40000/sampleCache1|//server2:40000/sampleCache1
+                          | //server1:40000/sampleCache2|//server2:40000/sampleCache2"
+                          propertySeparator="," />
+
+
+    Valid properties are:
+    * peerDiscovery (mandatory) - specify "manual"
+    * rmiUrls (mandatory) - specify a pipe separated list of rmiUrls, in the form
+                            //hostname:port
+    * hostname (optional) - the hostname is the hostname of the remote CacheManager peer. The port is the listening
+      port of the RMICacheManagerPeerListener of the remote CacheManager peer.
+    
+    JGroupsCacheManagerPeerProvider
+    +++++++++++++++++++++++++++++++
+    <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"
+                                     properties="connect=UDP(mcast_addr=231.12.21.132;mcast_port=45566;ip_ttl=32;
+                                     mcast_send_buf_size=150000;mcast_recv_buf_size=80000):
+                                     PING(timeout=2000;num_initial_members=6):
+                                     MERGE2(min_interval=5000;max_interval=10000):
+                                     FD_SOCK:VERIFY_SUSPECT(timeout=1500):
+                                     pbcast.NAKACK(gc_lag=10;retransmit_timeout=3000):
+                                     UNICAST(timeout=5000):
+                                     pbcast.STABLE(desired_avg_gossip=20000):
+                                     FRAG:
+                                     pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=false)"
+                                     propertySeparator="::"
+            />
+     The only property necessary is the connect String used by jgroups to configure itself. Refer to the Jgroups documentation for explanation
+     of all the protocols. The example above uses UDP multicast. If the connect property is not specified the default JGroups connection will be
+     used.       
+
+
+    JMSCacheManagerPeerProviderFactory
+    ++++++++++++++++++++++++++++++++++
+    <cacheManagerPeerProviderFactory
+            class="net.sf.ehcache.distribution.jms.JMSCacheManagerPeerProviderFactory"
+            properties="..."
+            propertySeparator=","
+            />
+
+    The JMS PeerProviderFactory uses JNDI to maintain message queue independence. Refer to the manual for full configuration
+    examples using ActiveMQ and Open Message Queue.
+
+    Valid properties are:
+    * initialContextFactoryName (mandatory) - the name of the factory used to create the message queue initial context.
+    * providerURL (mandatory) - the JNDI configuration information for the service provider to use.
+    * topicConnectionFactoryBindingName (mandatory) - the JNDI binding name for the TopicConnectionFactory
+    * topicBindingName (mandatory) - the JNDI binding name for the topic name
+    * getQueueBindingName (mandatory only if using jmsCacheLoader) - the JNDI binding name for the queue name
+    * securityPrincipalName - the JNDI java.naming.security.principal
+    * securityCredentials - the JNDI java.naming.security.credentials
+    * urlPkgPrefixes - the JNDI java.naming.factory.url.pkgs
+    * userName - the user name to use when creating the TopicConnection to the Message Queue
+    * password - the password to use when creating the TopicConnection to the Message Queue
+    * acknowledgementMode - the JMS Acknowledgement mode for both publisher and subscriber. The available choices are
+                            AUTO_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE and SESSION_TRANSACTED. The default is AUTO_ACKNOWLEDGE.
+    -->
+<!--    <cacheManagerPeerProviderFactory-->
+<!--            class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"-->
+<!--            properties="peerDiscovery=automatic,-->
+<!--                        multicastGroupAddress=230.0.0.1,-->
+<!--                        multicastGroupPort=4446, timeToLive=1"-->
+<!--            propertySeparator=","-->
+<!--            />-->
+
+
+    <!--
+    CacheManagerPeerListener
+    ========================
+    (Enable for distributed operation)
+
+    Specifies a CacheManagerPeerListenerFactory which will be used to create a
+    CacheManagerPeerListener, which listens for messages from cache replicators participating in the cluster.
+
+    The attributes of cacheManagerPeerListenerFactory are:
+    class - a fully qualified factory class name
+    properties - comma separated properties having meaning only to the factory.
+
+    Ehcache comes with a built-in RMI-based distribution system. The listener component is
+    RMICacheManagerPeerListener which is configured using
+    RMICacheManagerPeerListenerFactory. It is configured as per the following example:
+
+    <cacheManagerPeerListenerFactory
+        class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
+        properties="hostName=fully_qualified_hostname_or_ip,
+                    port=40001,
+                    remoteObjectPort=40002,
+                    socketTimeoutMillis=120000"
+                    propertySeparator="," />
+
+    All properties are optional. They are:
+    * hostName - the hostName of the host the listener is running on. Specify
+      where the host is multihomed and you want to control the interface over which cluster
+      messages are received. Defaults to the host name of the default interface if not
+      specified.
+    * port - the port the RMI Registry listener listens on. This defaults to a free port if not specified.
+    * remoteObjectPort - the port number on which the remote objects bound in the registry receive calls.
+                         This defaults to a free port if not specified.
+    * socketTimeoutMillis - the number of ms client sockets will stay open when sending
+      messages to the listener. This should be long enough for the slowest message.
+      If not specified it defaults to 120000ms.
+
+    -->
+<!--    <cacheManagerPeerListenerFactory-->
+<!--            class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"/>-->
+
+    <!-- Cache configuration.
+
+    The following attributes are required.
+
+    name:
+    Sets the name of the cache. This is used to identify the cache. It must be unique.
+
+    maxElementsInMemory:
+    Sets the maximum number of objects that will be created in memory
+
+        maxElementsOnDisk:
+    Sets the maximum number of objects that will be maintained in the DiskStore
+        The default value is zero, meaning unlimited.
+
+    eternal:
+    Sets whether elements are eternal. If eternal,  timeouts are ignored and the
+    element is never expired.
+
+    overflowToDisk:
+    Sets whether elements can overflow to disk when the memory store
+    has reached the maxInMemory limit.
+
+    The following attributes are optional.
+
+    timeToIdleSeconds:
+    Sets the time to idle for an element before it expires.
+    i.e. The maximum amount of time between accesses before an element expires
+    Is only used if the element is not eternal.
+    Optional attribute. A value of 0 means that an Element can idle for infinity.
+    The default value is 0.
+
+    timeToLiveSeconds:
+    Sets the time to live for an element before it expires.
+    i.e. The maximum time between creation time and when an element expires.
+    Is only used if the element is not eternal.
+    Optional attribute. A value of 0 means that and Element can live for infinity.
+    The default value is 0.
+
+    diskPersistent:
+    Whether the disk store persists between restarts of the Virtual Machine.
+    The default value is false.
+
+    diskExpiryThreadIntervalSeconds:
+    The number of seconds between runs of the disk expiry thread. The default value
+    is 120 seconds.
+
+    memoryStoreEvictionPolicy:
+    Policy would be enforced upon reaching the maxElementsInMemory limit. Default
+    policy is Least Recently Used (specified as LRU). Other policies available -
+    First In First Out (specified as FIFO) and Less Frequently Used
+    (specified as LFU)
+
+    -->
+
+    <!--
+    Mandatory Default Cache configuration. These settings will be applied to caches
+    created programmtically using CacheManager.add(String cacheName)
+    -->
+    <defaultCache
+            maxElementsInMemory="20000"
+            eternal="true"
+            overflowToDisk="false"
+            memoryStoreEvictionPolicy="LRU"
+            />
+
+    <cache name="org.hibernate.cache.StandardQueryCache"
+           maxElementsInMemory="10000"
+           eternal="true"
+           overflowToDisk="false"
+           memoryStoreEvictionPolicy="LRU"/>
+
+    <cache name="org.hibernate.cache.UpdateTimestampsCache"
+           maxElementsInMemory="10000"
+           eternal="true"
+           overflowToDisk="false"/>
+
+    <cache name="PageCache"
+           maxElementsInMemory="1000"
+           eternal="false"
+           overflowToDisk="true"
+           timeToIdleSeconds="1000"
+           timeToLiveSeconds="1000"
+           memoryStoreEvictionPolicy="LRU"/>
+
+<!--  uncomment to enable cache debugging -->
+<!-- 
+	<cacheManagerPeerListenerFactory
+	    class="org.terracotta.ehcachedx.monitor.probe.ProbePeerListenerFactory"
+	    properties="monitorAddress=localhost, monitorPort=9889" />
+-->
+
+</ehcache>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/jndi.properties
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/jndi.properties b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/jndi.properties
new file mode 100644
index 0000000..4cd6580
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/jndi.properties
@@ -0,0 +1,19 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+${symbol_pound}
+${symbol_pound} Copyright (c) 2012 Salzburg Research.
+${symbol_pound}
+${symbol_pound} Licensed under the Apache License, Version 2.0 (the "License");
+${symbol_pound} you may not use this file except in compliance with the License.
+${symbol_pound} You may obtain a copy of the License at
+${symbol_pound}
+${symbol_pound}     http://www.apache.org/licenses/LICENSE-2.0
+${symbol_pound}
+${symbol_pound} Unless required by applicable law or agreed to in writing, software
+${symbol_pound} distributed under the License is distributed on an "AS IS" BASIS,
+${symbol_pound} WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+${symbol_pound} See the License for the specific language governing permissions and
+${symbol_pound} limitations under the License.
+${symbol_pound}
+

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/logback.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/logback.xml b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/logback.xml
new file mode 100644
index 0000000..9ef7084
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/logback.xml
@@ -0,0 +1,69 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<!--
+  ~ Copyright (c) 2012 Salzburg Research.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration>
+
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+        <!-- encoders are assigned the type
+     ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
+        <encoder>
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+        <file>kiwi-test.log</file>
+        <append>true</append>
+        <encoder>
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <!--
+    <appender name="SOCKET" class="ch.qos.logback.classic.net.SocketAppender">
+        <remoteHost>localhost</remoteHost>
+        <port>4560</port>
+        <reconnectionDelay>10000</reconnectionDelay>
+        <includeCallerData>true</includeCallerData>
+    </appender>
+
+
+    <appender name="LILITH" class="de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender">
+        <Compressing>true</Compressing>
+        <ReconnectionDelay>10000</ReconnectionDelay>
+        <IncludeCallerData>true</IncludeCallerData>
+        <RemoteHosts>localhost</RemoteHosts>
+    </appender>
+    -->
+
+
+    <logger name="kiwi.core" level="DEBUG" />
+    <logger name="kiwi.test" level="DEBUG" />
+
+    <logger name="org.hibernate" level="INFO" />
+    <logger name="org.hibernate.SQL" level="DEBUG" />
+    <logger name="org.hibernate.pretty" level="DEBUG" />
+
+    <logger name="org.apache.solr" level="INFO" />
+
+
+    <root level="debug">
+        <appender-ref ref="FILE" />
+    </root>
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/test-config.properties
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/test-config.properties b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/test-config.properties
new file mode 100644
index 0000000..1b8e0e6
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/main/resources/archetype-resources/src/test/resources/test-config.properties
@@ -0,0 +1,76 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+${symbol_pound}
+${symbol_pound} Copyright (c) 2012 Salzburg Research.
+${symbol_pound}
+${symbol_pound} Licensed under the Apache License, Version 2.0 (the "License");
+${symbol_pound} you may not use this file except in compliance with the License.
+${symbol_pound} You may obtain a copy of the License at
+${symbol_pound}
+${symbol_pound}     http://www.apache.org/licenses/LICENSE-2.0
+${symbol_pound}
+${symbol_pound} Unless required by applicable law or agreed to in writing, software
+${symbol_pound} distributed under the License is distributed on an "AS IS" BASIS,
+${symbol_pound} WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+${symbol_pound} See the License for the specific language governing permissions and
+${symbol_pound} limitations under the License.
+${symbol_pound}
+
+${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbo
 l_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
+${symbol_pound} KiWi core configuration
+${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbo
 l_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
+
+
+${symbol_pound} KiWi version
+kiwi.version = 1.99.1
+
+${symbol_pound} KiWi home directory (for configuration files etc)
+kiwi.home = /tmp/kiwi-test
+
+${symbol_pound} directory where KiWi stores the search index for SOLR search
+solr.home = ${symbol_dollar}{kiwi.home}/solr
+
+${symbol_pound} directory where KiWi stores the triple index for SPARQL queries (using Sesame)
+sesame.home = ${symbol_dollar}{kiwi.home}/triples
+
+${symbol_pound} base URI of this KiWi installation; used for constructing resource URIs
+kiwi.context = http://localhost:9090/test/
+
+${symbol_pound} base URL of the KiWi installation; used for accessing additional web services like SOLR and H2
+kiwi.host = http://localhost:9090/test/
+
+${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbo
 l_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
+${symbol_pound} KiWi rendering plugins; these are applied when loading/saving content in the KiWi system
+${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbo
 l_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}${symbol_pound}
+
+savelets.source=kiwi.service.render.savelet.ExtractLinksSavelet,${symbol_escape}
+        kiwi.service.render.savelet.HtmlCleanerSavelet
+savelets.text=kiwi.service.render.savelet.NavigationalLinksSavelet,${symbol_escape}
+        kiwi.service.render.savelet.RdfaSavelet,${symbol_escape}
+        kiwi.service.render.savelet.FragmentsSavelet,${symbol_escape}
+        kiwi.service.render.savelet.ComponentSavelet
+savelets.media=
+
+
+renderlets.html.source=
+renderlets.html.xom=kiwi.service.render.renderlet.ComponentRenderlet,${symbol_escape}
+		kiwi.service.render.renderlet.ComponentDisplayRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.RdfaRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.HtmlLinkRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.HtmlRdfaRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.HtmlFragmentRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.ImageLinkRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.QueryRenderlet
+
+
+renderlets.editor.source=
+renderlets.editor.xom=kiwi.service.render.renderlet.ComponentRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.RdfaRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.EditorLinkRenderlet
+
+renderlets.annotation.source=
+renderlets.annotation.xom=kiwi.service.render.renderlet.HtmlLinkRenderlet,${symbol_escape}
+        kiwi.service.render.renderlet.AnnotationLinksRenderlet
+
+renderlets.media=
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/archetype.properties
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/archetype.properties b/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/archetype.properties
new file mode 100644
index 0000000..ff13aaf
--- /dev/null
+++ b/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/archetype.properties
@@ -0,0 +1,6 @@
+#Wed Oct 17 15:04:27 CEST 2012
+package=it.pkg
+version=0.1-SNAPSHOT
+groupId=archetype.it
+artifactId=basic
+lmf.version=2.6.0-SNAPSHOT

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/goal.txt
----------------------------------------------------------------------
diff --git a/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/goal.txt b/lmf-archetypes/lmf-archetype-webapp/src/test/resources/projects/basic/goal.txt
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-archetypes/pom.xml
----------------------------------------------------------------------
diff --git a/lmf-archetypes/pom.xml b/lmf-archetypes/pom.xml
new file mode 100644
index 0000000..6090326
--- /dev/null
+++ b/lmf-archetypes/pom.xml
@@ -0,0 +1,31 @@
+<!--
+  ~ Copyright (c) 2013 Salzburg Research.
+  ~
+  ~  Licensed under the Apache License, Version 2.0 (the "License");
+  ~  you may not use this file except in compliance with the License.
+  ~  You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing, software
+  ~  distributed under the License is distributed on an "AS IS" BASIS,
+  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~  See the License for the specific language governing permissions and
+  ~  limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>at.newmedialab.lmf</groupId>
+    <artifactId>lmf-parent</artifactId>
+    <version>3.0.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>lmf-archetypes</artifactId>
+  <packaging>pom</packaging>
+  <name>LMF Archetypes</name>
+  <modules>
+      <module>lmf-archetype-module</module>
+      <module>lmf-archetype-webapp</module>
+  </modules>
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/.project
----------------------------------------------------------------------
diff --git a/lmf-client/.project b/lmf-client/.project
new file mode 100644
index 0000000..3d507af
--- /dev/null
+++ b/lmf-client/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>lmf-client</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+	</natures>
+</projectDescription>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/.settings/org.eclipse.m2e.core.prefs
----------------------------------------------------------------------
diff --git a/lmf-client/.settings/org.eclipse.m2e.core.prefs b/lmf-client/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/lmf-client/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/.classpath
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/.classpath b/lmf-client/lmf-client-java/.classpath
new file mode 100644
index 0000000..c90fef9
--- /dev/null
+++ b/lmf-client/lmf-client-java/.classpath
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/.project
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/.project b/lmf-client/lmf-client-java/.project
new file mode 100644
index 0000000..93c89ca
--- /dev/null
+++ b/lmf-client/lmf-client-java/.project
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>lmf-client-java</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.zeroturnaround.eclipse.rebelXmlBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+		<nature>org.zeroturnaround.eclipse.jrebelNature</nature>
+	</natures>
+</projectDescription>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/.settings/org.eclipse.core.resources.prefs
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/.settings/org.eclipse.core.resources.prefs b/lmf-client/lmf-client-java/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..0285a1b
--- /dev/null
+++ b/lmf-client/lmf-client-java/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/test/java=UTF-8
+encoding//src/test/resources=UTF-8

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/.settings/org.eclipse.jdt.core.prefs
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/.settings/org.eclipse.jdt.core.prefs b/lmf-client/lmf-client-java/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..60105c1
--- /dev/null
+++ b/lmf-client/lmf-client-java/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.6

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/.settings/org.eclipse.m2e.core.prefs
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/.settings/org.eclipse.m2e.core.prefs b/lmf-client/lmf-client-java/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/lmf-client/lmf-client-java/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/pom.xml
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/pom.xml b/lmf-client/lmf-client-java/pom.xml
new file mode 100644
index 0000000..1ed51a3
--- /dev/null
+++ b/lmf-client/lmf-client-java/pom.xml
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright (c) 2013 Salzburg Research.
+  ~
+  ~  Licensed under the Apache License, Version 2.0 (the "License");
+  ~  you may not use this file except in compliance with the License.
+  ~  You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing, software
+  ~  distributed under the License is distributed on an "AS IS" BASIS,
+  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~  See the License for the specific language governing permissions and
+  ~  limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>at.newmedialab.lmf</groupId>
+        <artifactId>lmf-client</artifactId>
+        <version>3.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>lmf-client-java</artifactId>
+    <packaging>jar</packaging>
+
+    <name>LMF Client Library for Java</name>
+    <description>
+        A Java Library for accessing a remote LMF installation using REST webservice calls.
+    </description>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>integration-test</goal>
+                            <goal>verify</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-clean-plugin</artifactId>
+                <version>2.5</version>
+                <configuration>
+                    <filesets>
+                        <fileset>
+                            <directory>/tmp/lmf-test</directory>
+                            <followSymlinks>true</followSymlinks>
+                        </fileset>
+                    </filesets>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpmime</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.solr</groupId>
+            <artifactId>solr-solrj</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.codehaus.jackson</groupId>
+            <artifactId>jackson-core-asl</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.codehaus.jackson</groupId>
+            <artifactId>jackson-mapper-asl</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-ext</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jcl-over-slf4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>log4j-over-slf4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jul-to-slf4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+        </dependency>
+
+        <!-- LMF Testing Package -->
+        <dependency>
+            <groupId>at.newmedialab.lmf</groupId>
+            <artifactId>lmf-core</artifactId>
+            <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.mortbay.jetty</groupId>
+            <artifactId>jetty-embedded</artifactId>
+            <version>6.1.26</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.weld.se</groupId>
+            <artifactId>weld-se-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.h2database</groupId>
+            <artifactId>h2</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.jayway.restassured</groupId>
+            <artifactId>rest-assured</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.hamcrest</groupId>
+            <artifactId>hamcrest-library</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.hamcrest</groupId>
+            <artifactId>hamcrest-core</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.google.code.tempus-fugit</groupId>
+            <artifactId>tempus-fugit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.googlecode.jatl</groupId>
+            <artifactId>jatl</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>at.newmedialab.lmf</groupId>
+            <artifactId>lmf-core</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>at.newmedialab.lmf</groupId>
+            <artifactId>lmf-ldpath</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>at.newmedialab.lmf</groupId>
+            <artifactId>lmf-sparql</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/ClientConfiguration.java
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/ClientConfiguration.java b/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/ClientConfiguration.java
new file mode 100644
index 0000000..06a46f7
--- /dev/null
+++ b/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/ClientConfiguration.java
@@ -0,0 +1,126 @@
+/**
+ * Copyright (C) 2013 Salzburg Research.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package at.newmedialab.lmf.client;
+
+import org.apache.http.conn.ClientConnectionManager;
+
+/**
+ * Add file description here!
+ * <p/>
+ * Author: Sebastian Schaffert
+ */
+public class ClientConfiguration {
+
+	/**
+	 * The URI at which the LMF installation can be located
+	 */
+	private String lmfUri;
+
+	/**
+	 * (Optional) user to authenticate with the LMF system
+	 */
+	private String lmfUser;
+
+	/**
+	 * (Optional) password to authenticate with the LMF system
+	 */
+	private String lmfPassword;
+
+	/**
+	 * (Optional) context in the LMF system
+	 */
+	private String lmfContext;
+
+	/**
+	 * Socket timeout for established HTTP connections. Connection will be
+	 * closed afterwards. Default: 60 seconds.
+	 */
+	private int soTimeout = 60000;
+
+	/**
+	 * Connection timeout for opening HTTP connections. If idle for this time,
+	 * will be closed. Default: 10 seconds.
+	 */
+	private int connectionTimeout = 10000;
+	
+	private ClientConnectionManager conectionManager;
+
+	public ClientConfiguration(String lmfUri) {
+		this.lmfUri = lmfUri;
+	}
+
+	public ClientConfiguration(String lmfUri, String lmfUser, String lmfPassword) {
+		this.lmfUri = lmfUri;
+		this.lmfUser = lmfUser;
+		this.lmfPassword = lmfPassword;
+	}
+
+	public String getLmfUri() {
+		return lmfUri;
+	}
+
+	public void setLmfUri(String lmfUri) {
+		this.lmfUri = lmfUri;
+	}
+
+	public String getLmfUser() {
+		return lmfUser;
+	}
+
+	public void setLmfUser(String lmfUser) {
+		this.lmfUser = lmfUser;
+	}
+
+	public String getLmfPassword() {
+		return lmfPassword;
+	}
+
+	public void setLmfPassword(String lmfPassword) {
+		this.lmfPassword = lmfPassword;
+	}
+
+	public String getLmfContext() {
+		return lmfContext;
+	}
+
+	public void setLmfContext(String lmfContext) {
+		this.lmfContext = lmfContext;
+	}
+
+	public int getSoTimeout() {
+		return soTimeout;
+	}
+
+	public void setSoTimeout(int soTimeout) {
+		this.soTimeout = soTimeout;
+	}
+
+	public int getConnectionTimeout() {
+		return connectionTimeout;
+	}
+
+	public void setConnectionTimeout(int connectionTimeout) {
+		this.connectionTimeout = connectionTimeout;
+	}
+
+    public ClientConnectionManager getConectionManager() {
+        return conectionManager;
+    }
+
+    public void setConectionManager(ClientConnectionManager conectionManager) {
+        this.conectionManager = conectionManager;
+    }
+}

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/c32963d5/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/LMFClient.java
----------------------------------------------------------------------
diff --git a/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/LMFClient.java b/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/LMFClient.java
new file mode 100644
index 0000000..8c11b05
--- /dev/null
+++ b/lmf-client/lmf-client-java/src/main/java/at/newmedialab/lmf/client/LMFClient.java
@@ -0,0 +1,110 @@
+/**
+ * Copyright (C) 2013 Salzburg Research.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package at.newmedialab.lmf.client;
+
+import at.newmedialab.lmf.client.clients.ClassificationClient;
+import at.newmedialab.lmf.client.clients.ConfigurationClient;
+import at.newmedialab.lmf.client.clients.CoresClient;
+import at.newmedialab.lmf.client.clients.ImportClient;
+import at.newmedialab.lmf.client.clients.LDPathClient;
+import at.newmedialab.lmf.client.clients.ResourceClient;
+import at.newmedialab.lmf.client.clients.SPARQLClient;
+import at.newmedialab.lmf.client.clients.SearchClient;
+
+/**
+ * Add file description here!
+ * <p/>
+ * Author: Sebastian Schaffert
+ */
+public class LMFClient {
+    
+    public static final String VERSION = "0.1.0";
+
+    private ClientConfiguration config;
+
+
+    public LMFClient(ClientConfiguration config) {
+        this.config = config;
+    }
+    
+    /**
+     * Return a client to access the LMF Resource Service. Supports creating and deleting resources as well as
+     * updating and retrieving the metadata and content of resources.
+     *
+     * @return
+     */
+    public ResourceClient getResourceClient() {
+        return new ResourceClient(config);
+    }
+
+
+    /**
+     * Return a client that allows to access and modify the server configuration.
+     * @return
+     */
+    public ConfigurationClient getConfigurationClient() {
+        return new ConfigurationClient(config);
+    }
+
+    /**
+     * Return a client that allows executing SPARQL 1.1 queries and updates on the LMF Server.
+     * @return
+     */
+    public SPARQLClient getSPARQLClient() {
+        return new SPARQLClient(config);
+    }
+
+    /**
+     * Return a client that allows importing of datasets and ontologies on the LMF Server.
+     * @return
+     */
+    public ImportClient getImportClient() {
+        return new ImportClient(config);
+    }
+
+
+    /**
+     * Return a client that allows running SOLR searches on the LMF semantic search cores
+     */
+    public SearchClient getSearchClient() {
+        return new SearchClient(config);
+    }
+
+
+    /**
+     * Return a client that allows reading and modifying the LMF semantic search cores.
+     */
+    public CoresClient getSearchCoresClient() {
+        return new CoresClient(config);
+    }
+
+    /**
+     * Return a client that allows accessing the LDPath service for evaluating LDPath queries.
+     * @return
+     */
+    public LDPathClient getLDPathClient() {
+        return new LDPathClient(config);
+    }
+
+
+    /**
+     * Return a client that allows managing and training classifiers and classifying text.
+     * @return
+     */
+    public ClassificationClient getClassificationClient() {
+        return new ClassificationClient(config);
+    }
+}