You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by tk...@apache.org on 2013/04/12 00:21:09 UTC

[01/21] git commit: Did some improvements in sesame-commons/ResourceUtils (MARMOTTA-66)

Updated Branches:
  refs/heads/master 8ad5ef243 -> 7140ba85b
Updated Tags:  refs/tags/check-license-notice [created] 95840d26c


Did some improvements in sesame-commons/ResourceUtils (MARMOTTA-66)


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/b75ca1c6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/b75ca1c6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/b75ca1c6

Branch: refs/heads/master
Commit: b75ca1c642701863adad5e6c2167add35fd15ccb
Parents: cd88cb0
Author: Jakob Frank <ja...@apache.org>
Authored: Tue Mar 26 09:56:06 2013 +0100
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Mar 27 16:34:52 2013 +0100

----------------------------------------------------------------------
 .../commons/sesame/repository/ResourceUtils.java   |  130 ++++++++++++---
 1 files changed, 110 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/b75ca1c6/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
index 199f3ec..9e0cab5 100644
--- a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
+++ b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
@@ -49,16 +49,18 @@ public class ResourceUtils {
     // *****************************************************************************************************
     
     /**
-     * Check whenever the resource actually exists. Since this could be under different
-     * interpretations, this implementation only checks for outgoing triples.
+     * Check whenever the uri actually exists. 
+     * Existence of a URI (Resource) is bound to the existence of a
+     * Statement referencing the Resource, so this method simply delegates to {@link #isUsed(RepositoryConnection, String)}.
      * 
      * @param conn connection with the repository
      * @param uri uri of the resource to check
      * @return resource exists or not
-     * @deprecated the name of this method is missleading. use {@link #isSubject(RepositoryConnection, String)}.
+     * @deprecated the name of this method is missleading. use {@link #isUsed(RepositoryConnection, String)}.
      */
+    @Deprecated
     public static boolean existsResource(RepositoryConnection conn, String uri) {
-    	return existsStatement(conn, conn.getValueFactory().createURI(uri), null, null, null);
+    	return isUsed(conn, conn.getValueFactory().createURI(uri));
     }
     
     /**
@@ -68,19 +70,109 @@ public class ResourceUtils {
      * @return true if the uri is ever used as subject.
      */
     public static boolean isSubject(RepositoryConnection conn, String uri) {
-    	return existsStatement(conn, conn.getValueFactory().createURI(uri), null, null, null);
+    	return isSubject(conn, conn.getValueFactory().createURI(uri));
     }
 
     /**
+     * Check whether the {@link Resource} is ever used as subject. 
+     * @param conn connection with the repository
+     * @param uri the {@link Resource} to check
+     * @return true if the {@link Resource} is ever used as subject.
+     */
+	public static boolean isSubject(RepositoryConnection conn, final Resource rsc) {
+		return existsStatement(conn, rsc, null, null, null);
+	}
+
+    /**
+     * Check whether the uri is ever used as predicate. 
+     * @param conn connection with the repository
+     * @param uri uri of the resource to check
+     * @return true if the uri is ever used as predicate.
+     */
+	public static boolean isPredicate(RepositoryConnection conn, final String uri) {
+		return isPredicate(conn, conn.getValueFactory().createURI(uri));
+	}
+	
+    /**
+     * Check whether the {@link URI} is ever used as predicate. 
+     * @param conn connection with the repository
+     * @param uri the {@link URI} to check
+     * @return true if the {@link URI} is ever used as predicate.
+     */
+	public static boolean isPredicate(RepositoryConnection conn, final URI uri) {
+		return existsStatement(conn, null, uri, null, null);
+	}
+
+	   /**
+     * Check whether the uri is ever used as object. 
+     * @param conn connection with the repository
+     * @param uri uri of the resource to check
+     * @return true if the uri is ever used as predicate.
+     */
+	public static boolean isObject(RepositoryConnection conn, final String uri) {
+		return isObject(conn, conn.getValueFactory().createURI(uri));
+	}
+	
+    /**
+     * Check whether the {@link Value} is ever used as object. 
+     * @param conn connection with the repository
+     * @param val {@link Value} to check
+     * @return true if the {@link Value} is ever used as predicate.
+     */
+	public static boolean isObject(RepositoryConnection conn, final Value val) {
+		return existsStatement(conn, null, null, val, null);
+	}
+
+	
+    /**
      * Check whether the uri is ever used as context. 
      * @param conn connection with the repository
      * @param uri uri of the resource to check
      * @return true if the uri is ever used as context.
      */
     public static boolean isContext(RepositoryConnection conn, String uri) {
-    	return existsStatement(conn, null, null, null, conn.getValueFactory().createURI(uri));
+    	return isContext(conn, conn.getValueFactory().createURI(uri));
     }
+
+    /**
+     * Check whether the {@link Resource} is ever used as context. 
+     * @param conn connection with the repository
+     * @param rsc the {@link Resource} to check
+     * @return true if the {@link Resource} is ever used as context.
+     */
+	public static boolean isContext(RepositoryConnection conn, Resource rsc) {
+		return existsStatement(conn, null, null, null, rsc);
+	}
+	
+	/**
+	 * Check whether the {@link Resource} is used in any statement.
+	 * Checks if the provided {@link Resource} is used as
+	 * <ol>
+	 * <li>subject
+	 * <li>context
+	 * <li>object
+	 * <li>predicate (if the resource is a {@link URI})
+	 * </ol>
+	 * @param conn {@link ResourceConnection} to check on
+	 * @param rsc the {@link Resource} to check
+	 * @return true if the {@link Resource} is ever used in a {@link Statement}
+	 */
+	public static boolean isUsed(RepositoryConnection conn, Resource rsc) {
+		if (isSubject(conn, rsc) || isContext(conn, rsc) || isObject(conn, rsc)) return true;
+		if (rsc instanceof URI && isPredicate(conn, (URI) rsc)) return true;
+		return false;
+	}
     
+	/**
+	 * Check for the existence of a {@link Statement} with the provided constraints. <code>null</code> is a wildcard.
+	 * <br>This is a convenience method and does not really fit whith <em>Resource</em>Utils. 
+	 * @param conn the {@link ResourceConnection} to check on
+	 * @param subj the subject of the {@link Statement} or <code>null</code> for a wildcard.
+	 * @param pred the predicate of the {@link Statement} or <code>null</code> for a wildcard.
+	 * @param object the object of the {@link Statement} or <code>null</code> for a wildcard.
+	 * @param ctx the context of the {@link Statement} or <code>null</code> for a wildcard.
+	 * @return true if a {@link Statement} with the provided constraints exists.
+	 */
     public static boolean existsStatement(RepositoryConnection conn, Resource subj, URI pred, Value object, Resource ctx) {
     	try {
     		RepositoryResult<Statement> stmts = conn.getStatements(subj, pred, object, true, ctx);
@@ -100,21 +192,18 @@ public class ResourceUtils {
      * A Resource exists if and only if it is used in a Statement, i.e. it is uses either as Subject, Context, Predicate or Object.
      * @param uri
      * @return the URI or null if the Resource is not used.
-     * @deprecated this method does not work as promised. <b>DO NOT USE IT</b>
+     * @deprecated this method is easy to misinterpret. Use {@link #isUsed(RepositoryConnection, Resource)}, 
+     * {@link #isSubject(RepositoryConnection, String)}, {@link #isPredicate(RepositoryConnection, String)}, 
+     * {@link #isObject(RepositoryConnection, String)} or {@link #isContext(RepositoryConnection, String)} according to your usecase. 
      */
     @Deprecated
     public static URI getUriResource(RepositoryConnection con, String uri) {
-    	URI r = con.getValueFactory().createURI(uri);
-    	if (isSubject(con, uri) || isContext(con, uri) || existsStatement(con, null, r, null, null) || existsStatement(con, null, null, r, null)) {
-    		return r;
+    	URI rsc = con.getValueFactory().createURI(uri);
+    	if (isUsed(con, rsc)) {
+    		return rsc;
     	} else {
     		return null;
     	}
-//        if(con instanceof SailRepositoryConnection && ((SailRepositoryConnection)con).getSailConnection() instanceof ResourceConnection) {
-//            return ((ResourceConnection) ((SailRepositoryConnection) con).getSailConnection()).getURI(uri);
-//        } else {
-//            return r;
-//        }
     }
 
     /**
@@ -123,11 +212,12 @@ public class ResourceUtils {
      * @return
      */
     public static BNode getAnonResource(RepositoryConnection con, String id) {
-        if(con instanceof SailRepositoryConnection && ((SailRepositoryConnection)con).getSailConnection() instanceof ResourceConnection) {
-            return ((ResourceConnection) ((SailRepositoryConnection) con).getSailConnection()).getBNode(id);
-        } else {
-            return con.getValueFactory().createBNode(id);
-        }
+    	final BNode bNode = con.getValueFactory().createBNode(id);
+    	if (isUsed(con, bNode)) {
+    		return bNode;
+    	} else {
+    		return null;
+    	}
     }
 
     /**


[04/21] MARMOTTA-110 created super-interface of RDFBackend for parsing: NodeBaclend

Posted by tk...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/AndTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/AndTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/AndTest.java
index d2a5f95..0344e3c 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/AndTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/AndTest.java
@@ -17,6 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.tests;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
 
@@ -58,7 +59,7 @@ public class AndTest<Node> extends ComplexTest<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return String.format("%s & %s", left.getPathExpression(rdfBackend), right.getPathExpression(rdfBackend));
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/FunctionTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/FunctionTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/FunctionTest.java
index 6612035..301b64d 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/FunctionTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/FunctionTest.java
@@ -22,6 +22,7 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.functions.TestFunction;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
@@ -62,7 +63,7 @@ public class FunctionTest<Node> extends NodeTest<Node> {
     }
 
     @Override
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         final StringBuilder sb = new StringBuilder("fn:");
         sb.append(test.getLocalName());
         sb.append("(");

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralLanguageTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralLanguageTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralLanguageTest.java
index 7445910..94d58d4 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralLanguageTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralLanguageTest.java
@@ -20,6 +20,7 @@ package org.apache.marmotta.ldpath.model.tests;
 
 import java.util.Locale;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
 
@@ -69,7 +70,7 @@ public class LiteralLanguageTest<Node> extends NodeTest<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return "@" + lang;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralTypeTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralTypeTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralTypeTest.java
index 32fefac..58bbad0 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralTypeTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/LiteralTypeTest.java
@@ -17,6 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.tests;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
 
@@ -71,7 +72,7 @@ public class LiteralTypeTest<Node> extends NodeTest<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return "^^" + typeUri;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/NotTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/NotTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/NotTest.java
index 5d12f1e..ad468fd 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/NotTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/NotTest.java
@@ -17,6 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.tests;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
 
@@ -34,7 +35,7 @@ public class NotTest<Node> extends NodeTest<Node> {
     }
 
     @Override
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         if (delegate instanceof ComplexTest<?>) {
             return String.format("!(%s)", delegate.getPathExpression(backend));
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/OrTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/OrTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/OrTest.java
index bdeaf60..20de073 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/OrTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/OrTest.java
@@ -17,6 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.tests;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
 
@@ -55,7 +56,7 @@ public class OrTest<Node> extends ComplexTest<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return String.format("%s | %s", left.getPathExpression(rdfBackend), right.getPathExpression(rdfBackend));
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathEqualityTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathEqualityTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathEqualityTest.java
index 457d4f1..5b6a044 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathEqualityTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathEqualityTest.java
@@ -17,6 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.tests;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
@@ -64,7 +65,7 @@ public class PathEqualityTest<Node> extends NodeTest<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         if (rdfBackend.isURI(node)) {
             return String.format("%s is <%s>", path.getPathExpression(rdfBackend), rdfBackend.stringValue(node));
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathTest.java
index c7f5382..cf76d64 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/PathTest.java
@@ -20,6 +20,7 @@ package org.apache.marmotta.ldpath.model.tests;
 
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
@@ -65,7 +66,7 @@ public class PathTest<Node> extends NodeTest<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return path.getPathExpression(rdfBackend);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
index b7422d6..d59e5d2 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/tests/functions/BinaryNumericTest.java
@@ -20,6 +20,7 @@ package org.apache.marmotta.ldpath.model.tests.functions;
 
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.functions.TestFunction;
 import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;
@@ -48,7 +49,7 @@ public abstract  class BinaryNumericTest<Node> extends TestFunction<Node> {
         return true;
     }
 
-    protected boolean test(RDFBackend<Node> backend, Node leftNode, Node rightNode) {
+    protected boolean test(NodeBackend<Node> backend, Node leftNode, Node rightNode) {
         try {
             return test(transformer.transform(backend, leftNode, null), transformer.transform(backend, rightNode, null));
         } catch (IllegalArgumentException e) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigDecimalTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigDecimalTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigDecimalTransformer.java
index 543ae9b..d15b185 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigDecimalTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigDecimalTransformer.java
@@ -21,7 +21,7 @@ package org.apache.marmotta.ldpath.model.transformers;
 import java.math.BigDecimal;
 import java.util.Map;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 /**
@@ -32,7 +32,7 @@ import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 public class BigDecimalTransformer<Node> implements NodeTransformer<BigDecimal,Node> {
 
     @Override
-    public BigDecimal transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public BigDecimal transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(backend.isLiteral(node)) {
             return backend.decimalValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigIntegerTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigIntegerTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigIntegerTransformer.java
index f4c95cb..02398a9 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigIntegerTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BigIntegerTransformer.java
@@ -20,7 +20,7 @@ package org.apache.marmotta.ldpath.model.transformers;
 import java.math.BigInteger;
 import java.util.Map;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 
@@ -32,7 +32,7 @@ import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 public class BigIntegerTransformer<Node> implements NodeTransformer<BigInteger,Node> {
 
     @Override
-    public BigInteger transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public BigInteger transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(backend.isLiteral(node)) {
             return backend.integerValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BooleanTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BooleanTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BooleanTransformer.java
index d8d908f..bd57ecd 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BooleanTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/BooleanTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -39,7 +39,7 @@ public class BooleanTransformer<Node> implements NodeTransformer<Boolean,Node> {
      * @return
      */
     @Override
-    public Boolean transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Boolean transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.booleanValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ByteTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ByteTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ByteTransformer.java
index 6088f39..03f001c 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ByteTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ByteTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -25,7 +25,7 @@ import java.util.Map;
 public class ByteTransformer<Node> implements NodeTransformer<Byte,Node> {
 
     @Override
-    public Byte transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Byte transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(backend.isLiteral(node)) {
             return backend.decimalValue(node).byteValueExact();
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTimeTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTimeTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTimeTransformer.java
index 8d855ec..3e6e173 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTimeTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTimeTransformer.java
@@ -21,7 +21,7 @@ package org.apache.marmotta.ldpath.model.transformers;
 import java.util.Date;
 import java.util.Map;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 /**
@@ -42,7 +42,7 @@ public class DateTimeTransformer<Node> implements NodeTransformer<Date,Node> {
      * @return
      */
     @Override
-    public Date transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Date transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.dateTimeValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTransformer.java
index 60a1181..c47387a 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DateTransformer.java
@@ -20,7 +20,7 @@ package org.apache.marmotta.ldpath.model.transformers;
 import java.util.Date;
 import java.util.Map;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 /**
@@ -41,7 +41,7 @@ public class DateTransformer<Node> implements NodeTransformer<Date,Node> {
      * @return
      */
     @Override
-    public Date transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Date transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.dateValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DoubleTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DoubleTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DoubleTransformer.java
index 37b37b5..83bec9c 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DoubleTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DoubleTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -38,7 +38,7 @@ public class DoubleTransformer<Node> implements NodeTransformer<Double,Node> {
      * @return
      */
     @Override
-    public Double transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Double transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.doubleValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DurationTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DurationTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DurationTransformer.java
index 57a50c6..37d7f54 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DurationTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/DurationTransformer.java
@@ -21,7 +21,7 @@ import javax.xml.datatype.DatatypeConfigurationException;
 import javax.xml.datatype.DatatypeFactory;
 import javax.xml.datatype.Duration;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -58,7 +58,7 @@ public class DurationTransformer<Node> implements NodeTransformer<Duration,Node>
         return xmlDatatypeFactory;
     }
     @Override
-    public Duration transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Duration transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(backend.isLiteral(node)) {
             return toDuration(backend.stringValue(node), false);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/FloatTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/FloatTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/FloatTransformer.java
index d2bbab5..f019df3 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/FloatTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/FloatTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -40,7 +40,7 @@ public class FloatTransformer<Node> implements NodeTransformer<Float,Node> {
      * @return
      */
     @Override
-    public Float transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Float transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.floatValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IdentityTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IdentityTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IdentityTransformer.java
index 0b3571d..f0fc6eb 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IdentityTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IdentityTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -39,7 +39,7 @@ public class IdentityTransformer<Node> implements NodeTransformer<Node,Node> {
      * @return
      */
     @Override
-    public Node transform(RDFBackend<Node> nodeRDFBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Node transform(NodeBackend<Node> nodeRDFBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         return node;
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IntTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IntTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IntTransformer.java
index ed18452..d0a33c9 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IntTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/IntTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -39,7 +39,7 @@ public class IntTransformer<Node> implements NodeTransformer<Integer,Node> {
      * @return
      */
     @Override
-    public Integer transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Integer transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.intValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/LongTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/LongTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/LongTransformer.java
index 0d4227d..4188e02 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/LongTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/LongTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -38,7 +38,7 @@ public class LongTransformer<Node> implements NodeTransformer<Long,Node> {
      * @return
      */
     @Override
-    public Long transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Long transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.longValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ShortTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ShortTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ShortTransformer.java
index 352f6a1..66fcfa1 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ShortTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/ShortTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -25,7 +25,7 @@ import java.util.Map;
 public class ShortTransformer<Node> implements NodeTransformer<Short,Node> {
 
     @Override
-    public Short transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Short transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(backend.isLiteral(node)) {
             return backend.decimalValue(node).shortValueExact();
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/StringTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/StringTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/StringTransformer.java
index 5dfc973..addb444 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/StringTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/StringTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 import java.util.Map;
@@ -39,7 +39,7 @@ public class StringTransformer<Node> implements NodeTransformer<String,Node> {
      * @return
      */
     @Override
-    public String transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public String transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         return backend.stringValue(node);
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/TimeTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/TimeTransformer.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/TimeTransformer.java
index 0289ddb..887c0eb 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/TimeTransformer.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/transformers/TimeTransformer.java
@@ -21,7 +21,7 @@ package org.apache.marmotta.ldpath.model.transformers;
 import java.util.Date;
 import java.util.Map;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 
 /**
@@ -40,7 +40,7 @@ public class TimeTransformer<Node> implements NodeTransformer<Date,Node> {
      * @return
      */
     @Override
-    public Date transform(RDFBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
+    public Date transform(NodeBackend<Node> rdfBackend, Node node, Map<String, String> configuration) throws IllegalArgumentException {
         if(rdfBackend.isLiteral(node)) {
             return rdfBackend.timeValue(node);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj b/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
index b490fb8..dc5d308 100644
--- a/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
+++ b/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
@@ -76,17 +76,17 @@ public class RdfPathParser<Node> {
          */
         private Map<String,String> namespaces = new HashMap<String,String>();
 
-        private RDFBackend<Node> backend;
+        private NodeBackend<Node> backend;
 
         private Configuration config;
 
         private Mode mode = Mode.PROGRAM;
 
-        public RdfPathParser(RDFBackend<Node> backend, Reader in) {
+        public RdfPathParser(NodeBackend<Node> backend, Reader in) {
             this(backend,null,in);
         }
 
-        public RdfPathParser(RDFBackend<Node> backend, Configuration config, Reader in) {
+        public RdfPathParser(NodeBackend<Node> backend, Configuration config, Reader in) {
             this(in);
             this.backend = backend;
             if(config == null) {
@@ -98,11 +98,11 @@ public class RdfPathParser<Node> {
             initialise();
         }
 
-        public RdfPathParser(RDFBackend<Node> backend, InputStream in) {
+        public RdfPathParser(NodeBackend<Node> backend, InputStream in) {
             this(backend,null,in);
         }
 
-        public RdfPathParser(RDFBackend<Node> backend, Configuration config, InputStream in) {
+        public RdfPathParser(NodeBackend<Node> backend, Configuration config, InputStream in) {
             this(in);
             this.backend = backend;
             if(config == null) {
@@ -114,11 +114,11 @@ public class RdfPathParser<Node> {
             initialise();
         }
 
-        public RdfPathParser(RDFBackend<Node> backend, InputStream in, String encoding) {
+        public RdfPathParser(NodeBackend<Node> backend, InputStream in, String encoding) {
             this(backend,null,in,encoding);
         }
 
-        public RdfPathParser(RDFBackend<Node> backend, Configuration config, InputStream in, String encoding) {
+        public RdfPathParser(NodeBackend<Node> backend, Configuration config, InputStream in, String encoding) {
             this(in,encoding);
             this.backend = backend;
             if(config == null) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/EmptyTestingBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/EmptyTestingBackend.java b/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/EmptyTestingBackend.java
index dfaf5cd..65329f0 100644
--- a/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/EmptyTestingBackend.java
+++ b/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/EmptyTestingBackend.java
@@ -19,93 +19,57 @@ package org.apache.marmotta.ldpath.parser;
 
 
 import java.net.URI;
-import java.util.Collection;
 import java.util.Locale;
-import java.util.concurrent.ThreadPoolExecutor;
 
 import org.apache.marmotta.ldpath.model.backend.AbstractBackend;
 
 
 public class EmptyTestingBackend extends
 		AbstractBackend<String> {
-	@Override
-	public boolean supportsThreading() {
-		// TODO Auto-generated method stub
-		return false;
-	}
-
-	@Override
-	public ThreadPoolExecutor getThreadPool() {
-		// TODO Auto-generated method stub
-		return null;
-	}
 
 	@Override
 	public boolean isLiteral(String n) {
-		// TODO Auto-generated method stub
 		return false;
 	}
 
 	@Override
 	public boolean isURI(String n) {
-		// TODO Auto-generated method stub
 		return false;
 	}
 
 	@Override
 	public boolean isBlank(String n) {
-		// TODO Auto-generated method stub
 		return false;
 	}
 
 	@Override
 	public Locale getLiteralLanguage(String n) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 
 	@Override
 	public URI getLiteralType(String n) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 
 	@Override
 	public String createLiteral(String content) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 
 	@Override
 	public String createLiteral(String content, Locale language,
 			URI type) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 
 	@Override
 	public String createURI(String uri) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public Collection<String> listObjects(String subject,
-			String property) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public Collection<String> listSubjects(String property,
-			String object) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 
 	@Override
 	public String stringValue(String node) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/ParserTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/ParserTest.java b/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/ParserTest.java
index b914628..f7bcbe8 100644
--- a/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/ParserTest.java
+++ b/libraries/ldpath/ldpath-core/src/test/java/org/apache/marmotta/ldpath/parser/ParserTest.java
@@ -17,17 +17,11 @@
  */
 package org.apache.marmotta.ldpath.parser;
 
-import org.apache.marmotta.ldpath.parser.ParseException;
-import org.apache.marmotta.ldpath.parser.RdfPathParser;
-import org.apache.commons.io.IOUtils;
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
-import org.apache.marmotta.ldpath.api.tests.NodeTest;
-import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
-import org.apache.marmotta.ldpath.model.programs.Program;
-import org.hamcrest.CoreMatchers;
-import org.junit.Assume;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 import java.io.IOException;
 import java.io.StringReader;
@@ -36,12 +30,20 @@ import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
-import static org.junit.Assert.*;
+import org.apache.commons.io.IOUtils;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
+import org.apache.marmotta.ldpath.api.tests.NodeTest;
+import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
+import org.apache.marmotta.ldpath.model.programs.Program;
+import org.hamcrest.CoreMatchers;
+import org.junit.Assume;
+import org.junit.BeforeClass;
+import org.junit.Test;
 
 
 public class ParserTest {
 
-    private static RDFBackend<String> backend;
+    private static NodeBackend<String> backend;
     private static final String NS_TEST = "http://example.com/";
     private static final String NS_FOO = "http://foo.com/some/path#";
 
@@ -113,7 +115,7 @@ public class ParserTest {
         RdfPathParser<String> rdfPathParser = new RdfPathParser<String>(backend,new StringReader(IOUtils.toString(resource)));
         rdfPathParser.registerTransformer(NS_TEST + "type", new NodeTransformer<String, String>() {
             @Override
-            public String transform(RDFBackend<String> backend, String node, Map<String,String> configuration)
+            public String transform(NodeBackend<String> backend, String node, Map<String,String> configuration)
                     throws IllegalArgumentException {
                 return node;
             }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-functions-collections/src/main/java/org/apache/marmotta/ldpath/model/functions/coll/AbstractCollFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-collections/src/main/java/org/apache/marmotta/ldpath/model/functions/coll/AbstractCollFunction.java b/libraries/ldpath/ldpath-functions-collections/src/main/java/org/apache/marmotta/ldpath/model/functions/coll/AbstractCollFunction.java
index 9d550f0..ff6af3a 100644
--- a/libraries/ldpath/ldpath-functions-collections/src/main/java/org/apache/marmotta/ldpath/model/functions/coll/AbstractCollFunction.java
+++ b/libraries/ldpath/ldpath-functions-collections/src/main/java/org/apache/marmotta/ldpath/model/functions/coll/AbstractCollFunction.java
@@ -20,6 +20,7 @@ package org.apache.marmotta.ldpath.model.functions.coll;
 
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.functions.SelectorFunction;
 
@@ -27,7 +28,7 @@ public abstract class AbstractCollFunction<Node> extends SelectorFunction<Node>
 
     protected static final String RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
 
-    protected int getIndex(RDFBackend<Node> backend, Collection<Node> collection) {
+    protected int getIndex(NodeBackend<Node> backend, Collection<Node> collection) {
         if (collection.size() != 1) { throw new IllegalArgumentException("index must be a singel integer literal"); }
         return backend.intValue(collection.iterator().next());
     }
@@ -36,7 +37,7 @@ public abstract class AbstractCollFunction<Node> extends SelectorFunction<Node>
         return backend.listObjects(node, backend.createURI(RDF + "type")).contains(backend.createURI(type));
     }
 
-    protected boolean isNil(RDFBackend<Node> backend, Node node) {
+    protected boolean isNil(NodeBackend<Node> backend, Node node) {
         return backend.isURI(node) && backend.stringValue(node).equals(RDF + "nil");
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MaxFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MaxFunction.java b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MaxFunction.java
index 67bad62..a403303 100644
--- a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MaxFunction.java
+++ b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MaxFunction.java
@@ -22,6 +22,7 @@ import java.net.URI;
 import java.util.ArrayList;
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.model.Constants;
 import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;
@@ -45,7 +46,7 @@ public class MaxFunction<Node> extends MathFunction<Node> {
         return result;
     }
 
-    protected Node calc(RDFBackend<Node> backend, Collection<Node> arg) {
+    protected Node calc(NodeBackend<Node> backend, Collection<Node> arg) {
         /* MAX */
         double d = Double.MIN_VALUE;
         Node max = null;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MinFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MinFunction.java b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MinFunction.java
index ababd26..ada8303 100644
--- a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MinFunction.java
+++ b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/MinFunction.java
@@ -22,6 +22,7 @@ import java.net.URI;
 import java.util.ArrayList;
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.model.Constants;
 import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;
@@ -46,7 +47,7 @@ public class MinFunction<Node> extends MathFunction<Node> {
         return result;
     }
 
-    protected Node calc(RDFBackend<Node> backend, Collection<Node> arg) {
+    protected Node calc(NodeBackend<Node> backend, Collection<Node> arg) {
         /* MIN */
         double d = Double.MAX_VALUE;
         Node min = null;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/RoundFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/RoundFunction.java b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/RoundFunction.java
index af68edd..9a18a8e 100644
--- a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/RoundFunction.java
+++ b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/RoundFunction.java
@@ -22,6 +22,7 @@ import java.net.URI;
 import java.util.ArrayList;
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.model.Constants;
 import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;
@@ -48,7 +49,7 @@ public class RoundFunction<Node> extends MathFunction<Node> {
         return result;
     }
 
-    protected Node calc(RDFBackend<Node> backend, Node node) {
+    protected Node calc(NodeBackend<Node> backend, Node node) {
         /* SUM */
         try {
             Double val = doubleTransformer.transform(backend, node, null);

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/SumFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/SumFunction.java b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/SumFunction.java
index 264cb6a..a78d68b 100644
--- a/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/SumFunction.java
+++ b/libraries/ldpath/ldpath-functions-math/src/main/java/org/apache/marmotta/ldpath/model/functions/math/SumFunction.java
@@ -22,6 +22,7 @@ import java.net.URI;
 import java.util.ArrayList;
 import java.util.Collection;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.model.Constants;
 import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;
@@ -45,7 +46,7 @@ public class SumFunction<Node> extends MathFunction<Node> {
         return result;
     }
 
-    protected Node calc(RDFBackend<Node> backend, Collection<Node> arg) {
+    protected Node calc(NodeBackend<Node> backend, Collection<Node> arg) {
         /* SUM */
         Double d = 0d;
         for (Node n : arg) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathDirective.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathDirective.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathDirective.java
index 32a4983..78902e8 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathDirective.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathDirective.java
@@ -26,6 +26,7 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.marmotta.ldpath.LDPath;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.exception.LDPathParseException;
 import org.apache.marmotta.ldpath.model.Constants;
@@ -68,7 +69,7 @@ public class LDPathDirective<Node> implements TemplateDirectiveModel {
 
 
     private LDPath<Node>     ldpath;
-    private RDFBackend<Node> backend;
+    private NodeBackend<Node> backend;
 
     public LDPathDirective(RDFBackend<Node> backend) {
         this.ldpath  = new LDPath<Node>(backend);

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathMethod.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathMethod.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathMethod.java
index a2c8584..e1a175d 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathMethod.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/engine/LDPathMethod.java
@@ -28,6 +28,7 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.marmotta.ldpath.LDPath;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.exception.LDPathParseException;
 import org.apache.marmotta.ldpath.model.Constants;
@@ -45,7 +46,7 @@ public class LDPathMethod<Node> implements TemplateMethodModel {
 
 
     private LDPath<Node> ldpath;
-    private RDFBackend<Node> backend;
+    private NodeBackend<Node> backend;
 
     public LDPathMethod(RDFBackend<Node> backend) {
         this.ldpath  = new LDPath<Node>(backend);

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/freemarker/TemplateNodeModel.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/freemarker/TemplateNodeModel.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/freemarker/TemplateNodeModel.java
index 89a507e..91fc21c 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/freemarker/TemplateNodeModel.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/freemarker/TemplateNodeModel.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.freemarker;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 
 import freemarker.template.*;
 
@@ -29,9 +29,9 @@ import freemarker.template.*;
 public class TemplateNodeModel<Node> implements TemplateModel, TemplateHashModel, AdapterTemplateModel {
 
     private Node node;
-    private RDFBackend<Node> backend;
+    private NodeBackend<Node> backend;
 
-    public TemplateNodeModel(Node node, RDFBackend<Node> backend) {
+    public TemplateNodeModel(Node node, NodeBackend<Node> backend) {
         this.node    = node;
         this.backend = backend;
     }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateBooleanTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateBooleanTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateBooleanTransformer.java
index 5ea2d96..b6df026 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateBooleanTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateBooleanTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.BooleanTransformer;
 
@@ -50,7 +50,7 @@ public class TemplateBooleanTransformer<Node> implements NodeTransformer<Templat
      * @return
      */
     @Override
-    public TemplateBooleanModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateBooleanModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateBooleanModel() {
             @Override
             public boolean getAsBoolean() throws TemplateModelException {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDateTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDateTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDateTransformer.java
index 4bee1de..57f0a70 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDateTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDateTransformer.java
@@ -23,7 +23,7 @@ import freemarker.template.TemplateModelException;
 import java.util.Date;
 import java.util.Map;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.DateTimeTransformer;
 
@@ -57,7 +57,7 @@ public class TemplateDateTransformer<Node> implements NodeTransformer<TemplateDa
      * @return
      */
     @Override
-    public TemplateDateModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateDateModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateDateModel() {
             @Override
             public Date getAsDate() throws TemplateModelException {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDoubleTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDoubleTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDoubleTransformer.java
index b19f327..594ea93 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDoubleTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateDoubleTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.DoubleTransformer;
 
@@ -52,7 +52,7 @@ public class TemplateDoubleTransformer<Node> implements NodeTransformer<Template
      * @return
      */
     @Override
-    public TemplateNumberModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateNumberModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateNumberModel() {
             @Override
             public Number getAsNumber() throws TemplateModelException {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateFloatTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateFloatTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateFloatTransformer.java
index 71610ef..d8d2c2a 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateFloatTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateFloatTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.FloatTransformer;
 
@@ -50,7 +50,7 @@ public class TemplateFloatTransformer<Node> implements NodeTransformer<TemplateN
      * @return
      */
     @Override
-    public TemplateNumberModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateNumberModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateNumberModel() {
             @Override
             public Number getAsNumber() throws TemplateModelException {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateIntegerTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateIntegerTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateIntegerTransformer.java
index e7d03a9..5df8bd6 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateIntegerTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateIntegerTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.IntTransformer;
 
@@ -50,7 +50,7 @@ public class TemplateIntegerTransformer<Node> implements NodeTransformer<Templat
      * @return
      */
     @Override
-    public TemplateNumberModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateNumberModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateNumberModel() {
             @Override
             public Number getAsNumber() throws TemplateModelException {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateLongTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateLongTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateLongTransformer.java
index 509e32a..9fc20b0 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateLongTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateLongTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.LongTransformer;
 
@@ -50,7 +50,7 @@ public class TemplateLongTransformer<Node> implements NodeTransformer<TemplateNu
      * @return
      */
     @Override
-    public TemplateNumberModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateNumberModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateNumberModel() {
             @Override
             public Number getAsNumber() throws TemplateModelException {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateScalarTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateScalarTransformer.java b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateScalarTransformer.java
index 148c5ff..980a030 100644
--- a/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateScalarTransformer.java
+++ b/libraries/ldpath/ldpath-template/src/main/java/org/apache/marmotta/ldpath/template/model/transformers/TemplateScalarTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.template.model.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
 import org.apache.marmotta.ldpath.model.transformers.StringTransformer;
 
@@ -51,7 +51,7 @@ public class TemplateScalarTransformer<Node> implements NodeTransformer<Template
      * @return
      */
     @Override
-    public TemplateScalarModel transform(final RDFBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
+    public TemplateScalarModel transform(final NodeBackend<Node> nodeRDFBackend, final Node node, final Map<String, String> configuration) throws IllegalArgumentException {
         return new TemplateScalarModel() {
             @Override
             public String getAsString() throws TemplateModelException {


[18/21] git commit: Revert "fixes bug in cors service (DELETE was not supported)"

Posted by tk...@apache.org.
Revert "fixes bug in cors service (DELETE was not supported)"

This reverts commit 0ac19180dfaae087cd1496dd1ef918e7014c0c4c.


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/a173309e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/a173309e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/a173309e

Branch: refs/heads/master
Commit: a173309eeacd8607ed5f193041b80d8bdcca84a9
Parents: 0ac1918
Author: tkurz <tk...@apache.org>
Authored: Fri Apr 12 00:03:22 2013 +0200
Committer: tkurz <tk...@apache.org>
Committed: Fri Apr 12 00:03:22 2013 +0200

----------------------------------------------------------------------
 .../src/main/webapp/WEB-INF/web.xml                |   11 -----
 .../src/main/webapp/WEB-INF/web.xml                |   33 ++++-----------
 2 files changed, 9 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/a173309e/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
index 9a01350..a44d704 100644
--- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
+++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
@@ -67,17 +67,6 @@
     <filter>
         <filter-name>CORS</filter-name>
         <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
-
-        <init-param>
-            <param-name>cors.supportedMethods</param-name>
-            <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
-        </init-param>
-
-        <init-param>
-            <param-name>cors.supportedHeaders</param-name>
-            <param-value>Origin, Accept</param-value>
-        </init-param>
-
     </filter>
     <filter-mapping>
         <filter-name>CORS</filter-name>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/a173309e/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
index 7c9c5f4..465a199 100644
--- a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
+++ b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
@@ -49,39 +49,24 @@
         <param-value>/tmp/marmotta</param-value>
     </context-param>
 
-    <!-- enables a cors filter and maps it to any request -->
-    <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
-
+    <!-- this filter performs startup configurations for first installation -->
     <filter>
-        <!-- The CORS filter with parameters -->
-        <filter-name>CORS</filter-name>
-        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
-
-        <init-param>
-            <param-name>cors.supportedMethods</param-name>
-            <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
-        </init-param>
-
-        <init-param>
-            <param-name>cors.supportedHeaders</param-name>
-            <param-value>Origin, Accept</param-value>
-        </init-param>
-
+        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
     </filter>
-
     <filter-mapping>
-        <!-- CORS Filter mapping -->
-        <filter-name>CORS</filter-name>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 
-    <!-- this filter performs startup configurations for first installation -->
+    <!-- enables a cors filter and maps it to any request -->
+    <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
     <filter>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
-        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
+        <filter-name>CORS</filter-name>
+        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
     </filter>
     <filter-mapping>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <filter-name>CORS</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 


[03/21] git commit: some cleanup (MARMOTTA-110)

Posted by tk...@apache.org.
some cleanup (MARMOTTA-110)

Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/bee275f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/bee275f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/bee275f2

Branch: refs/heads/master
Commit: bee275f2fabd0ff9bd4f2c7f36619a7d1673cfbc
Parents: 4dd5de6
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Mar 27 15:43:09 2013 +0100
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Mar 27 16:34:53 2013 +0100

----------------------------------------------------------------------
 .../marmotta/ldpath/backend/file/ParserTest.java   |   13 +++----------
 .../marmotta/ldpath/backend/file/PathTest.java     |    1 -
 2 files changed, 3 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/bee275f2/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java
index a30029d..0eb7b99 100644
--- a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java
+++ b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java
@@ -37,7 +37,7 @@ import java.util.Map;
 
 import org.apache.commons.io.IOUtils;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
-import org.apache.marmotta.ldpath.backend.sesame.SesameRepositoryBackend;
+import org.apache.marmotta.ldpath.backend.sesame.SesameValueBackend;
 import org.apache.marmotta.ldpath.model.programs.Program;
 import org.apache.marmotta.ldpath.model.selectors.PathSelector;
 import org.apache.marmotta.ldpath.model.selectors.PropertySelector;
@@ -50,11 +50,7 @@ import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.openrdf.model.Value;
-import org.openrdf.repository.Repository;
 import org.openrdf.repository.RepositoryException;
-import org.openrdf.repository.sail.SailRepository;
-import org.openrdf.sail.memory.MemoryStore;
-
 
 import com.google.common.collect.ImmutableMap;
 
@@ -65,14 +61,11 @@ import com.google.common.collect.ImmutableMap;
  */
 public class ParserTest {
 
-    private static SesameRepositoryBackend backend;
+    private static SesameValueBackend backend;
 
     @BeforeClass
     public static void setupRepository() throws RepositoryException {
-        Repository repository = new SailRepository(new MemoryStore());
-        repository.initialize();
-
-        backend = new SesameRepositoryBackend(repository);
+        backend = new SesameValueBackend();
     }
 
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/bee275f2/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
index 9749b78..aceb25a 100644
--- a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
+++ b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
@@ -33,7 +33,6 @@ package org.apache.marmotta.ldpath.backend.file;
  */
 
 import static org.hamcrest.Matchers.hasItem;
-import static org.hamcrest.Matchers.hasItems;
 
 import java.util.Collection;
 import java.util.HashMap;


[11/21] Revert "Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop"

Posted by tk...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/NOTICE
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/NOTICE b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/NOTICE
deleted file mode 100644
index 7474373..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Snorql includes the xml-to-html.xsl files, witch has copyright 2006 by 
-Dave Beckett (DAWG), Jeen Broekstra (DAWG) and Andy Seaborne (SPARQler). 
-
-Snorql includes the sparql.js files, witch has copyright 2006, 2007
-Lee Feigenbaum, Elias Torres and Wing Yung.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
index 7eccd80..7db1f83 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/namespaces.js
@@ -1,6 +1,4 @@
 /*
- * Copyright (c) 2007 Richard Cyganiak
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements. See the NOTICE file
  * distributed with this work for additional information

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/prototype.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/prototype.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/prototype.js
index 35a6913..3548fc0 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/prototype.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/prototype.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 /*  Prototype JavaScript framework, version 1.6.0.2
  *  (c) 2005-2008 Sam Stephenson
  *
@@ -4218,4 +4235,4 @@ Object.extend(Element.ClassNames.prototype, Enumerable);
 
 /*--------------------------------------------------------------------------*/
 
-Element.addMethods();
+Element.addMethods();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/builder.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/builder.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/builder.js
index 8301999..afa33df 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/builder.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/builder.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us builder.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/controls.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/controls.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/controls.js
index 7ab3eff..278f99b 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/controls.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/controls.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us controls.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
 // Autocompleter.Base handles all the autocompletion functionality

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/dragdrop.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/dragdrop.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/dragdrop.js
index 2cceb0f..dde6393 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/dragdrop.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/dragdrop.js
@@ -1,10 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us dragdrop.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
-// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
 if(Object.isUndefined(Effect))
   throw("dragdrop.js requires including script.aculo.us' effects.js library");
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/effects.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/effects.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/effects.js
index f136b56..113aff6 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/effects.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/effects.js
@@ -1,10 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us effects.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
-// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
 // converts rgb() and #xxx to #xxxxxx format,
 // returns self (or first argument) if not convertable  
 String.prototype.parseColor = function() {  

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/scriptaculous.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/scriptaculous.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/scriptaculous.js
index e84bd9c..6d5a6ee 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/scriptaculous.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/scriptaculous.js
@@ -1,10 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
-// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
 var Scriptaculous = {
   Version: '1.8.1',
   require: function(libraryName) {
@@ -37,4 +49,4 @@ var Scriptaculous = {
   }
 }
 
-Scriptaculous.load();
+Scriptaculous.load();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/slider.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/slider.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/slider.js
index 75a1b96..1279f94 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/slider.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/slider.js
@@ -1,10 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us slider.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
-// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
 if (!Control) var Control = { };
 
 // options:

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/sound.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/sound.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/sound.js
index a61a43a..4d1b027 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/sound.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/sound.js
@@ -1,10 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us sound.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
-// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
 Sound = {
   tracks: {},
   _enabled: true,

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/unittest.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/unittest.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/unittest.js
index 6cadccd..e40149c 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/unittest.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous/unittest.js
@@ -1,10 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 // script.aculo.us unittest.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008
 
-// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
 // experimental, Firefox-only
 Event.simulateMouse = function(element, eventName) {
   var options = Object.extend({
@@ -563,4 +575,4 @@ Test.context = function(name, spec, log){
     }
   }
   new Test.Unit.Runner(compiledSpec, { titles: titles, testLog: log || 'testlog', context: name });
-};
+};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.html b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.html
index aead0a1..b45fcac 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.html
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.html
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
-    Copyright (c) 2007 Richard Cyganiak
 
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements. See the NOTICE file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.js
index df47c72..22f3b6a 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/snorql.js
@@ -1,6 +1,4 @@
 /*
- * Copyright (c) 2007 Richard Cyganiak
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements. See the NOTICE file
  * distributed with this work for additional information

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/sparql.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/sparql.js b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/sparql.js
index 613c53f..2b34538 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/sparql.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/sparql.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
 /**********************************************************
   Copyright (c) 2006, 2007
     Lee Feigenbaum ( lee AT thefigtrees DOT net )

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/snorql/style.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/style.css b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/style.css
index 329379a..f94ce4b 100755
--- a/platform/marmotta-sparql/src/main/resources/web/admin/snorql/style.css
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/snorql/style.css
@@ -1,6 +1,4 @@
 /**
- * Copyright (c) 2007 Richard Cyganiak
- *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements. See the NOTICE file
  * distributed with this work for additional information

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/cm/LICENSE.txt
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/cm/LICENSE.txt b/platform/marmotta-sparql/src/main/resources/web/cm/LICENSE.txt
deleted file mode 100644
index 482d55e..0000000
--- a/platform/marmotta-sparql/src/main/resources/web/cm/LICENSE.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-Please note that some subdirectories of the CodeMirror distribution
-include their own LICENSE files, and are released under different
-licences.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.css b/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.css
index a554b5a..b5385d7 100644
--- a/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.css
+++ b/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.css
@@ -1,23 +1,19 @@
 /**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 #center .CodeMirror, .CodeMirror {
   line-height: 1em;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.js b/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.js
index a745ac2..72609ee 100644
--- a/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.js
+++ b/platform/marmotta-sparql/src/main/resources/web/cm/codemirror.js
@@ -1,25 +1,20 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 // CodeMirror version 2.24
 //
 // All functions that need access to the editor's state live inside

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.css b/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.css
index 37ad0d4..c7a040c 100644
--- a/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.css
+++ b/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.css
@@ -1,25 +1,20 @@
 /**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 #center .CodeMirror-completions, .CodeMirror-completions {
   position: absolute;
   z-index: 10;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.js b/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.js
index f1c2b1b..27f8ead 100644
--- a/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.js
+++ b/platform/marmotta-sparql/src/main/resources/web/cm/simple-hint.js
@@ -1,25 +1,20 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 (function() {
   CodeMirror.simpleHint = function(editor, getHints) {
     // We want a single cursor position.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/cm/sparql.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/cm/sparql.js b/platform/marmotta-sparql/src/main/resources/web/cm/sparql.js
index a089abb..ff3ad70 100644
--- a/platform/marmotta-sparql/src/main/resources/web/cm/sparql.js
+++ b/platform/marmotta-sparql/src/main/resources/web/cm/sparql.js
@@ -1,25 +1,20 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 CodeMirror.defineMode("sparql", function(config) {
   var indentUnit = config.indentUnit;
   var curPunc;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-user/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-user/pom.xml b/platform/marmotta-user/pom.xml
index 0f0b7d5..c134b26 100644
--- a/platform/marmotta-user/pom.xml
+++ b/platform/marmotta-user/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-versioning/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-versioning/pom.xml b/platform/marmotta-versioning/pom.xml
index 3b6d6ac..0f3bbb1 100644
--- a/platform/marmotta-versioning/pom.xml
+++ b/platform/marmotta-versioning/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/pom.xml
----------------------------------------------------------------------
diff --git a/platform/pom.xml b/platform/pom.xml
index c34c6de..8c7a027 100644
--- a/platform/pom.xml
+++ b/platform/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3f3b938..dbb2d40 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>parent</relativePath>
     </parent>
 
@@ -329,14 +329,7 @@
                                                 <include name="*.tar.gz" />
                                             </fileset>
                                         </checksum>
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-installer.zip" algorithm="SHA1" property="checksum.installer.zip" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-installer.tar.gz" algorithm="SHA1" property="checksum.installer.tgz" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-ldpath.zip" algorithm="SHA1" property="checksum.ldpath.zip" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-ldpath.tar.gz" algorithm="SHA1" property="checksum.ldpath.tgz" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-src.zip" algorithm="SHA1" property="checksum.src.zip" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-src.tar.gz" algorithm="SHA1" property="checksum.src.tgz" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-webapp.zip" algorithm="SHA1" property="checksum.webapp.zip" />
-                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-webapp.tar.gz" algorithm="SHA1" property="checksum.webapp.tgz" />
+                                        <checksum file="${basedir}/target/${project.version}/apache-marmotta-${project.version}-src.zip" algorithm="SHA1" property="checksum" />
                                         <echo file="${basedir}/target/vote.txt">
 From: ${username}@apache.org
 To: dev@marmotta.incubator.apache.org
@@ -346,23 +339,11 @@ A candidate for the Marmotta ${project.version} release is available at:
 
 https://dist.apache.org/repos/dist/dev/incubator/marmotta/${project.version}/
 
-The release candidate is based on the sources tagged with ${project.version} in:
+The release candidate is a zip archive of the sources in:
 
 https://git-wip-us.apache.org/repos/asf/incubator-marmotta.git
 
-The release candidate consists of the following distribution archives:
-- apache-marmotta-${project.version}-installer.[zip|tar.gz]
-  SHA1 of ZIP: ${checksum.installer.zip}
-  SHA1 of TGZ: ${checksum.installer.tgz}
-- apache-marmotta-${project.version}-ldpath.[zip|tar.gz]
-  SHA1 of ZIP: ${checksum.ldpath.zip}
-  SHA1 of TGZ: ${checksum.ldpath.tgz}
-- apache-marmotta-${project.version}-src.[zip|tar.gz]
-  SHA1 of ZIP: ${checksum.src.zip}
-  SHA1 of TGZ: ${checksum.src.tgz}
-- apache-marmotta-${project.version}-webapp.[zip|tar.gz]
-  SHA1 of ZIP: ${checksum.webapp.zip}
-  SHA1 of TGZ: ${checksum.webapp.tgz}
+The SHA1 checksum of the archive is ${checksum}.
 
 A staged Maven repository is available for review at:
 


[16/21] git commit: fixes bug in cors service (DELETE was not supported)

Posted by tk...@apache.org.
fixes bug in cors service (DELETE was not supported)


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/425e9a78
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/425e9a78
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/425e9a78

Branch: refs/heads/master
Commit: 425e9a78ee7f935f4846fa16b6694ec092ec415c
Parents: 61f72cb 4dfdb52
Author: tkurz <tk...@apache.org>
Authored: Thu Apr 11 23:58:46 2013 +0200
Committer: tkurz <tk...@apache.org>
Committed: Thu Apr 11 23:58:46 2013 +0200

----------------------------------------------------------------------
 .../src/main/webapp/WEB-INF/web.xml                |    9 +-
 build/plugins/refpack-maven-plugin/pom.xml         |   15 ++
 .../maven/plugins/refpack/RefPackMojo.java         |   53 ++---
 build/scripts/check_signatures_and_digests.sh      |    4 +-
 .../src/test/resources/logback.xml                 |   27 +++
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 launchers/marmotta-installer/pom.xml               |    6 +-
 .../src/main/webapp/WEB-INF/web.xml                |   12 -
 .../apache/marmotta/kiwi/test/TransactionTest.java |   15 ++
 .../src/test/resources/logback.xml                 |    2 +-
 .../src/test/resources/logback.xml                 |    2 +-
 .../kiwi/persistence/mysql/statements.properties   |    6 +-
 .../versioning/test/SnapshotRepositoryTest.java    |   19 ++
 .../versioning/test/VersioningPersistenceTest.java |   18 ++
 .../versioning/test/VersioningRepositoryTest.java  |   20 ++
 .../backend/file/test/LDCacheBackendTest.java      |   18 ++
 .../src/test/resources/logback.xml                 |    2 +-
 .../backend/kiwi/test/LDCacheBackendTest.java      |   19 ++
 .../backend/kiwi/test/LDCachePersistenceTest.java  |   18 ++
 .../src/test/resources/logback.xml                 |    2 +-
 .../ldcache-core/src/test/resources/logback.xml    |    2 +-
 .../src/test/resources/logback.xml                 |    2 +-
 .../src/test/resources/logback.xml                 |    2 +-
 .../marmotta/ldclient/test/TestLDClientTest.java   |   19 ++
 .../ldclient-core/src/test/resources/logback.xml   |    2 +-
 .../test/facebook/FacebookProviderTest.java        |   16 ++
 .../src/test/resources/logback.xml                 |   27 +++
 .../src/test/resources/logback.xml                 |    6 +-
 .../test/mediawiki/TestMediawikiProvider.java      |   17 ++
 .../src/test/resources/logback.xml                 |   27 +++
 .../src/test/resources/logback.xml                 |   27 +++
 .../ldclient/test/vimeo/TestVimeoProvider.java     |   17 ++
 .../src/test/resources/logback.xml                 |   27 +++
 .../ldclient/test/youtube/TestYoutubeProvider.java |   17 ++
 .../src/test/resources/logback.xml                 |   27 +++
 .../src/test/resources/logback.xml                 |   27 +++
 .../marmotta/ldpath/test/AbstractTestBase.java     |   20 ++
 .../ldpath-core/src/test/resources/logback.xml     |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../platform/core/rio/RDFHtmlWriterImpl.java       |    2 +-
 .../services/templating/TemplatingServiceImpl.java |    2 +-
 .../src/main/resources/META-INF/LICENSE            |  166 +++++++++++++--
 .../src/main/resources/META-INF/NOTICE             |   31 ++-
 .../src/main/resources/META-INF/LICENSE            |  160 ++++++++++++++-
 .../src/main/resources/META-INF/NOTICE             |   32 +++-
 pom.xml                                            |   27 ++-
 56 files changed, 899 insertions(+), 148 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/425e9a78/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
----------------------------------------------------------------------
diff --cc libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
index 10ad516,e5335fa..9d723f3
--- a/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
+++ b/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
@@@ -34,10 -35,17 +34,15 @@@ import org.apache.marmotta.kiwi.version
  import org.junit.After;
  import org.junit.Assert;
  import org.junit.Before;
+ import org.junit.Rule;
  import org.junit.Test;
+ import org.junit.rules.TestWatcher;
+ import org.junit.runner.Description;
  import org.junit.runner.RunWith;
  import org.junit.runners.Parameterized;
+ import org.slf4j.Logger;
+ import org.slf4j.LoggerFactory;
  
 -import java.sql.PreparedStatement;
 -import java.sql.ResultSet;
  import java.sql.SQLException;
  import java.util.ArrayList;
  import java.util.Date;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/425e9a78/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/rio/RDFHtmlWriterImpl.java
----------------------------------------------------------------------
diff --cc platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/rio/RDFHtmlWriterImpl.java
index 321dd22,321dd22..4562630
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/rio/RDFHtmlWriterImpl.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/rio/RDFHtmlWriterImpl.java
@@@ -221,7 -221,7 +221,7 @@@ public class RDFHtmlWriterImpl implemen
              data.put("LOGO", configurationService.getStringConfiguration("kiwi.pages.project."+project+".logo", project+".png"));
              data.put("CSS", configurationService.getStringConfiguration("kiwi.pages.project."+project+".css", "core/public/style/"+project+".css"));
              data.put("FOOTER", configurationService.getStringConfiguration("kiwi.pages.project."+project+".footer", "(footer not properly configured for project "+project+")"));
--            data.put("DEFAULT_STYLE", configurationService.getStringConfiguration("kiwi.pages.style", "marmotta"));
++            data.put("DEFAULT_STYLE", configurationService.getStringConfiguration("kiwi.pages.style_path", "/"));
  
              //set timemap link
              if(configurationService.getBooleanConfiguration("versioning.enabled")) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/425e9a78/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
----------------------------------------------------------------------
diff --cc platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
index 5e4fcb5,5e4fcb5..392455e
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/templating/TemplatingServiceImpl.java
@@@ -59,7 -59,7 +59,7 @@@ public class TemplatingServiceImpl impl
      private static final String TEMPLATE_STRING = "admin.ftl";
      private static final String DEFAULT_REST_PATH = "/doc/rest/";
      private static final String DEFAULT_REST_FILE = "overview-summary.html";
--    private static final String DEFAULT_STYLE = "blue";
++    private static final String DEFAULT_STYLE = "/";
      private static final String DEFAULT_TITLE_FOR_WEBSERVICES = "webservices";
      private static final String DEFAULT_PROJECT = "marmotta";
  


[09/21] git commit: (MARMOTTA-187) fixed regex to match local names with ./-

Posted by tk...@apache.org.
(MARMOTTA-187) fixed regex to match local names with ./-


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/62ed603e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/62ed603e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/62ed603e

Branch: refs/heads/master
Commit: 62ed603e0e60788a60a5acfc00e07887db5e0c07
Parents: 28dfc81
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Apr 3 15:06:00 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Apr 3 15:09:51 2013 +0200

----------------------------------------------------------------------
 .../src/main/resources/web/cm/ldpath.js            |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/62ed603e/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js b/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
index 37f3a19..a560013 100644
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
@@ -178,12 +178,15 @@ CodeMirror.defineMode("ldpath", function(config, parserConfig) {
         }
 
         // IDENT
-        if (stream.match(/^\w+/, true)) {
-            if (state.current() == "prefix") {
+        if (state.current() == "prefix") {
+            if (stream.match(/^\w+/, true)) {
                 state.tmp["prefix"] = stream.current();
                 return token.PREFIX;
-            } else
+            }
+        } else {
+            if (stream.match(/^[\w.-]+/, true)) {
                 return token.IDENT;
+            }
         }
 
         return tokenError(stream, state);


[06/21] git commit: removed unnecessary template we used to implement MARMOTTA-136

Posted by tk...@apache.org.
removed unnecessary template we used to implement MARMOTTA-136


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/de2e858c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/de2e858c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/de2e858c

Branch: refs/heads/master
Commit: de2e858c88e10b2eb7acdfc88c586b9bd195a525
Parents: 101ac6b
Author: Sergio Fernández <se...@wikier.org>
Authored: Thu Mar 28 11:07:55 2013 +0100
Committer: Sergio Fernández <se...@wikier.org>
Committed: Thu Mar 28 11:07:55 2013 +0100

----------------------------------------------------------------------
 .../src/main/resources/templates/rdfhtml.ftl       |  328 ---------------
 1 files changed, 0 insertions(+), 328 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/de2e858c/platform/marmotta-sparql/src/main/resources/templates/rdfhtml.ftl
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/templates/rdfhtml.ftl b/platform/marmotta-sparql/src/main/resources/templates/rdfhtml.ftl
deleted file mode 100644
index 782d724..0000000
--- a/platform/marmotta-sparql/src/main/resources/templates/rdfhtml.ftl
+++ /dev/null
@@ -1,328 +0,0 @@
-<#--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements. See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership. The ASF licenses this file
-    to you 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.
-
--->
-<!DOCTYPE html>
-<html lang="en" prefix="${prefixMappings}" xmlns="http://www.w3.org/1999/html">
-
-<head>
-  <title>Resource/s in HTML</title>
-  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
-  <script type="text/javascript" src="${baseUri}core/public/js/lib/jquery-1.7.2.js"></script>
-    <link href="${baseUri}core/public/style/style.css" rel="stylesheet" type="text/css" />
-    <link href="${baseUri}core/public/style/scheme/blue.css" title="blue" rel="stylesheet" type="text/css" />
-    <link href="${baseUri}core/public/style/scheme/dark.css" title="dark" rel="alternate stylesheet" type="text/css" />
-    <link href="${baseUri}core/public/style/rdfhtml.css" rel="stylesheet" type="text/css" />
-
-  <script>
-      $(document).ready(function(){
-          $(".submenu li").click(function(event){
-              event.preventDefault();
-              if(!$(this).hasClass("active")) {
-                  $(".submenu").children().removeClass("active");
-                  $(this).addClass("active");
-                  var tabid = $(this).children(":first").attr("href").substring(1);
-                  $("#content").children().hide();
-                  $("#"+tabid).show();
-              }
-          })
-
-          $("a.ldcache").each(function(index) {
-              $(this).click(function() {
-                  window.location.href = "${baseUri}resource?uri=" + encodeURIComponent($(this).attr("href"));
-                  return false;
-              });
-          });
-
-          function loader(uri, type, target) {
-
-              var table = $("#"+target);
-
-              function linkify(text) {
-                  var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
-                  return text.replace(exp,"<a href='$1' class='ldcache'>$1</a>");
-              }
-              function zebra(index) {
-                  return ( index % 2 ? "even": "odd" );
-              }
-              function createRow(data, cssClass) {
-                  return $("<tr>", {})
-                          .append($("<td>", {html: linkify(data.s)}))
-                          .append($("<td>", {html: linkify(data.p)}))
-                          .append($("<td>", {html: linkify(data.o)}))
-                          .append($("<td>", {html: linkify(data.c)}))
-                          .addClass(cssClass);
-              }
-              return {
-                  resource: uri,
-                  target: table,
-                  offset: 0,
-                  limit: 10,
-                  fetch: function() {
-                      var self = this;
-                      $.getJSON("${baseUri}inspect/" + type, {uri: self.resource, start: self.offset, limit: self.limit}, function(data) {
-                          if(data.length == 0) {
-                              console.log(table);
-                              table.replaceWith("<p class='no_triples'>No triples to display</p>");
-                          }
-                          for( var i in data) {
-                              var t = data[i];
-                              table.append(createRow(t, zebra(i)));
-                          }
-                      });
-                  },
-                  next: function(step) {
-                      step = step || this.limit;
-                      this.offset += step;
-                      this.fetch();
-                  },
-                  prev: function(step) {
-                      step = step || this.limit
-                      this.offset = Math.max(this.offset - step, 0);
-                      this.fetch();
-                  },
-                  more: function() {
-                      this.limit += 5;
-                      this.fetch();
-                  },
-                  less: function() {
-                      this.limit = Math.max(this.limit - 5, 5);
-                      this.fetch();
-                  },
-                  first: function() {
-                      this.offset = 0;
-                      this.fetch();
-                  }
-              };
-          }
-
-      <#if resources?size = 1>
-          var subjLoader = new loader("${resources[0].uri}", "subject", "inspect_subject");
-          subjLoader.fetch();
-          $("#s0").click(function() {subjLoader.first();});
-          $("#s1").click(function() {subjLoader.prev();});
-          $("#s2").click(function() {subjLoader.next();});
-          $("#s3").click(function() {subjLoader.more();});
-          $("#s4").click(function() {subjLoader.less();});
-
-          var propLoader = new loader("${resources[0].uri}", "predicate", "inspect_property");
-          propLoader.fetch();
-
-          var objLoader = new loader("${resources[0].uri}", "object", "inspect_object");
-          objLoader.fetch();
-      </#if>
-
-      })
-  </script>
-</head>
-
-<body>
-<#function zebra index>
-    <#if (index % 2) == 0>
-        <#return "odd" />
-    <#else>
-        <#return "even" />
-    </#if>
-</#function>
-
-<#function cacheClass object>
-    <#if object.cache?has_content>
-        <#return "ldcache" />
-    <#else>
-        <#return "" />
-    </#if>
-</#function>
-
-<#function rdfaAttributes object>
-    <#return "${rdfaDatatype(object)} ${rdfaLanguage(object)}" />
-</#function>
-
-<#function rdfaDatatype object>
-    <#if object.datatype?has_content>
-        <#return "datatype=\"${object.datatype}\"" />
-    <#else>
-        <#return "" />
-    </#if>
-</#function>
-
-<#function rdfaLanguage object>
-    <#if object.lang?has_content>
-        <#return "lang=\"${object.lang}\"" />
-    <#else>
-        <#return "" />
-    </#if>
-</#function>
-
-<div id="wrapper">
-    <div id="header">
-        <a id="logo" href="${SERVER_URL}">
-            <img src="${SERVER_URL}${LOGO}">
-        </a>
-        <h1>RDF/HTML</h1>
-        <#if resources?size = 1>
-        <div id="top_serialisation_links">
-            <a href="${baseUri}resource?uri=${resources[0].encoded_uri}&amp;format=application/rdf%2Bxml">RDF/XML</a>&nbsp;|&nbsp;
-            <a href="${baseUri}resource?uri=${resources[0].encoded_uri}&amp;format=text/rdf%2Bn3">N3</a>&nbsp;|&nbsp;
-            <a href="${baseUri}resource?uri=${resources[0].encoded_uri}&amp;format=text/turtle">Turtle</a>&nbsp;|&nbsp;
-            <a href="${baseUri}resource?uri=${resources[0].encoded_uri}&amp;format=application/rdf%2Bjson">RDF/JSON</a>&nbsp;|&nbsp;
-            <a href="${baseUri}resource?uri=${resources[0].encoded_uri}&amp;format=application/ld%2Bjson">JSON-LD</a>
-        </div>
-        <div class="clean"></div>
-        </#if>
-    </div>
-    <div class="clear"></div>
-    <div id="left">
-    <ul id="menu">
-        <li class="menu_item">
-        <div class="menu_heading">Views</div>
-        <ul class="submenu">
-                <li class="active"><a href="#tab-raw-triples">Triples</a></li>
-                <#if resources?size = 1>
-                <li><a href="#tab-inspection">Inspector</a></li>
-                </#if>
-            </ul>
-        </li>
-    </ul>
-    </div>
-    <div id="center">
-        <div id="content">
-            <div id="tab-raw-triples">
-
-            <h1>Triples</h1>
-            <#if resources?has_content>
-                <#list resources as resource>
-                    <h2><a href="${resource.uri}" class="ldcache">${resource.uri}</a>
-                        <#if timemaplink??>
-                            <a style="float:right" id="timemap_link" href="${baseUri}${timemaplink}${resource.uri}">
-                                <img style="width: 24px" title="browser versions" alt="memento" src="${baseUri}core/public/img/icon/memento_logo_128.png">
-                            </a>
-                        </#if>
-                    </h2>
-                    <table class="simple_table">
-                        <tr class="trClassHeader">
-                            <th>property</th>
-                            <th>has value</th>
-                            <th>context</th>
-                            <th id="info">info</th>
-                        </tr>
-                        <#list resource.triples as triple>
-                            <tr class="${zebra(triple_index)}">
-                                <td><a href="${triple.predicate.uri}" class="ldcache">${triple.predicate.curie}</a></td>
-                                <td about="${resource.uri}">
-                                    <#if triple.object.uri?has_content>
-                                        <a rel="${triple.predicate.curie}" href="${triple.object.uri}" class="${cacheClass(triple.object)}">${triple.object.curie}</a>
-                                    <#else>
-                                        <span property="${triple.predicate.curie}" ${rdfaAttributes(triple.object)}>${triple.object.value}</span>
-                                    </#if>
-                                </td>
-                                <td><a href="${triple.context.uri}">${triple.context.curie}</a></td>
-                                <td>${triple.info}</td>
-                            </tr>
-                        </#list>
-                    </table>
-                    <#if resources?size != 1>
-                    <p id="rawrdf">
-                        Get this resource in raw RDF:
-                        <a href="${baseUri}resource?uri=${resource.encoded_uri}&amp;format=application/rdf%2Bxml">RDF/XML</a>,
-                        <a href="${baseUri}resource?uri=${resource.encoded_uri}&amp;format=text/rdf%2Bn3">N3</a>,
-                        <a href="${baseUri}resource?uri=${resource.encoded_uri}&amp;format=text/turtle">Turtle</a>,
-                        <a href="${baseUri}resource?uri=${resource.encoded_uri}&amp;format=application/rdf%2Bjson">RDF/JSON</a>,
-                        <a href="${baseUri}resource?uri=${resource.encoded_uri}&amp;format=application/ld%2Bjson">JSON-LD</a>
-                    </p>
-                    </#if>
-                </#list>
-            <#else>
-                <p>
-                    No local triples to display!
-                </p>
-            </#if>
-
-            </div>
-
-        <#if resources?size = 1>
-            <div id="tab-inspection" style="display: none">
-                <h1>Inspection of <a href="${resources[0].uri}" class="ldcache">${resources[0].uri}</a></h1>
-                <div class="introspectionDetails">
-                    <h2>Resource as Subject</h2>
-                    <div id="table_buttons">
-                    <button id="s0">|&lt;</button>
-                    <button id="s1">&lt;</button>
-                    <button id="s2">&gt;</button>
-                    <button id="s3">+</button>
-                    <button id="s4">-</button>
-                    </div>
-                    <table id="inspect_subject" class="simple_table">
-                        <tr class="trClassHeader">
-                            <th>Subject</th>
-                            <th>Property</th>
-                            <th>Object</th>
-                            <th>Context</th>
-                        </tr>
-                    </table>
-                </div>
-                <div class="introspectionDetails">
-                    <h2>Resource as Property</h2>
-                    <table id="inspect_property" class="simple_table">
-                        <tr class="trClassHeader">
-                            <th>Subject</th>
-                            <th>Property</th>
-                            <th>Object</th>
-                            <th>Context</th>
-                        </tr>
-                    </table>
-                </div>
-                <div class="introspectionDetails">
-                    <h2>Resource as Object</h2>
-                    <table id="inspect_object" class="simple_table">
-                        <tr class="trClassHeader">
-                            <th>Subject</th>
-                            <th>Property</th>
-                            <th>Object</th>
-                            <th>Context</th>
-                        </tr>
-                    </table>
-                </div>
-                <!--
-                <div class="introspectionDetails">
-                    <h4><a href="${resources[0].uri}" class="ldcache">${resources[0].uri}</a> as Context</h4>
-                	<table id="inspect_context">
-                      <tr class="trClassHeader">
-                        <th>Subject</th>
-                        <th>Property</th>
-                        <th>Object</th>
-                        <th>Context<th>
-                      </tr>
-                	</table>
-                </div>
-                -->
-            </div>
-        </#if>
-        </div>
-    </div>
-    <div class="clear"></div>
-    <div id="footer">
-        <div id="footer_line">
-            <span>
-            ${FOOTER}
-            </span>
-        </div>
-    </div>
-</div>
-</body>
-
-</html>


[12/21] Revert "Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop"

Posted by tk...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-backend-file/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-backend-file/pom.xml b/libraries/ldcache/ldcache-backend-file/pom.xml
index eec29f0..c7d567b 100644
--- a/libraries/ldcache/ldcache-backend-file/pom.xml
+++ b/libraries/ldcache/ldcache-backend-file/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-backend-kiwi/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-backend-kiwi/pom.xml b/libraries/ldcache/ldcache-backend-kiwi/pom.xml
index 22f1999..356eacd 100644
--- a/libraries/ldcache/ldcache-backend-kiwi/pom.xml
+++ b/libraries/ldcache/ldcache-backend-kiwi/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-core/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-core/pom.xml b/libraries/ldcache/ldcache-core/pom.xml
index f570f89..801f422 100644
--- a/libraries/ldcache/ldcache-core/pom.xml
+++ b/libraries/ldcache/ldcache-core/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-sail-generic/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-sail-generic/pom.xml b/libraries/ldcache/ldcache-sail-generic/pom.xml
index 1293147..6e72dbd 100644
--- a/libraries/ldcache/ldcache-sail-generic/pom.xml
+++ b/libraries/ldcache/ldcache-sail-generic/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-sail-kiwi/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-sail-kiwi/pom.xml b/libraries/ldcache/ldcache-sail-kiwi/pom.xml
index 4bc1d0f..6a875af 100644
--- a/libraries/ldcache/ldcache-sail-kiwi/pom.xml
+++ b/libraries/ldcache/ldcache-sail-kiwi/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/pom.xml b/libraries/ldcache/pom.xml
index df5e1dd..b7d126d 100644
--- a/libraries/ldcache/pom.xml
+++ b/libraries/ldcache/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-api/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-api/pom.xml b/libraries/ldclient/ldclient-api/pom.xml
index 1e3b036..fc5786f 100644
--- a/libraries/ldclient/ldclient-api/pom.xml
+++ b/libraries/ldclient/ldclient-api/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-core/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-core/pom.xml b/libraries/ldclient/ldclient-core/pom.xml
index 80b18fa..6e80e58 100644
--- a/libraries/ldclient/ldclient-core/pom.xml
+++ b/libraries/ldclient/ldclient-core/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-facebook/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-facebook/pom.xml b/libraries/ldclient/ldclient-provider-facebook/pom.xml
index 09f3fab..7b044f3 100644
--- a/libraries/ldclient/ldclient-provider-facebook/pom.xml
+++ b/libraries/ldclient/ldclient-provider-facebook/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-html/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-html/pom.xml b/libraries/ldclient/ldclient-provider-html/pom.xml
index fe732d9..efa9821 100644
--- a/libraries/ldclient/ldclient-provider-html/pom.xml
+++ b/libraries/ldclient/ldclient-provider-html/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-ldap/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-ldap/pom.xml b/libraries/ldclient/ldclient-provider-ldap/pom.xml
index 8a73b23..4736c8f 100644
--- a/libraries/ldclient/ldclient-provider-ldap/pom.xml
+++ b/libraries/ldclient/ldclient-provider-ldap/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-mediawiki/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-mediawiki/pom.xml b/libraries/ldclient/ldclient-provider-mediawiki/pom.xml
index d5cdd1c..a97c354 100644
--- a/libraries/ldclient/ldclient-provider-mediawiki/pom.xml
+++ b/libraries/ldclient/ldclient-provider-mediawiki/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-phpbb/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-phpbb/pom.xml b/libraries/ldclient/ldclient-provider-phpbb/pom.xml
index 790d3b5..c67862f 100644
--- a/libraries/ldclient/ldclient-provider-phpbb/pom.xml
+++ b/libraries/ldclient/ldclient-provider-phpbb/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-rdf/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-rdf/pom.xml b/libraries/ldclient/ldclient-provider-rdf/pom.xml
index 46bd063..3f81d0b 100644
--- a/libraries/ldclient/ldclient-provider-rdf/pom.xml
+++ b/libraries/ldclient/ldclient-provider-rdf/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-rdfa/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-rdfa/pom.xml b/libraries/ldclient/ldclient-provider-rdfa/pom.xml
index abfb84f..eb1e264 100644
--- a/libraries/ldclient/ldclient-provider-rdfa/pom.xml
+++ b/libraries/ldclient/ldclient-provider-rdfa/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-vimeo/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-vimeo/pom.xml b/libraries/ldclient/ldclient-provider-vimeo/pom.xml
index 855bdd0..541bd79 100644
--- a/libraries/ldclient/ldclient-provider-vimeo/pom.xml
+++ b/libraries/ldclient/ldclient-provider-vimeo/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-xml/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-xml/pom.xml b/libraries/ldclient/ldclient-provider-xml/pom.xml
index e279907..0ff9206 100644
--- a/libraries/ldclient/ldclient-provider-xml/pom.xml
+++ b/libraries/ldclient/ldclient-provider-xml/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/ldclient-provider-youtube/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-youtube/pom.xml b/libraries/ldclient/ldclient-provider-youtube/pom.xml
index 66372c1..062ce27 100644
--- a/libraries/ldclient/ldclient-provider-youtube/pom.xml
+++ b/libraries/ldclient/ldclient-provider-youtube/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldclient/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldclient/pom.xml b/libraries/ldclient/pom.xml
index 8d3f49a..ad88ca4 100644
--- a/libraries/ldclient/pom.xml
+++ b/libraries/ldclient/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-api/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/pom.xml b/libraries/ldpath/ldpath-api/pom.xml
index b7c3894..174121e 100644
--- a/libraries/ldpath/ldpath-api/pom.xml
+++ b/libraries/ldpath/ldpath-api/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-backend-file/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-file/pom.xml b/libraries/ldpath/ldpath-backend-file/pom.xml
index 78c88ba..0e5cdd7 100644
--- a/libraries/ldpath/ldpath-backend-file/pom.xml
+++ b/libraries/ldpath/ldpath-backend-file/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-backend-jena/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-jena/pom.xml b/libraries/ldpath/ldpath-backend-jena/pom.xml
index a6aa3ea..d0a3062 100644
--- a/libraries/ldpath/ldpath-backend-jena/pom.xml
+++ b/libraries/ldpath/ldpath-backend-jena/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-backend-linkeddata/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-linkeddata/pom.xml b/libraries/ldpath/ldpath-backend-linkeddata/pom.xml
index efaaa4e..9c27f08 100644
--- a/libraries/ldpath/ldpath-backend-linkeddata/pom.xml
+++ b/libraries/ldpath/ldpath-backend-linkeddata/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-backend-sesame/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/pom.xml b/libraries/ldpath/ldpath-backend-sesame/pom.xml
index 8654a40..910de1b 100644
--- a/libraries/ldpath/ldpath-backend-sesame/pom.xml
+++ b/libraries/ldpath/ldpath-backend-sesame/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-core/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/pom.xml b/libraries/ldpath/ldpath-core/pom.xml
index 2f061ab..00a8dbf 100644
--- a/libraries/ldpath/ldpath-core/pom.xml
+++ b/libraries/ldpath/ldpath-core/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/parser/DefaultConfiguration.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/parser/DefaultConfiguration.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/parser/DefaultConfiguration.java
index baaca6b..faba2d5 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/parser/DefaultConfiguration.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/parser/DefaultConfiguration.java
@@ -112,7 +112,7 @@ public class DefaultConfiguration<Node> extends Configuration<Node> {
 
     private void addDefaultFunctions() {
         for (SelectorFunction<Node> f : functionLoader) {
-            log.debug("registering LDPath function: {}",f.getSignature());
+            log.info("registering LDPath function: {}",f.getSignature());
             addFunction(f);
         }
     }
@@ -123,7 +123,7 @@ public class DefaultConfiguration<Node> extends Configuration<Node> {
 
     private void addDefaultTestFunctions() {
         for (TestFunction<Node> t : testLoader) {
-            log.debug("registering LDPath test function: {}", t.getSignature());
+            log.info("registering LDPath test function: {}", t.getSignature());
             addTestFunction(t);
         }
     }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-functions-collections/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-collections/pom.xml b/libraries/ldpath/ldpath-functions-collections/pom.xml
index e2619e8..e6ed175 100644
--- a/libraries/ldpath/ldpath-functions-collections/pom.xml
+++ b/libraries/ldpath/ldpath-functions-collections/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-functions-date/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-date/pom.xml b/libraries/ldpath/ldpath-functions-date/pom.xml
index dfc9643..e990287 100644
--- a/libraries/ldpath/ldpath-functions-date/pom.xml
+++ b/libraries/ldpath/ldpath-functions-date/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-functions-html/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-html/pom.xml b/libraries/ldpath/ldpath-functions-html/pom.xml
index 0296f95..fd9fe94 100644
--- a/libraries/ldpath/ldpath-functions-html/pom.xml
+++ b/libraries/ldpath/ldpath-functions-html/pom.xml
@@ -19,7 +19,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-functions-math/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-math/pom.xml b/libraries/ldpath/ldpath-functions-math/pom.xml
index 98ac5be..3a8ede8 100644
--- a/libraries/ldpath/ldpath-functions-math/pom.xml
+++ b/libraries/ldpath/ldpath-functions-math/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-functions-text/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-text/pom.xml b/libraries/ldpath/ldpath-functions-text/pom.xml
index afbd51f..b8052fa 100644
--- a/libraries/ldpath/ldpath-functions-text/pom.xml
+++ b/libraries/ldpath/ldpath-functions-text/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-functions-xml/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-xml/pom.xml b/libraries/ldpath/ldpath-functions-xml/pom.xml
index 59bb517..3adfd91 100644
--- a/libraries/ldpath/ldpath-functions-xml/pom.xml
+++ b/libraries/ldpath/ldpath-functions-xml/pom.xml
@@ -19,7 +19,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-template-linkeddata/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template-linkeddata/pom.xml b/libraries/ldpath/ldpath-template-linkeddata/pom.xml
index 711f9ac..df42569 100644
--- a/libraries/ldpath/ldpath-template-linkeddata/pom.xml
+++ b/libraries/ldpath/ldpath-template-linkeddata/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/ldpath-template/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-template/pom.xml b/libraries/ldpath/ldpath-template/pom.xml
index d640bd7..d7ea7da 100644
--- a/libraries/ldpath/ldpath-template/pom.xml
+++ b/libraries/ldpath/ldpath-template/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldpath/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/pom.xml b/libraries/ldpath/pom.xml
index 4ae75ef..99568d2 100644
--- a/libraries/ldpath/pom.xml
+++ b/libraries/ldpath/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/pom.xml b/libraries/pom.xml
index ca93207..a3dbffd 100644
--- a/libraries/pom.xml
+++ b/libraries/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index ecf64e9..c917c5d 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -29,7 +29,7 @@
     <groupId>org.apache.marmotta</groupId>
     <artifactId>marmotta-parent</artifactId>
     <packaging>pom</packaging>
-    <version>3.0.0-incubating-SNAPSHOT</version>
+    <version>3.1.0-incubating-SNAPSHOT</version>
 
     <name>Apache Marmotta Parent</name>
     <description>Parent POM for the Apache Marmotta project</description>
@@ -400,9 +400,6 @@
                             <exclude>**/dygraph/**</exclude>
                             <exclude>**/sgvizler/**</exclude>
                             <exclude>**/js/lib/**</exclude>
-                            <exclude>**/src/main/resources/web/admin/snorql/**</exclude>
-                            <exclude>**/src/main/resources/web/cm/**</exclude>
-                            <exclude>**/src/main/resources/web/admin/editor/sparql/lib/**</exclude>
                             <exclude>**/src/main/java/solr2155/**</exclude>
                             <exclude>**/src/main/java/net/miginfocom/**</exclude>
                             <exclude>**/src/main/java/org/oxbow/**</exclude>
@@ -451,9 +448,6 @@
                             <exclude>**/src/main/resources/task-dialog*.properties</exclude>
                             <exclude>**/src/test/resources/org/apache/marmotta/commons/sesame/rio/jsonld/**</exclude>
                             <exclude>**/src/test/resources/org/apache/marmotta/commons/sesame/rio/vcard/*.vcf</exclude>
-                            <exclude>**/src/main/resources/web/cm/**</exclude>
-                            <exclude>**/src/main/resources/web/admin/editor/**</exclude>
-                            <exclude>**/src/main/resources/web/admin/snorql/**</exclude>
 
                             <!-- META-INF files don't take a license header -->
                             <exclude>**/META-INF/**</exclude>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-core/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/pom.xml b/platform/marmotta-core/pom.xml
index e24a31b..49c16f1 100644
--- a/platform/marmotta-core/pom.xml
+++ b/platform/marmotta-core/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-core/src/main/resources/web/public/style/scheme/dark.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/resources/web/public/style/scheme/dark.css b/platform/marmotta-core/src/main/resources/web/public/style/scheme/dark.css
index a38af80..a02a10c 100644
--- a/platform/marmotta-core/src/main/resources/web/public/style/scheme/dark.css
+++ b/platform/marmotta-core/src/main/resources/web/public/style/scheme/dark.css
@@ -163,11 +163,3 @@ dl dt {
     color: #6dcff5;
 }
 
-.snorql pre#prefixestext {
-    color: #2c2c2c !important;
-}
-
-.snorql table.queryresults td, .snorql table.queryresults td span.uri a.graph-link {
-    color: #2c2c2c !important;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldcache/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldcache/pom.xml b/platform/marmotta-ldcache/pom.xml
index dc91580..da7ab48 100644
--- a/platform/marmotta-ldcache/pom.xml
+++ b/platform/marmotta-ldcache/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/pom.xml b/platform/marmotta-ldpath/pom.xml
index a19375b..f7fe181 100644
--- a/platform/marmotta-ldpath/pom.xml
+++ b/platform/marmotta-ldpath/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt b/platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt
deleted file mode 100644
index 482d55e..0000000
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-Please note that some subdirectories of the CodeMirror distribution
-include their own LICENSE files, and are released under different
-licences.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.css b/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.css
index 7b43c67..132b6f8 100644
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.css
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.css
@@ -1,25 +1,20 @@
 /**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 #center .CodeMirror, .CodeMirror {
   line-height: 1em;
   font-family: monospace;
@@ -193,4 +188,4 @@ span.cm-invalidchar {color: #f00;}
     visibility: hidden;
   }
 
-}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.js b/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.js
index ee5e94a..104d077 100644
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.js
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/codemirror.js
@@ -1,25 +1,20 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 // All functions that need access to the editor's state live inside
 // the CodeMirror function. Below that, at the bottom of the file,
 // some utilities are defined.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js b/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
index a560013..65a2216 100644
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/ldpath.js
@@ -1,23 +1,19 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 if (CodeMirror && CodeMirror.defineMode) {
 CodeMirror.defineMode("ldpath", function(config, parserConfig) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.css b/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.css
index 5657a5b..c7a040c 100644
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.css
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.css
@@ -1,23 +1,19 @@
 /**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 #center .CodeMirror-completions, .CodeMirror-completions {
   position: absolute;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.js b/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.js
index 121ed8d..f144c9e 100644
--- a/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.js
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/simple-hint.js
@@ -1,23 +1,19 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 (function() {
   CodeMirror.simpleHint = function(editor, getHints) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-reasoner/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-reasoner/pom.xml b/platform/marmotta-reasoner/pom.xml
index 110f46a..e238e41 100644
--- a/platform/marmotta-reasoner/pom.xml
+++ b/platform/marmotta-reasoner/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-security/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-security/pom.xml b/platform/marmotta-security/pom.xml
index 4c89cc3..16c4d34 100644
--- a/platform/marmotta-security/pom.xml
+++ b/platform/marmotta-security/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/pom.xml
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/pom.xml b/platform/marmotta-sparql/pom.xml
index 24ac806..fcef322 100644
--- a/platform/marmotta-sparql/pom.xml
+++ b/platform/marmotta-sparql/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/flint_sparql_editor.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/flint_sparql_editor.html b/platform/marmotta-sparql/src/main/resources/web/admin/editor/flint_sparql_editor.html
index 7e7f07c..09a602b 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/flint_sparql_editor.html
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/flint_sparql_editor.html
@@ -1,23 +1,37 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you 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.
+
+-->
 <!DOCTYPE html>
 <!--
-    Copyright (c) 2011 TSO Ltd
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy 
-    of this software and associated documentation files (the "Software"), to deal 
-    in the Software without restriction, including without limitation the rights 
-    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
-    copies of the Software, and to permit persons to whom the Software is furnished 
-    to do so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all 
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
-    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
-    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
-    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
-    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+  ~ 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.
   -->
 
 <html xmlns="http://www.w3.org/1999/xhtml">

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/docs.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/docs.css b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/docs.css
index 8bb5050..455641b 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/docs.css
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/docs.css
@@ -1,22 +1,19 @@
-/*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 .CodeMirror-gutter {
 	width: 3em;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/font.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/font.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/font.js
index f4d96a5..c09828e 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/font.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/font.js
@@ -1,6 +1,4 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements. See the NOTICE file
  * distributed with this work for additional information

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/sparqlcolors.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/sparqlcolors.css b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/sparqlcolors.css
index 4f544f5..5711b8c 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/sparqlcolors.css
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/css/sparqlcolors.css
@@ -1,22 +1,19 @@
-/*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 {
   cursor: text;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/flint-editor.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/flint-editor.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/flint-editor.js
index b2b0e74..2b7e3bb 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/flint-editor.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/flint-editor.js
@@ -1,24 +1,20 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 // Main flint editor class
 function FlintEditor(container, imagesPath, config) {
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
index 5429023..60e2f35 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-local.js
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 $(document).ready(function() {
 	var sampleQuery1 = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\nSELECT ?title ?uri WHERE {\n\t?uri rdf:type <http://www.w3.org/ns/ma-ont#MediaResource>.\n\t?uri <http://www.w3.org/ns/ma-ont#title> ?title\n}\nLIMIT 10";
@@ -69,4 +66,4 @@ $(document).ready(function() {
         ]
 	}
 	var flintEd = new FlintEditor("flint-test", "sparql/images", flintConfig);
-});
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js
index e4b1132..4c771e8 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-openuplabs.js
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 $(document).ready(function() {
 	var sampleQuery1 = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\nPREFIX frbr: <http://purl.org/vocab/frbr/core#>\nPREFIX dct: <http://purl.org/dc/terms/>\n\nSELECT ?work ?date ?title WHERE {\n\t?work a frbr:Work .\n\t?work dct:title ?title .\n\t?work dct:created ?date .\n\tFILTER (?date >= '2010-10-15'^^xsd:date)\n}\nORDER BY desc(?date)\nLIMIT 100";
@@ -84,4 +81,4 @@ $(document).ready(function() {
 		]
 	}
 	var flintEd = new FlintEditor("flint-test","/script/sparql/images", flintConfig);
-});
+});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js
index f38ae95..d31c413 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/init-sparqlservice.js
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 $(document).ready(function(){
 		
@@ -101,4 +98,4 @@ function addStylesheet(url) {
 	css.href = url;
 	css.rel= "stylesheet";
 	$('head').append( css );
-}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.css
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.css b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.css
index 96e57be..67d19b7 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.css
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.css
@@ -1,25 +1,20 @@
 /**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 .CodeMirror {
   overflow: auto;
   height: 300px;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.js
index 0436d2c..49a0195 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/codemirror.js
@@ -1,25 +1,20 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
-
 // This is copied from CodeMirror 2.01, but is not the
 // official version, as it has been hacked slightly.
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/overlay.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/overlay.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/overlay.js
index 3c2b171..536c3f0 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/overlay.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/overlay.js
@@ -1,24 +1,27 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
+// Utility function that allows modes to be combined. The mode given
+// as the base argument takes care of most of the normal mode
+// functionality, but a second (typically simple) mode is used, which
+// can override the style of text. Both modes get to parse all of the
+// text, but when both assign a non-null style to a piece of code, the
+// overlay wins, unless the combine argument was true, in which case
+// the styles are combined.
 
 CodeMirror.overlayParser = function(base, overlay, combine) {
   return {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/runmode.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/runmode.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/runmode.js
index ce4007b..29b051b 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/runmode.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib/runmode.js
@@ -1,23 +1,19 @@
-/**
- * Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 CodeMirror.runMode = function(string, modespec, callback) {
   var mode = CodeMirror.getMode({indentUnit: 2}, modespec);

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlParser.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlParser.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlParser.js
index 779acba..2827a9f 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlParser.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlParser.js
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 sparqlParser = (function(){
   /* Generated by PEG.js (http://pegjs.majda.cz/). */

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode.js
index 90ab813..d7f26c8 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode.js
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 CodeMirror.defineMode("sparql", function(config, parserConfig) {
   var indentUnit = config.indentUnit;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode_ll1.js
----------------------------------------------------------------------
diff --git a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode_ll1.js b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode_ll1.js
index 663b544..2c1dd90 100644
--- a/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode_ll1.js
+++ b/platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/sparqlmode_ll1.js
@@ -1,22 +1,19 @@
 /*
- * Copyright (c) 2011 TSO Ltd
- * 
- * Permission is hereby granted, free of charge, to any person obtaining a copy 
- * of this software and associated documentation files (the "Software"), to deal 
- * in the Software without restriction, including without limitation the rights 
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
- * copies of the Software, and to permit persons to whom the Software is furnished 
- * to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in all 
- * copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
  */
 CodeMirror.defineMode("sparql", function(config, parserConfig) {
 


[19/21] git commit: Revert "Revert "fixes bug in cors service (DELETE was not supported)""

Posted by tk...@apache.org.
Revert "Revert "fixes bug in cors service (DELETE was not supported)""

This reverts commit a173309eeacd8607ed5f193041b80d8bdcca84a9.


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/14ed40ba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/14ed40ba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/14ed40ba

Branch: refs/heads/master
Commit: 14ed40bac1a97c6ef10d80b30a5d48889e5c0234
Parents: a173309
Author: tkurz <tk...@apache.org>
Authored: Fri Apr 12 00:03:40 2013 +0200
Committer: tkurz <tk...@apache.org>
Committed: Fri Apr 12 00:03:40 2013 +0200

----------------------------------------------------------------------
 .../src/main/webapp/WEB-INF/web.xml                |   11 +++++
 .../src/main/webapp/WEB-INF/web.xml                |   33 +++++++++++----
 2 files changed, 35 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/14ed40ba/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
index a44d704..9a01350 100644
--- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
+++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
@@ -67,6 +67,17 @@
     <filter>
         <filter-name>CORS</filter-name>
         <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
+
+        <init-param>
+            <param-name>cors.supportedMethods</param-name>
+            <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
+        </init-param>
+
+        <init-param>
+            <param-name>cors.supportedHeaders</param-name>
+            <param-value>Origin, Accept</param-value>
+        </init-param>
+
     </filter>
     <filter-mapping>
         <filter-name>CORS</filter-name>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/14ed40ba/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
index 465a199..7c9c5f4 100644
--- a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
+++ b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
@@ -49,24 +49,39 @@
         <param-value>/tmp/marmotta</param-value>
     </context-param>
 
-    <!-- this filter performs startup configurations for first installation -->
+    <!-- enables a cors filter and maps it to any request -->
+    <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
+
     <filter>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
-        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
+        <!-- The CORS filter with parameters -->
+        <filter-name>CORS</filter-name>
+        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
+
+        <init-param>
+            <param-name>cors.supportedMethods</param-name>
+            <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
+        </init-param>
+
+        <init-param>
+            <param-name>cors.supportedHeaders</param-name>
+            <param-value>Origin, Accept</param-value>
+        </init-param>
+
     </filter>
+
     <filter-mapping>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <!-- CORS Filter mapping -->
+        <filter-name>CORS</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 
-    <!-- enables a cors filter and maps it to any request -->
-    <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
+    <!-- this filter performs startup configurations for first installation -->
     <filter>
-        <filter-name>CORS</filter-name>
-        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
     </filter>
     <filter-mapping>
-        <filter-name>CORS</filter-name>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 


[13/21] git commit: Revert "Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop"

Posted by tk...@apache.org.
Revert "Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop"

This reverts commit 09906665136ad74f861deb69131ea099756ec810, reversing
changes made to 101ac6b86b0a0fbb271f0b5360956501e04e4beb.


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/09498484
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/09498484
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/09498484

Branch: refs/heads/master
Commit: 094984842e2593c05009cf70540b7d35a20de3cb
Parents: 29b2258
Author: Jakob Frank <ja...@salzburgresearch.at>
Authored: Wed Apr 3 15:55:30 2013 +0200
Committer: Jakob Frank <ja...@salzburgresearch.at>
Committed: Wed Apr 3 15:55:30 2013 +0200

----------------------------------------------------------------------
 LICENSE.txt                                        |  601 ++-------------
 NOTICE.txt                                         |  130 +++-
 build/archetypes/marmotta-archetype-module/pom.xml |    2 +-
 build/archetypes/marmotta-archetype-webapp/pom.xml |    2 +-
 build/archetypes/pom.xml                           |    2 +-
 build/checkstyle-resources/pom.xml                 |    2 +-
 build/dependency-resource-supplement/pom.xml       |    2 +-
 build/plugins/buildinfo-maven-plugin/pom.xml       |    2 +-
 build/plugins/marmotta-maven-plugin/pom.xml        |    2 +-
 build/plugins/pom.xml                              |    2 +-
 build/plugins/refpack-maven-plugin/pom.xml         |    2 +-
 build/plugins/repocheck-maven-plugin/pom.xml       |    2 +-
 build/pom.xml                                      |    2 +-
 client/marmotta-client-java/pom.xml                |    2 +-
 client/marmotta-client-js/pom.xml                  |    2 +-
 client/pom.xml                                     |    2 +-
 commons/marmotta-commons/pom.xml                   |    2 +-
 commons/pom.xml                                    |    2 +-
 commons/sesame-filter/pom.xml                      |    2 +-
 commons/sesame-tools-facading/pom.xml              |    2 +-
 commons/sesame-tools-rio-api/pom.xml               |    2 +-
 commons/sesame-tools-rio-ical/pom.xml              |    2 +-
 commons/sesame-tools-rio-jsonld/pom.xml            |    2 +-
 commons/sesame-tools-rio-rdfjson/pom.xml           |    2 +-
 commons/sesame-tools-rio-rss/pom.xml               |    2 +-
 commons/sesame-tools-rio-vcard/pom.xml             |    2 +-
 extras/pom.xml                                     |    2 +-
 launchers/marmotta-installer/pom.xml               |    2 +-
 launchers/marmotta-splash/pom.xml                  |    2 +-
 launchers/marmotta-webapp/pom.xml                  |    2 +-
 launchers/pom.xml                                  |    2 +-
 libraries/kiwi/kiwi-contextaware/pom.xml           |    2 +-
 libraries/kiwi/kiwi-reasoner/pom.xml               |    2 +-
 libraries/kiwi/kiwi-transactions/pom.xml           |    2 +-
 libraries/kiwi/kiwi-triplestore/pom.xml            |    2 +-
 .../kiwi/persistence/KiWiGarbageCollector.java     |   15 +-
 .../marmotta/kiwi/persistence/KiWiPersistence.java |   20 -
 .../apache/marmotta/kiwi/test/PersistenceTest.java |   74 --
 libraries/kiwi/kiwi-tripletable/pom.xml            |    2 +-
 libraries/kiwi/kiwi-versioning/pom.xml             |    2 +-
 .../versioning/test/VersioningPersistenceTest.java |   29 +-
 libraries/kiwi/pom.xml                             |    2 +-
 libraries/ldcache/ldcache-api/pom.xml              |    2 +-
 libraries/ldcache/ldcache-backend-ehcache/pom.xml  |    2 +-
 libraries/ldcache/ldcache-backend-file/pom.xml     |    2 +-
 libraries/ldcache/ldcache-backend-kiwi/pom.xml     |    2 +-
 libraries/ldcache/ldcache-core/pom.xml             |    2 +-
 libraries/ldcache/ldcache-sail-generic/pom.xml     |    2 +-
 libraries/ldcache/ldcache-sail-kiwi/pom.xml        |    2 +-
 libraries/ldcache/pom.xml                          |    2 +-
 libraries/ldclient/ldclient-api/pom.xml            |    2 +-
 libraries/ldclient/ldclient-core/pom.xml           |    2 +-
 .../ldclient/ldclient-provider-facebook/pom.xml    |    2 +-
 libraries/ldclient/ldclient-provider-html/pom.xml  |    2 +-
 libraries/ldclient/ldclient-provider-ldap/pom.xml  |    2 +-
 .../ldclient/ldclient-provider-mediawiki/pom.xml   |    2 +-
 libraries/ldclient/ldclient-provider-phpbb/pom.xml |    2 +-
 libraries/ldclient/ldclient-provider-rdf/pom.xml   |    2 +-
 libraries/ldclient/ldclient-provider-rdfa/pom.xml  |    2 +-
 libraries/ldclient/ldclient-provider-vimeo/pom.xml |    2 +-
 libraries/ldclient/ldclient-provider-xml/pom.xml   |    2 +-
 .../ldclient/ldclient-provider-youtube/pom.xml     |    2 +-
 libraries/ldclient/pom.xml                         |    2 +-
 libraries/ldpath/ldpath-api/pom.xml                |    2 +-
 libraries/ldpath/ldpath-backend-file/pom.xml       |    2 +-
 libraries/ldpath/ldpath-backend-jena/pom.xml       |    2 +-
 libraries/ldpath/ldpath-backend-linkeddata/pom.xml |    2 +-
 libraries/ldpath/ldpath-backend-sesame/pom.xml     |    2 +-
 libraries/ldpath/ldpath-core/pom.xml               |    2 +-
 .../ldpath/parser/DefaultConfiguration.java        |    4 +-
 .../ldpath/ldpath-functions-collections/pom.xml    |    2 +-
 libraries/ldpath/ldpath-functions-date/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-html/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-math/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-text/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-xml/pom.xml      |    2 +-
 .../ldpath/ldpath-template-linkeddata/pom.xml      |    2 +-
 libraries/ldpath/ldpath-template/pom.xml           |    2 +-
 libraries/ldpath/pom.xml                           |    2 +-
 libraries/pom.xml                                  |    2 +-
 parent/pom.xml                                     |    8 +-
 platform/marmotta-core/pom.xml                     |    2 +-
 .../resources/web/public/style/scheme/dark.css     |    8 -
 platform/marmotta-ldcache/pom.xml                  |    2 +-
 platform/marmotta-ldpath/pom.xml                   |    2 +-
 .../src/main/resources/web/cm/LICENSE.txt          |   23 -
 .../src/main/resources/web/cm/codemirror.css       |   37 +-
 .../src/main/resources/web/cm/codemirror.js        |   37 +-
 .../src/main/resources/web/cm/ldpath.js            |   36 +-
 .../src/main/resources/web/cm/simple-hint.css      |   34 +-
 .../src/main/resources/web/cm/simple-hint.js       |   36 +-
 platform/marmotta-reasoner/pom.xml                 |    2 +-
 platform/marmotta-security/pom.xml                 |    2 +-
 platform/marmotta-sparql/pom.xml                   |    2 +-
 .../web/admin/editor/flint_sparql_editor.html      |   50 +-
 .../resources/web/admin/editor/sparql/css/docs.css |   35 +-
 .../resources/web/admin/editor/sparql/css/font.js  |    2 -
 .../web/admin/editor/sparql/css/sparqlcolors.css   |   35 +-
 .../web/admin/editor/sparql/flint-editor.js        |   34 +-
 .../web/admin/editor/sparql/init-local.js          |   35 +-
 .../web/admin/editor/sparql/init-openuplabs.js     |   35 +-
 .../web/admin/editor/sparql/init-sparqlservice.js  |   35 +-
 .../web/admin/editor/sparql/lib/codemirror.css     |   35 +-
 .../web/admin/editor/sparql/lib/codemirror.js      |   37 +-
 .../web/admin/editor/sparql/lib/overlay.js         |   43 +-
 .../web/admin/editor/sparql/lib/runmode.js         |   36 +-
 .../web/admin/editor/sparql/sparqlParser.js        |   33 +-
 .../web/admin/editor/sparql/sparqlmode.js          |   33 +-
 .../web/admin/editor/sparql/sparqlmode_ll1.js      |   33 +-
 .../src/main/resources/web/admin/snorql/NOTICE     |    5 -
 .../main/resources/web/admin/snorql/namespaces.js  |    2 -
 .../main/resources/web/admin/snorql/prototype.js   |   19 +-
 .../web/admin/snorql/scriptaculous/builder.js      |   17 +
 .../web/admin/snorql/scriptaculous/controls.js     |   17 +
 .../web/admin/snorql/scriptaculous/dragdrop.js     |   22 +-
 .../web/admin/snorql/scriptaculous/effects.js      |   22 +-
 .../admin/snorql/scriptaculous/scriptaculous.js    |   24 +-
 .../web/admin/snorql/scriptaculous/slider.js       |   22 +-
 .../web/admin/snorql/scriptaculous/sound.js        |   22 +-
 .../web/admin/snorql/scriptaculous/unittest.js     |   24 +-
 .../main/resources/web/admin/snorql/snorql.html    |    1 -
 .../src/main/resources/web/admin/snorql/snorql.js  |    2 -
 .../src/main/resources/web/admin/snorql/sparql.js  |   17 +
 .../src/main/resources/web/admin/snorql/style.css  |    2 -
 .../src/main/resources/web/cm/LICENSE.txt          |   23 -
 .../src/main/resources/web/cm/codemirror.css       |   34 +-
 .../src/main/resources/web/cm/codemirror.js        |   37 +-
 .../src/main/resources/web/cm/simple-hint.css      |   35 +-
 .../src/main/resources/web/cm/simple-hint.js       |   37 +-
 .../src/main/resources/web/cm/sparql.js            |   37 +-
 platform/marmotta-user/pom.xml                     |    2 +-
 platform/marmotta-versioning/pom.xml               |    2 +-
 platform/pom.xml                                   |    2 +-
 pom.xml                                            |   27 +-
 134 files changed, 820 insertions(+), 1395 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/LICENSE.txt
----------------------------------------------------------------------
diff --git a/LICENSE.txt b/LICENSE.txt
index 85a36dd..ada0127 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,5 +1,4 @@
- 
-                                Apache License
+                                 Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
 
@@ -202,570 +201,62 @@
    limitations under the License.
 
 
+==============================================================================
+==  New (3-clause) BSD License                                              ==
+==============================================================================
 
-Apache Marmotta subcomponents:
-=============================
+Copyright (c) <YEAR>, <OWNER> (see NOTICE)
+All rights reserved.
 
-The Apache Marmotta project includes a number of subcomponents (libraries) from 
-external projects with separate copyright notices and license terms. Your use of 
-the code for the these subcomponents is subject to the terms and conditions of the 
-following licenses.
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
 
-For the D3.js component,
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
 
-    located at:
-        platform/marmotta-core/src/main/resources/web/admin/js/lib/
-        platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/lib/
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
 
-    Copyright (c) 2013 Michael Bostock, http://d3js.org
+ 3. Neither the name of the <ORGANIZATION> nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
 
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions are met:
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
 
-    * Redistributions of source code must retain the above copyright notice, this
-      list of conditions and the following disclaimer.
+==============================================================================
+==  MIT License                                                             ==
+==============================================================================
 
-    * Redistributions in binary form must reproduce the above copyright notice,
-      this list of conditions and the following disclaimer in the documentation
-      and/or other materials provided with the distribution.
+Copyright (c) <year> <copyright holders>  (see NOTICE)
 
-    * The name Michael Bostock may not be used to endorse or promote products
-      derived from this software without specific prior written permission.
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
 
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-    DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
-    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-    OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
-For the Dracula Graph Library component,
 
-    located at:
-        platform/marmotta-core/src/main/resources/web/admin/js/lib/
-
-    Copyright (c) 2013 Johann Philipp Strathausen, http://www.graphdracula.net
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE.
-
-
-For the strftime component,
-
-    located at:
-        platform/marmotta-core/src/main/resources/web/public/js/lib
-
-    Copyright (c) 2008 Philip S Tellis, http://hacks.bluesmoon.info/strftime
-
-    Redistribution and use of this software in source and binary forms, with or 
-    without modification, are permitted provided that the following conditions are met:
-
-       * Redistributions of source code must retain the above copyright notice, this list 
-         of conditions and the following disclaimer.
-       * Redistributions in binary form must reproduce the above copyright notice, this 
-         list of conditions and the following disclaimer in the documentation and/or other 
-         materials provided with the distribution.
-       * The names of the contributors to this file may not be used to endorse or promote 
-         products derived from this software without specific prior written permission.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
-    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 
-    SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
-    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
-    OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
-    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-For the jQuery component,
-
-    located at:
-        platform/marmotta-core/src/main/resources/web/public/js/lib
-
-    Copyright (c) 2013 jQuery Foundation, http://jquery.com
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE.
-
-
-For the CodeMirror component,
-
-    located at:
-        platform/marmotta-ldpath/src/main/resources/web/cm
-        platform/marmotta-sparql/src/main/resources/web/cm
-        platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib
-
-    Copyright (c) 2013 Marijn Haverbeke, http://codemirror.net
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE.
-
-
-For the D2R Snorql component,
-
-    located at:
-        platform/marmotta-sparql/src/main/resources/web/admin/snorql
-
-    Copyright (c) 2007 Richard Cyganiak, http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/
-    with some minor modifications for Apache Marmotta.
-
-    D2R Snorql is provided under the Apache License, version 2.0.
-    
-
-For the script.aculo.us component,
-
-    located at:
-        platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous
-
-    Copyright (c) 2010 Thomas Fuchs, http://script.aculo.us
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE.
-
-
-For the Prototype component,
-
-    located at:
-        platform/marmotta-sparql/src/main/resources/web/admin/snorql
-
-    Copyright (c) 2010 Sam Stephenson, http://prototypejs.org
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE.    
-
-
-For the SPARQL Flint Editor component, 
-
-    located at:
-        platform/marmotta-sparql/src/main/resources/web/admin/editor/
-
-    Copyright (c) 2011 TSO Ltd, http://github.com/TSO-Openup/FlintSparqlEditor
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE.   
-
-
-For the Sgvizler component,
-
-    located at:
-        platform/marmotta-core/src/main/resources/web/admin/js/lib
-        platform/marmotta-sparql/src/main/resources/web/admin/sgvizler
-
-    Copyright (c) 2011 Martin G. Skjæveland, http://sgvizler.googlecode.com
-
-    Permission is hereby granted, free of charge, to any person obtaining a copy of
-    this software and associated documentation files (the "Software"), to deal in
-    the Software without restriction, including without limitation the rights to
-    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-    of the Software, and to permit persons to whom the Software is furnished to do
-    so, subject to the following conditions:
-
-    The above copyright notice and this permission notice shall be included in all
-    copies or substantial portions of the Software.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-    SOFTWARE. 
-
-
-
-Apache Marmotta 3rd party source code:
-=====================================
-
-Due some restrictions (artifacts availability, custom patches, etc.), the Apache 
-Marmotta project directly includes some code of a number of subcomponents from 
-external projects with separate copyright notices and license terms. Your use of 
-the code for the these subcomponents is subject to the terms and conditions of 
-the following licenses.
-
-For the MigLayout component,
-
-    located at:
-        launchers/marmotta-splash/src/ext/java
-
-    Copyright (c) 2004 MiG InfoCom AB, http://www.migcalendar.com/miglayout
-
-    All rights reserved.
-
-    Redistribution and use in source and binary forms, with or without modification,
-    are permitted provided that the following conditions are met:
-
-     1. Redistributions of source code must retain the above copyright
-        notice, this list of conditions and the following disclaimer.
-
-     2. Redistributions in binary form must reproduce the above copyright
-        notice, this list of conditions and the following disclaimer in the
-        documentation and/or other materials provided with the distribution.
-
-     3. Neither the name of the MiG InfoCom AB nor the names of its contributors
-        may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-    THE POSSIBILITY OF SUCH DAMAGE.    
-    
-
-For the SwingBits component,
-
-    located at:
-        launchers/marmotta-splash/src/ext/java
-
-    Copyright (c) 2006 EzWare, http://swingbits.sourceforge.net
-
-    All rights reserved.
-
-    Redistribution and use in source and binary forms, with or without modification,
-    are permitted provided that the following conditions are met:
-
-     1. Redistributions of source code must retain the above copyright
-        notice, this list of conditions and the following disclaimer.
-
-     2. Redistributions in binary form must reproduce the above copyright
-        notice, this list of conditions and the following disclaimer in the
-        documentation and/or other materials provided with the distribution.
-
-     3. Neither the name of the EzWare nor the names of its contributors
-        may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-    THE POSSIBILITY OF SUCH DAMAGE. 
-
-
-For the ROME component,
-
-    located at:
-        commons/sesame-tools-rio-rss/src/ext/java/
-
-    Copyright (c) 2004 Sun Microsystems, http://rometools.jira.com
-    with some minor modifications for Apache Marmotta.
-
-    ROME is provided under the Apache License, version 2.0.
-
-
-For the JSONLD-Java component,
-
-    located at:
-        commons/sesame-tools-rio-jsonld/src/ext/java/
-
-    Copyright (c) 2012, Deutsches Forschungszentrum für Künstliche Intelligenz
-    GmbH, http://github.com/tristan/jsonld-java
-
-    Redistribution and use in source and binary forms, with or without modification,
-    are permitted provided that the following conditions are met:
-
-     1. Redistributions of source code must retain the above copyright
-        notice, this list of conditions and the following disclaimer.
-
-     2. Redistributions in binary form must reproduce the above copyright
-        notice, this list of conditions and the following disclaimer in the
-        documentation and/or other materials provided with the distribution.
-
-     3. Neither the name of the Deutsches Forschungszentrum für Künstliche 
-        Intelligenz GmbH nor the names of its contributors may be used to endorse 
-        or promote products derived from this software without specific prior 
-        written permission.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-    THE POSSIBILITY OF SUCH DAMAGE.
-        
-
-
-Apache Marmotta 3rd party data files:
-====================================
-
-The Apache Marmotta project directly includes some testsuite data file of a number 
-of subcomponents from external projects with separate copyright notices and license 
-terms. Your use of the code for the these subcomponents is subject to the terms and 
-conditions of the following licenses.
-
-For the JSON-LD component,
-
-    located at:
-        commons/sesame-tools-rio-jsonld/src/test/resources/org/apache/marmotta/commons/sesame/rio/jsonld/
-
-    Public Domain (Creative Commons Zero license) without copyright, 
-    http://json-ld.org/test-suite
-
-    CC0 1.0 Universal
-
-        CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
-        LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
-        ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
-        INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
-        REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
-        PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
-        THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
-        HEREUNDER.
-
-    Statement of Purpose
-
-    The laws of most jurisdictions throughout the world automatically confer
-    exclusive Copyright and Related Rights (defined below) upon the creator
-    and subsequent owner(s) (each and all, an "owner") of an original work of
-    authorship and/or a database (each, a "Work").
-
-    Certain owners wish to permanently relinquish those rights to a Work for
-    the purpose of contributing to a commons of creative, cultural and
-    scientific works ("Commons") that the public can reliably and without fear
-    of later claims of infringement build upon, modify, incorporate in other
-    works, reuse and redistribute as freely as possible in any form whatsoever
-    and for any purposes, including without limitation commercial purposes.
-    These owners may contribute to the Commons to promote the ideal of a free
-    culture and the further production of creative, cultural and scientific
-    works, or to gain reputation or greater distribution for their Work in
-    part through the use and efforts of others.
-
-    For these and/or other purposes and motivations, and without any
-    expectation of additional consideration or compensation, the person
-    associating CC0 with a Work (the "Affirmer"), to the extent that he or she
-    is an owner of Copyright and Related Rights in the Work, voluntarily
-    elects to apply CC0 to the Work and publicly distribute the Work under its
-    terms, with knowledge of his or her Copyright and Related Rights in the
-    Work and the meaning and intended legal effect of CC0 on those rights.
-
-    1. Copyright and Related Rights. A Work made available under CC0 may be
-    protected by copyright and related or neighboring rights ("Copyright and
-    Related Rights"). Copyright and Related Rights include, but are not
-    limited to, the following:
-
-      i. the right to reproduce, adapt, distribute, perform, display,
-         communicate, and translate a Work;
-     ii. moral rights retained by the original author(s) and/or performer(s);
-    iii. publicity and privacy rights pertaining to a person's image or
-         likeness depicted in a Work;
-     iv. rights protecting against unfair competition in regards to a Work,
-         subject to the limitations in paragraph 4(a), below;
-      v. rights protecting the extraction, dissemination, use and reuse of data
-         in a Work;
-     vi. database rights (such as those arising under Directive 96/9/EC of the
-         European Parliament and of the Council of 11 March 1996 on the legal
-         protection of databases, and under any national implementation
-         thereof, including any amended or successor version of such
-         directive); and
-    vii. other similar, equivalent or corresponding rights throughout the
-         world based on applicable law or treaty, and any national
-         implementations thereof.
-
-    2. Waiver. To the greatest extent permitted by, but not in contravention
-    of, applicable law, Affirmer hereby overtly, fully, permanently,
-    irrevocably and unconditionally waives, abandons, and surrenders all of
-    Affirmer's Copyright and Related Rights and associated claims and causes
-    of action, whether now known or unknown (including existing as well as
-    future claims and causes of action), in the Work (i) in all territories
-    worldwide, (ii) for the maximum duration provided by applicable law or
-    treaty (including future time extensions), (iii) in any current or future
-    medium and for any number of copies, and (iv) for any purpose whatsoever,
-    including without limitation commercial, advertising or promotional
-    purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
-    member of the public at large and to the detriment of Affirmer's heirs and
-    successors, fully intending that such Waiver shall not be subject to
-    revocation, rescission, cancellation, termination, or any other legal or
-    equitable action to disrupt the quiet enjoyment of the Work by the public
-    as contemplated by Affirmer's express Statement of Purpose.
-
-    3. Public License Fallback. Should any part of the Waiver for any reason
-    be judged legally invalid or ineffective under applicable law, then the
-    Waiver shall be preserved to the maximum extent permitted taking into
-    account Affirmer's express Statement of Purpose. In addition, to the
-    extent the Waiver is so judged Affirmer hereby grants to each affected
-    person a royalty-free, non transferable, non sublicensable, non exclusive,
-    irrevocable and unconditional license to exercise Affirmer's Copyright and
-    Related Rights in the Work (i) in all territories worldwide, (ii) for the
-    maximum duration provided by applicable law or treaty (including future
-    time extensions), (iii) in any current or future medium and for any number
-    of copies, and (iv) for any purpose whatsoever, including without
-    limitation commercial, advertising or promotional purposes (the
-    "License"). The License shall be deemed effective as of the date CC0 was
-    applied by Affirmer to the Work. Should any part of the License for any
-    reason be judged legally invalid or ineffective under applicable law, such
-    partial invalidity or ineffectiveness shall not invalidate the remainder
-    of the License, and in such case Affirmer hereby affirms that he or she
-    will not (i) exercise any of his or her remaining Copyright and Related
-    Rights in the Work or (ii) assert any associated claims and causes of
-    action with respect to the Work, in either case contrary to Affirmer's
-    express Statement of Purpose.
-
-    4. Limitations and Disclaimers.
-
-     a. No trademark or patent rights held by Affirmer are waived, abandoned,
-        surrendered, licensed or otherwise affected by this document.
-     b. Affirmer offers the Work as-is and makes no representations or
-        warranties of any kind concerning the Work, express, implied,
-        statutory or otherwise, including without limitation warranties of
-        title, merchantability, fitness for a particular purpose, non
-        infringement, or the absence of latent or other defects, accuracy, or
-        the present or absence of errors, whether or not discoverable, all to
-        the greatest extent permissible under applicable law.
-     c. Affirmer disclaims responsibility for clearing rights of other persons
-        that may apply to the Work or any use thereof, including without
-        limitation any person's Copyright and Related Rights in the Work.
-        Further, Affirmer disclaims responsibility for obtaining any necessary
-        consents, permissions or other rights required for any use of the
-        Work.
-     d. Affirmer understands and acknowledges that Creative Commons is not a
-        party to this document and has no duty or obligation with respect to
-        this CC0 or use of the Work.
-
-
-For the ical4j component,
-
-    located at:
-        commons/sesame-tools-rio-vcard/src/test/resources/org/apache/marmotta/commons/sesame/rio/vcard/
-
-    Copyright (c) 2011 Ben Fortuna, http://ical4j.googlecode.com
-
-    Redistribution and use in source and binary forms, with or without modification,
-    are permitted provided that the following conditions are met:
-
-     1. Redistributions of source code must retain the above copyright
-        notice, this list of conditions and the following disclaimer.
-
-     2. Redistributions in binary form must reproduce the above copyright
-        notice, this list of conditions and the following disclaimer in the
-        documentation and/or other materials provided with the distribution.
-
-     3. Neither the name of the Ben Fortuna nor the names of its contributors
-        may be used to endorse or promote products derived from this software
-        without specific prior written permission.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-    THE POSSIBILITY OF SUCH DAMAGE.    
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/NOTICE.txt
----------------------------------------------------------------------
diff --git a/NOTICE.txt b/NOTICE.txt
index 58b42ff..22f8d89 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,6 +1,6 @@
 Apache Marmotta, Copyright 2012-2013 The Apache Software Foundation
 
-This product includes software developed at The Apache Software Foundation (http://www.apache.org).
+This product includes software developed at The Apache Software Foundation (http://www.apache.org/).
 
 Portions of this software were originally based on the following:
 
@@ -8,69 +8,131 @@ Portions of this software were originally based on the following:
 
 These have been licensed to the Apache Software Foundation under a software grant.
 
-This product also includes the following third-party components:
 
-* D3.js, http://d3js.org
+==============================================================================
+Javascript Libraries included in Marmotta Platform
+==============================================================================
 
-  Copyright (c) 2013 Michael Bostock
+D3.js is copyright (c) 2013, Michael Bostock and licensed under New BSD
+License. The source code is available at https://github.com/mbostock/d3
 
-* Dracula Graph Library, http://www.graphdracula.net
+Source Locations:
+- platform/marmotta-core/src/main/resources/web/admin/js/lib/
+- platform/marmotta-sparql/src/main/resources/web/admin/sgvizler/0.5/lib/
 
-  Copyright (c) 2013 Johann Philipp Strathausen
 
-* strftime, http://hacks.bluesmoon.info/strftime
+The Dracula Graph Library is (c) 2010 by Johann Philipp Strathausen
+<st...@gmail.com> and licensed under MIT License. The source code is
+available at https://github.com/strathausen/dracula
 
-  Copyright (c) 2008 Philip S Tellis
+Source Locations:
+- platform/marmotta-core/src/main/resources/web/admin/js/lib/
 
-* jQuery, http://jquery.com
 
-  Copyright (c) 2013 jQuery Foundation
+The strftime library is copyright (c) 2008, Philip S Tellis
+<ph...@bluesmoon.info> and licensed under New BSD License. The source code
+is available at http://hacks.bluesmoon.info/strftime/files.html
 
-* CodeMirror, http://codemirror.net
+Source Locations:
+- platform/marmotta-core/src/main/resources/web/public/js/lib
 
-  Copyright (c) 2013 Marijn Haverbeke
 
-* D2R Snorql, http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/,
+The JQuery Library is copyright 2013 jQuery Foundation and other contributors,
+and licensed under MIT License. The source code is available at
+https://github.com/jquery/jquery
 
-  Copyright (c) 2007 Richard Cyganiak
+Source Locations:
+- platform/marmotta-core/src/main/resources/web/public/js/lib
 
-* script.aculo.us, http://script.aculo.us
 
-  Copyright (c) 2010 Thomas Fuchs
+The CodeMirror Library is copyright (C) 2013 by Marijn Haverbeke
+<ma...@gmail.com> and licensed under MIT License. The source code is
+available at https://github.com/marijnh/CodeMirror
 
-* Prototype, http://prototypejs.org
+Source Locations:
+- platform/marmotta-ldpath/src/main/resources/web/cm
+- platform/marmotta-sparql/src/main/resources/web/cm
+- platform/marmotta-sparql/src/main/resources/web/admin/editor/sparql/lib
 
-  Copyright (c) 2010 Sam Stephenson
 
-* SPARQL Flint Editor, http://github.com/TSO-Openup/FlintSparqlEditor
+The D2R Snorql Library was originally created by Richard Cyganaik
+(http://richard.cyganiak.de/) for the D2R server project
+(http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/). It is licensed under the
+Apache Software License 2.0. The source code is available at
+https://github.com/kurtjx/SNORQL
 
-  Copyright (c) 2011 TSO Ltd
+Source Locations:
+- platform/marmotta-sparql/src/main/resources/web/admin/snorql
 
-* Sgvizler, http://sgvizler.googlecode.com
 
-  Copyright (c) 2011 Martin G. Skjæveland
+The script.aculo.us library is copyright (c) 2005-2010 Thomas Fuchs and is
+licensed under MIT License. The source code is available at
+https://github.com/madrobby/scriptaculous
 
-* MigLayout, http://www.migcalendar.com/miglayout
+Source Locations:
+- platform/marmotta-sparql/src/main/resources/web/admin/snorql/scriptaculous
 
-  Copyright (c) 2004 MiG InfoCom AB
 
-* SwingBits, http://swingbits.sourceforge.net
+The Prototype Library is copyright (c) 2005-2010 Sam Stephenson and is
+licensed under MIT License. The source code is available at
+https://github.com/sstephenson/prototype
 
-  Copyright (c) 2006 EzWare
+Source Locations:
+- platform/marmotta-sparql/src/main/resources/web/admin/snorql
 
-* ROME, http://rometools.jira.com
 
-  Copyright (c) 2004 Sun Microsystems
+The SPARQL Flint Editor is copyright (c) 2011 TSO Ltd and is licensed under
+MIT License. The source code is available at
+https://github.com/TSO-Openup/FlintSparqlEditor
 
-* JSONLD-Java, http://github.com/tristan/jsonld-java
+Source Locations:
+- platform/marmotta-sparql/src/main/resources/web/admin/editor/
 
-  Copyright (c) 2012, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH
 
-* JSON-LD Test Suite, http://json-ld.org/test-suite
+The Sgvizler Library is copyright (c) 2011 Martin G. Skjæveland and is
+licensed under MIT License. The source code is available at
+https://code.google.com/p/sgvizler/source
 
-  Public Domain (Creative Commons Zero license) without copyright
+Source Locations:
+- platform/marmotta-core/src/main/resources/web/admin/js/lib
+- platform/marmotta-sparql/src/main/resources/web/admin/sgvizler
 
-* ical4j test suite, http://ical4j.googlecode.com
 
-  Copyright (c) 2011 Ben Fortuna
+==============================================================================
+3rd Party Source Code
+==============================================================================
 
+The module launchers/marmotta-splash contains source code from the projects
+MigLayout and SwingBits, which has the following copyrights:
+
+The MigLayout library is copyright (c) 2004, Mikael Grev, MiG InfoCom AB, and
+licensed under a New BSD License. The source code is available at
+http://www.migcalendar.com/miglayout/versions/
+
+The SwingBits library is copyright (C) 2006 Michael Hjembaek, and licensed
+under a New BSD License. The source code is available at
+http://swingbits.sourceforge.net/
+
+
+The module commons/sesame-tools-rio-rss contains source code from the
+orphaned ROME project. ROME has copyright 2004 Sun Microsystems, Inc.
+and copyright 2011 The ROME Team, and is licensed under Apache License 2.0.
+The source code is available at
+https://rometools.jira.com/source/browse/ROME/trunk
+
+
+The module commons/sesame-tools-rio-jsonld contains source code from the
+JSONLD-Java project. JSONLD-Java is copyright (c) 2012, Deutsches
+Forschungszentrum für Künstliche Intelligenz GmbH and licensed under a
+New BSD License. The source code is available at
+https://github.com/tristan/jsonld-java
+
+
+==============================================================================
+3rd Party Data Files
+==============================================================================
+
+The test sources for commons/sesame-tools-rio-jsonld contain the data files
+from the JSON-LD Test Suite. The JSON-LD Test Suite is published as public
+domain (with a Creative Commons Zero license and without copyright). The
+source code is available at https://github.com/json-ld/json-ld.org
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/archetypes/marmotta-archetype-module/pom.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-module/pom.xml b/build/archetypes/marmotta-archetype-module/pom.xml
index 715bfb9..15ab89d 100644
--- a/build/archetypes/marmotta-archetype-module/pom.xml
+++ b/build/archetypes/marmotta-archetype-module/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/archetypes/marmotta-archetype-webapp/pom.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/pom.xml b/build/archetypes/marmotta-archetype-webapp/pom.xml
index 6db894d..dde1896 100644
--- a/build/archetypes/marmotta-archetype-webapp/pom.xml
+++ b/build/archetypes/marmotta-archetype-webapp/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/archetypes/pom.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/pom.xml b/build/archetypes/pom.xml
index b3ab06d..bb1c01b 100644
--- a/build/archetypes/pom.xml
+++ b/build/archetypes/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
     <artifactId>archetypes-reactor</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/checkstyle-resources/pom.xml
----------------------------------------------------------------------
diff --git a/build/checkstyle-resources/pom.xml b/build/checkstyle-resources/pom.xml
index 45f30fb..2a55e83 100644
--- a/build/checkstyle-resources/pom.xml
+++ b/build/checkstyle-resources/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/dependency-resource-supplement/pom.xml
----------------------------------------------------------------------
diff --git a/build/dependency-resource-supplement/pom.xml b/build/dependency-resource-supplement/pom.xml
index a1696f6..d9eb75a 100644
--- a/build/dependency-resource-supplement/pom.xml
+++ b/build/dependency-resource-supplement/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/plugins/buildinfo-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/build/plugins/buildinfo-maven-plugin/pom.xml b/build/plugins/buildinfo-maven-plugin/pom.xml
index 251268f..ab3bf6a 100644
--- a/build/plugins/buildinfo-maven-plugin/pom.xml
+++ b/build/plugins/buildinfo-maven-plugin/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/plugins/marmotta-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/build/plugins/marmotta-maven-plugin/pom.xml b/build/plugins/marmotta-maven-plugin/pom.xml
index e6ae50a..eb4f2ca 100644
--- a/build/plugins/marmotta-maven-plugin/pom.xml
+++ b/build/plugins/marmotta-maven-plugin/pom.xml
@@ -20,7 +20,7 @@
 
     <parent>
         <groupId>org.apache.marmotta</groupId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
         <artifactId>plugins-reactor</artifactId>
     </parent>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/plugins/pom.xml
----------------------------------------------------------------------
diff --git a/build/plugins/pom.xml b/build/plugins/pom.xml
index 318c492..d25196d 100644
--- a/build/plugins/pom.xml
+++ b/build/plugins/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/plugins/refpack-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/build/plugins/refpack-maven-plugin/pom.xml b/build/plugins/refpack-maven-plugin/pom.xml
index 3a89d0e..50671aa 100644
--- a/build/plugins/refpack-maven-plugin/pom.xml
+++ b/build/plugins/refpack-maven-plugin/pom.xml
@@ -21,7 +21,7 @@
 
     <parent>
         <groupId>org.apache.marmotta</groupId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <artifactId>plugins-reactor</artifactId>
         <relativePath>../</relativePath>
     </parent>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/plugins/repocheck-maven-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/build/plugins/repocheck-maven-plugin/pom.xml b/build/plugins/repocheck-maven-plugin/pom.xml
index 4e9a097..3da02ac 100644
--- a/build/plugins/repocheck-maven-plugin/pom.xml
+++ b/build/plugins/repocheck-maven-plugin/pom.xml
@@ -20,7 +20,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>plugins-reactor</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
         <!-- <artifactId>maven-plugins</artifactId> <groupId>org.apache.maven.plugins</groupId> 
             <version>23</version> <relativePath /> -->

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/build/pom.xml
----------------------------------------------------------------------
diff --git a/build/pom.xml b/build/pom.xml
index 96512e8..b6b8359 100644
--- a/build/pom.xml
+++ b/build/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/client/marmotta-client-java/pom.xml
----------------------------------------------------------------------
diff --git a/client/marmotta-client-java/pom.xml b/client/marmotta-client-java/pom.xml
index 4b986b5..a083897 100644
--- a/client/marmotta-client-java/pom.xml
+++ b/client/marmotta-client-java/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/client/marmotta-client-js/pom.xml
----------------------------------------------------------------------
diff --git a/client/marmotta-client-js/pom.xml b/client/marmotta-client-js/pom.xml
index 78aa907..2213ba3 100644
--- a/client/marmotta-client-js/pom.xml
+++ b/client/marmotta-client-js/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent/pom.xml</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/client/pom.xml
----------------------------------------------------------------------
diff --git a/client/pom.xml b/client/pom.xml
index 13180c7..f63e640 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/marmotta-commons/pom.xml
----------------------------------------------------------------------
diff --git a/commons/marmotta-commons/pom.xml b/commons/marmotta-commons/pom.xml
index 2a4fa1d..53b4a06 100644
--- a/commons/marmotta-commons/pom.xml
+++ b/commons/marmotta-commons/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/pom.xml
----------------------------------------------------------------------
diff --git a/commons/pom.xml b/commons/pom.xml
index b79b5d4..05b28bf 100644
--- a/commons/pom.xml
+++ b/commons/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-filter/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-filter/pom.xml b/commons/sesame-filter/pom.xml
index 4054eca..10c433e 100644
--- a/commons/sesame-filter/pom.xml
+++ b/commons/sesame-filter/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-facading/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-facading/pom.xml b/commons/sesame-tools-facading/pom.xml
index f98e2f1..021b47a 100644
--- a/commons/sesame-tools-facading/pom.xml
+++ b/commons/sesame-tools-facading/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-rio-api/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-rio-api/pom.xml b/commons/sesame-tools-rio-api/pom.xml
index 2f8e912..18c3eee 100644
--- a/commons/sesame-tools-rio-api/pom.xml
+++ b/commons/sesame-tools-rio-api/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-rio-ical/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-rio-ical/pom.xml b/commons/sesame-tools-rio-ical/pom.xml
index cbab00c..3414eed 100644
--- a/commons/sesame-tools-rio-ical/pom.xml
+++ b/commons/sesame-tools-rio-ical/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-rio-jsonld/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-rio-jsonld/pom.xml b/commons/sesame-tools-rio-jsonld/pom.xml
index b2cde39..028556c 100644
--- a/commons/sesame-tools-rio-jsonld/pom.xml
+++ b/commons/sesame-tools-rio-jsonld/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-rio-rdfjson/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-rio-rdfjson/pom.xml b/commons/sesame-tools-rio-rdfjson/pom.xml
index fd2f480..da00181 100644
--- a/commons/sesame-tools-rio-rdfjson/pom.xml
+++ b/commons/sesame-tools-rio-rdfjson/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-rio-rss/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-rio-rss/pom.xml b/commons/sesame-tools-rio-rss/pom.xml
index 90e5be9..5dd8f40 100644
--- a/commons/sesame-tools-rio-rss/pom.xml
+++ b/commons/sesame-tools-rio-rss/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/commons/sesame-tools-rio-vcard/pom.xml
----------------------------------------------------------------------
diff --git a/commons/sesame-tools-rio-vcard/pom.xml b/commons/sesame-tools-rio-vcard/pom.xml
index 1620100..6d88340 100644
--- a/commons/sesame-tools-rio-vcard/pom.xml
+++ b/commons/sesame-tools-rio-vcard/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/extras/pom.xml
----------------------------------------------------------------------
diff --git a/extras/pom.xml b/extras/pom.xml
index 51b89f1..4d9cf28 100644
--- a/extras/pom.xml
+++ b/extras/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/launchers/marmotta-installer/pom.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-installer/pom.xml b/launchers/marmotta-installer/pom.xml
index 36d5baa..6023723 100644
--- a/launchers/marmotta-installer/pom.xml
+++ b/launchers/marmotta-installer/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/launchers/marmotta-splash/pom.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-splash/pom.xml b/launchers/marmotta-splash/pom.xml
index 949bed6..2d67d85 100644
--- a/launchers/marmotta-splash/pom.xml
+++ b/launchers/marmotta-splash/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/launchers/marmotta-webapp/pom.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-webapp/pom.xml b/launchers/marmotta-webapp/pom.xml
index 91afcc8..4649c5c 100644
--- a/launchers/marmotta-webapp/pom.xml
+++ b/launchers/marmotta-webapp/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/launchers/pom.xml
----------------------------------------------------------------------
diff --git a/launchers/pom.xml b/launchers/pom.xml
index f0e15e4..01fc15b 100644
--- a/launchers/pom.xml
+++ b/launchers/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-contextaware/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-contextaware/pom.xml b/libraries/kiwi/kiwi-contextaware/pom.xml
index 822f240..ce9fda9 100644
--- a/libraries/kiwi/kiwi-contextaware/pom.xml
+++ b/libraries/kiwi/kiwi-contextaware/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>kiwi-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-reasoner/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-reasoner/pom.xml b/libraries/kiwi/kiwi-reasoner/pom.xml
index f46f1fa..8d77e79 100644
--- a/libraries/kiwi/kiwi-reasoner/pom.xml
+++ b/libraries/kiwi/kiwi-reasoner/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>kiwi-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-transactions/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-transactions/pom.xml b/libraries/kiwi/kiwi-transactions/pom.xml
index 21dd8e0..4be1e0a 100644
--- a/libraries/kiwi/kiwi-transactions/pom.xml
+++ b/libraries/kiwi/kiwi-transactions/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>kiwi-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-triplestore/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/pom.xml b/libraries/kiwi/kiwi-triplestore/pom.xml
index af3f054..6249f8d 100644
--- a/libraries/kiwi/kiwi-triplestore/pom.xml
+++ b/libraries/kiwi/kiwi-triplestore/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>kiwi-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiGarbageCollector.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiGarbageCollector.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiGarbageCollector.java
index 7d674a5..f832dd8 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiGarbageCollector.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiGarbageCollector.java
@@ -99,7 +99,7 @@ public class KiWiGarbageCollector extends Thread {
     }
 
 
-    protected int garbageCollect() throws SQLException {
+    private int garbageCollect() throws SQLException {
         round++;
 
         Connection con = persistence.getJDBCConnection();
@@ -190,12 +190,13 @@ public class KiWiGarbageCollector extends Thread {
         builder.append("DELETE FROM triples WHERE deleted = true");
 
         if(tripleTableDependencies.size() > 0) {
+            builder.append(" AND NOT EXISTS (");
 
             Iterator<TableDependency> iterator = tripleTableDependencies.iterator();
             while (iterator.hasNext()) {
                 TableDependency next = iterator.next();
 
-                builder.append(" AND NOT EXISTS (");
+                builder.append("(");
                 builder.append("SELECT ");
                 builder.append(next.column);
                 builder.append(" FROM ");
@@ -205,8 +206,13 @@ public class KiWiGarbageCollector extends Thread {
                 builder.append(" = triples.id");
 
                 builder.append(")");
+
+                if(iterator.hasNext()) {
+                    builder.append(" UNION ");
+                }
             }
 
+            builder.append(")");
         }
         return builder.toString();
     }
@@ -222,6 +228,7 @@ public class KiWiGarbageCollector extends Thread {
             while (iterator.hasNext()) {
                 TableDependency next = iterator.next();
 
+                builder.append("(");
                 builder.append("SELECT ");
                 builder.append(next.column);
                 builder.append(" FROM ");
@@ -233,9 +240,11 @@ public class KiWiGarbageCollector extends Thread {
                 builder.append(")");
 
                 if(iterator.hasNext()) {
-                    builder.append(" AND NOT EXISTS (");
+                    builder.append(" UNION ");
                 }
             }
+
+            builder.append(")");
         }
         return builder.toString();
     }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
index 3df970d..bb8604d 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
@@ -406,25 +406,5 @@ public class KiWiPersistence {
         cacheManager.clear();
     }
 
-    /**
-     * Notify the garbage collector thread to run. The garbage collection will be executed in the scope of the
-     * garbage collector thread.
-     */
-    public void notifyGarbageCollector() {
-        synchronized (garbageCollector) {
-            garbageCollector.notify();
-        }
-    }
-
-    /**
-     * Force the garbage collector to execute instantly in the scope of the calling thread.
-     *
-     * @throws SQLException
-     */
-    public void forceGarbageCollector() throws SQLException {
-        synchronized (garbageCollector) {
-            garbageCollector.garbageCollect();
-        }
-    }
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
index c863cbf..4b0384c 100644
--- a/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
+++ b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
@@ -1110,78 +1110,4 @@ public class PersistenceTest {
             connection.close();
         }
     }
-
-    /**
-     * Test if the garbage collection runs successfully.
-     *
-     * @throws Exception
-     */
-    @Test
-    public void testGarbageCollector() throws Exception {
-        // store some triples first
-
-        KiWiConnection connection = persistence.getConnection();
-        try {
-            KiWiUriResource stype    = new KiWiUriResource(Namespaces.NS_XSD+"string");
-            KiWiUriResource subject  = new KiWiUriResource("http://localhost/resource/"+RandomStringUtils.randomAlphanumeric(8));
-            KiWiUriResource pred_1   = new KiWiUriResource("http://localhost/predicate/P1");
-            KiWiUriResource pred_2   = new KiWiUriResource("http://localhost/predicate/P2");
-            KiWiUriResource object_1 = new KiWiUriResource("http://localhost/resource/"+RandomStringUtils.randomAlphanumeric(8));
-            KiWiStringLiteral object_2 = new KiWiStringLiteral(RandomStringUtils.randomAlphanumeric(32),null,stype);
-            KiWiUriResource context  = new KiWiUriResource("http://localhost/context/"+RandomStringUtils.randomAlphanumeric(8));
-
-            connection.storeNode(stype);
-            connection.storeNode(subject);
-            connection.storeNode(pred_1);
-            connection.storeNode(pred_2);
-            connection.storeNode(object_1);
-            connection.storeNode(object_2);
-            connection.storeNode(context);
-
-            KiWiTriple triple1 = new KiWiTriple(subject,pred_1,object_1,context);
-            KiWiTriple triple2 = new KiWiTriple(subject,pred_2,object_2,context);
-
-            connection.storeTriple(triple1);
-            connection.storeTriple(triple2);
-
-            connection.commit();
-
-            // delete all triples again
-            connection.deleteTriple(triple1);
-            connection.deleteTriple(triple2);
-
-            connection.commit();
-
-            // test database contents
-            PreparedStatement stmt = connection.getJDBCConnection().prepareStatement("SELECT * FROM triples WHERE deleted = true");
-            ResultSet dbResult1 = stmt.executeQuery();
-
-            Assert.assertTrue(dbResult1.next());
-            Assert.assertEquals((long) triple1.getId(), dbResult1.getLong("id"));
-            Assert.assertEquals((long) triple1.getSubject().getId(), dbResult1.getLong("subject"));
-            Assert.assertEquals((long) triple1.getPredicate().getId(), dbResult1.getLong("predicate"));
-            Assert.assertEquals((long)triple1.getObject().getId(),dbResult1.getLong("object"));
-
-            Assert.assertTrue(dbResult1.next());
-            Assert.assertEquals((long)triple2.getId(),dbResult1.getLong("id"));
-            Assert.assertEquals((long)triple2.getSubject().getId(),dbResult1.getLong("subject"));
-            Assert.assertEquals((long)triple2.getPredicate().getId(),dbResult1.getLong("predicate"));
-            Assert.assertEquals((long)triple2.getObject().getId(),dbResult1.getLong("object"));
-
-            dbResult1.close();
-
-
-            persistence.forceGarbageCollector();
-
-            // test database contents
-            ResultSet dbResult2 = stmt.executeQuery();
-
-            Assert.assertFalse(dbResult2.next());
-
-
-        } finally {
-            connection.close();
-        }
-
-    }
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-tripletable/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-tripletable/pom.xml b/libraries/kiwi/kiwi-tripletable/pom.xml
index b512664..3aa74e9 100644
--- a/libraries/kiwi/kiwi-tripletable/pom.xml
+++ b/libraries/kiwi/kiwi-tripletable/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>kiwi-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
     </parent>
 
     <artifactId>kiwi-tripletable</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-versioning/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-versioning/pom.xml b/libraries/kiwi/kiwi-versioning/pom.xml
index 05dba38..3d37f81 100644
--- a/libraries/kiwi/kiwi-versioning/pom.xml
+++ b/libraries/kiwi/kiwi-versioning/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>kiwi-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java b/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
index 960bbc7..10ad516 100644
--- a/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
+++ b/libraries/kiwi/kiwi-versioning/src/test/java/org/apache/marmotta/kiwi/versioning/test/VersioningPersistenceTest.java
@@ -17,7 +17,6 @@
  */
 package org.apache.marmotta.kiwi.versioning.test;
 
-import info.aduna.iteration.Iterations;
 import org.apache.commons.lang.RandomStringUtils;
 import org.apache.marmotta.kiwi.model.rdf.KiWiStringLiteral;
 import org.apache.marmotta.kiwi.model.rdf.KiWiTriple;
@@ -39,8 +38,6 @@ import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.util.ArrayList;
 import java.util.Date;
@@ -295,7 +292,6 @@ public class VersioningPersistenceTest {
             version2.setCommitTime(new Date());
             version2.addTriple(triple2);
             version2.removeTriple(triple1);
-            connection.deleteTriple(triple1);
             connection.storeVersion(version2);
             connection.commit();
 
@@ -306,7 +302,7 @@ public class VersioningPersistenceTest {
 
 
             // now we test different ways of listing versions between dates
-            List<Version> list1 = Iterations.asList(connection.listVersions(date1, date2));
+            List<Version> list1 = connection.listVersions(date1,date2).asList();
             Assert.assertEquals("there should be exactly one version from "+date1+" to "+date2,1,list1.size());
             Assert.assertEquals("contents of version differ", version1, list1.get(0));
             Assert.assertEquals("version id is not 1", 1L, (long)list1.get(0).getId());
@@ -317,42 +313,27 @@ public class VersioningPersistenceTest {
             Assert.assertEquals("latest version is not the expected version", version1,latest2);
 
             // check if listVersions with subject1 now gives exactly one version
-            List<Version> listr1 = Iterations.asList(connection.listVersions(subject, date1, date2));
+            List<Version> listr1 = connection.listVersions(subject,date1,date2).asList();
             Assert.assertEquals("there should be exactly one version", 1, listr1.size());
             Assert.assertEquals("contents of version differ", version1, listr1.get(0));
             Assert.assertEquals("version id is not 1", 1L, (long)listr1.get(0).getId());
 
 
-            List<Version> list2 = Iterations.asList(connection.listVersions(date2, date3));
+            List<Version> list2 = connection.listVersions(date2,date3).asList();
             Assert.assertEquals("there should be exactly one version from "+date2+" to "+date3,1,list2.size());
             Assert.assertEquals("contents of version differ", version2, list2.get(0));
             Assert.assertEquals("version id is not 2", 2L, (long)list2.get(0).getId());
 
-            List<Version> list3 = Iterations.asList(connection.listVersions(date3, new Date()));
+            List<Version> list3 = connection.listVersions(date3,new Date()).asList();
             Assert.assertEquals("there should be no version from "+date3+" to now",0,list3.size());
 
-            List<Version> list4 = Iterations.asList(connection.listVersions(date1, date3));
+            List<Version> list4 = connection.listVersions(date1,date3).asList();
             Assert.assertEquals("there should be exactly two versions from "+date1+" to "+date3,2,list4.size());
             Assert.assertEquals("contents of version1 differ", version1, list4.get(0));
             Assert.assertEquals("contents of version2 differ", version2, list4.get(1));
 
 
             connection.commit();
-
-            // test garbage collector (should not throw an error and should not remove any triples, since they are
-            // referenced by the versioning table)
-            // test database contents
-            PreparedStatement stmt = connection.getJDBCConnection().prepareStatement("SELECT * FROM triples WHERE deleted = true");
-            ResultSet dbResult1 = stmt.executeQuery();
-            Assert.assertTrue(dbResult1.next());
-
-            persistence.forceGarbageCollector();
-
-            // triple should not be garbage collected
-            ResultSet dbResult2 = stmt.executeQuery();
-            Assert.assertTrue(dbResult2.next());
-
-
         } finally {
             connection.close();
         }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/kiwi/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/kiwi/pom.xml b/libraries/kiwi/pom.xml
index f5fac0c..39132c6 100644
--- a/libraries/kiwi/pom.xml
+++ b/libraries/kiwi/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-api/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-api/pom.xml b/libraries/ldcache/ldcache-api/pom.xml
index 96d0304..8462669 100644
--- a/libraries/ldcache/ldcache-api/pom.xml
+++ b/libraries/ldcache/ldcache-api/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09498484/libraries/ldcache/ldcache-backend-ehcache/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldcache/ldcache-backend-ehcache/pom.xml b/libraries/ldcache/ldcache-backend-ehcache/pom.xml
index d951255..86a9d92 100644
--- a/libraries/ldcache/ldcache-backend-ehcache/pom.xml
+++ b/libraries/ldcache/ldcache-backend-ehcache/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>3.1.0-incubating-SNAPSHOT</version>
         <relativePath>../../../parent</relativePath>
     </parent>
 


[15/21] git commit: merged master into develop

Posted by tk...@apache.org.
merged master into develop


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/61f72cb9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/61f72cb9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/61f72cb9

Branch: refs/heads/master
Commit: 61f72cb9f2ec4c512815cf5d79298848ecd1aef1
Parents: 8f17c43 24f602a
Author: Sergio Fernández <wi...@apache.org>
Authored: Tue Apr 9 08:32:52 2013 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Tue Apr 9 08:32:52 2013 +0200

----------------------------------------------------------------------
 LICENSE.txt                                        |  602 +++-
 .../src/main/resources/logback.xml                 |   47 +-
 .../src/main/webapp/WEB-INF/jetty-web.xml          |   48 +-
 .../src/main/webapp/search/test_luke.html          |   44 -
 .../src/main/webapp/skosjs-extension/test.html     |   35 -
 .../src/main/webapp/solr/admin/_info.jsp           |  121 -
 .../src/main/webapp/solr/admin/action.jsp          |   90 -
 .../src/main/webapp/solr/admin/analysis.jsp        |  505 ---
 .../src/main/webapp/solr/admin/analysis.xsl        |  179 -
 .../src/main/webapp/solr/admin/dataimport.jsp      |   56 -
 .../src/main/webapp/solr/admin/debug.jsp           |  109 -
 .../main/webapp/solr/admin/distributiondump.jsp    |  156 -
 .../src/main/webapp/solr/admin/form.jsp            |  140 -
 .../src/main/webapp/solr/admin/get-file.jsp        |   73 -
 .../src/main/webapp/solr/admin/get-properties.jsp  |   27 -
 .../src/main/webapp/solr/admin/header.jsp          |   47 -
 .../src/main/webapp/solr/admin/index.jsp           |  162 -
 .../src/main/webapp/solr/admin/meta.xsl            |   34 -
 .../src/main/webapp/solr/admin/ping.jsp            |   50 -
 .../src/main/webapp/solr/admin/ping.xsl            |   71 -
 .../src/main/webapp/solr/admin/raw-schema.jsp      |   39 -
 .../src/main/webapp/solr/admin/registry.jsp        |  109 -
 .../src/main/webapp/solr/admin/registry.xsl        |  321 --
 .../main/webapp/solr/admin/replication/header.jsp  |   92 -
 .../main/webapp/solr/admin/replication/index.jsp   |  382 --
 .../src/main/webapp/solr/admin/schema.jsp          |  677 ----
 .../src/main/webapp/solr/admin/solr-admin.css      |  214 --
 .../src/main/webapp/solr/admin/solr_small.png      |  Bin 7926 -> 0 bytes
 .../src/main/webapp/solr/admin/stats.jsp           |   94 -
 .../src/main/webapp/solr/admin/stats.xsl           |  220 --
 .../src/main/webapp/solr/admin/tabular.xsl         |  141 -
 .../src/main/webapp/solr/admin/threaddump.jsp      |  111 -
 .../src/main/webapp/solr/admin/threaddump.xsl      |  103 -
 .../src/main/webapp/solr/index.jsp                 |   64 -
 .../src/test/resources/META-INF/beans.xml          |   30 +-
 .../test/resources/META-INF/test-persistence.xml   |   30 +-
 .../src/test/resources/WEB-INF/test-web.xml        |   30 +-
 .../src/test/resources/arquillian.xml              |   30 +-
 .../src/test/resources/ehcache.xml                 |   32 +-
 .../src/test/resources/jndi.properties             |    2 -
 .../src/test/resources/logback.xml                 |   30 +-
 .../src/test/resources/test-config.properties      |    4 +-
 build/scripts/check_signatures_and_digests.sh      |   62 +
 .../client/test/config/ConfigurationIT.java        |    3 +
 .../org/apache/marmotta/client/test/demo-data.foaf |   28 +-
 client/marmotta-client-js-sample-webapp/pom.xml    |    2 +-
 client/marmotta-client-php/pom.xml                 |    2 +-
 .../commons/sesame/model/LiteralCommonsTest.java   |   15 -
 .../commons/sesame/model/ResourceUtilsTest.java    |   15 -
 .../marmotta/commons/sesame/model/demo-data.foaf   |   30 +-
 .../commons/sesame/rio/ical/TestICalParser.java    |   21 +-
 .../src/main/resources/META-INF/NOTICE             |    2 +-
 .../src/main/resources/META-INF/NOTICE             |    2 +-
 .../commons/sesame/rio/rss/TestAtomParser.java     |   21 +-
 .../commons/sesame/rio/rss/TestRSSParser.java      |   21 +-
 .../commons/sesame/rio/vcard/TestVCardParser.java  |   15 -
 .../src/main/resources/installer/LICENSE.txt       | 2784 ++++++++++++---
 .../src/main/resources/installer/NOTICE.txt        |  581 +---
 .../Start Apache Marmotta.app/Contents/Info.plist  |   29 +-
 .../Stop Apache Marmotta.app/Contents/Info.plist   |   29 +-
 .../src/main/resources/META-INF/LICENSE            |  284 ++
 .../src/main/resources/META-INF/NOTICE             |   15 +
 launchers/marmotta-webapp/NOTICE.template          |    9 -
 launchers/marmotta-webapp/NOTICE.txt               |   62 -
 launchers/marmotta-webapp/pom.xml                  |    8 +-
 .../src/main/webapp/META-INF/LICENSE               | 2811 ++++++++++++---
 .../src/main/webapp/META-INF/NOTICE                |  480 +--
 .../src/main/webapp/WEB-INF/web.xml                |   18 +
 .../src/test/resources/META-INF/beans.xml          |   30 +-
 .../test/resources/META-INF/test-persistence.xml   |   30 +-
 .../src/test/resources/WEB-INF/test-web.xml        |   30 +-
 .../src/test/resources/arquillian.xml              |   29 +-
 .../marmotta-webapp/src/test/resources/ehcache.xml |   32 +-
 .../src/test/resources/jndi.properties             |    2 -
 .../marmotta-webapp/src/test/resources/logback.xml |   30 +-
 .../src/test/resources/test-config.properties      |    4 +-
 .../kiwi/reasoner/engine/ReasoningEngine.java      |    4 +-
 .../kiwi/persistence/h2/drop_reasoner_tables.sql   |   10 +-
 .../reasoner/test/engine/ReasoningEngineTest.java  |   12 +
 .../test/parser/KWRLProgramParserTest.java         |   21 +
 .../reasoner/test/parser/KWRLRuleParserTest.java   |   19 +
 .../persistence/JustificationPersistenceTest.java  |   19 +
 .../persistence/KWRLProgramPersistenceTest.java    |   20 +
 .../test/persistence/PatternQueryTest.java         |   18 +
 .../kiwi/reasoner/test/sail/ReasoningSailTest.java |   14 +
 .../kiwi-reasoner/src/test/resources/logback.xml   |   27 -
 .../src/test/resources/logback.xml                 |    6 +-
 .../org/apache/marmotta/kiwi/test/demo-data.foaf   |   29 +-
 .../apache/marmotta/kiwi/test/srfg-ontology.rdf    |   32 +-
 .../marmotta/kiwi/persistence/KiWiPersistence.java |    2 +-
 .../org/apache/marmotta/kiwi/test/DialectTest.java |   20 +
 .../apache/marmotta/kiwi/test/PersistenceTest.java |   20 +
 .../apache/marmotta/kiwi/test/RepositoryTest.java  |   17 +
 .../src/test/resources/logback.xml                 |    6 +-
 .../persistence/h2/create_versioning_tables.sql    |    2 +
 .../kiwi/persistence/h2/drop_versioning_tables.sql |    8 +-
 .../persistence/mysql/create_versioning_tables.sql |    2 +
 .../persistence/mysql/drop_versioning_tables.sql   |    8 +-
 .../persistence/pgsql/create_versioning_tables.sql |    2 +
 .../persistence/pgsql/drop_versioning_tables.sql   |    2 +
 .../kiwi-versioning/src/test/resources/logback.xml |   27 -
 .../marmotta/kiwi/versioning/test/version-base.rdf |   31 +-
 .../kiwi/versioning/test/version-update1.rdf       |   31 +-
 .../kiwi/versioning/test/version-update2.rdf       |   31 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../kiwi/persistence/h2/drop_ldcache_tables.sql    |    4 +-
 .../src/test/resources/logback.xml                 |    6 +-
 libraries/ldcache/ldcache-backend-mapdb/pom.xml    |    2 +-
 .../ldcache-core/src/test/resources/logback.xml    |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../src/test/resources/logback.xml                 |    6 +-
 .../ldclient-core/src/test/resources/logback.xml   |    6 +-
 .../src/test/resources/logback.xml                 |   27 -
 .../src/test/resources/logback.xml                 |   27 -
 .../src/test/resources/logback.xml                 |   27 -
 .../src/test/resources/logback.xml                 |   27 -
 .../src/test/resources/logback.xml                 |   27 -
 .../marmotta/ldpath/backend/file/ParserTest.java   |   15 -
 .../marmotta/ldpath/backend/file/PathTest.java     |   15 -
 .../marmotta/ldpath/backend/file/demo-data.foaf    |   30 +-
 .../ldpath-backend-linkeddata/NOTICE.template      |    9 -
 .../src/main/doc/LICENSE.txt                       |  750 +++--
 .../src/main/doc/NOTICE.txt                        |  220 +-
 license-mappings.xml                               |   43 +-
 parent/pom.xml                                     |   13 +-
 .../core/services/content/ContentServiceImpl.java  |   35 +-
 .../services/content/FileSystemContentReader.java  |   31 +-
 .../core/services/content/HTTPContentReader.java   |   27 +-
 .../services/templating/TemplatingServiceImpl.java |    7 +-
 .../core/servlet/MarmottaOptionsFilter.java        |  170 -
 .../src/main/resources/config-defaults.properties  |    8 +-
 .../main/resources/config-descriptions.properties  |   11 +-
 .../src/main/resources/templates/404.ftl           |   12 +-
 .../src/main/resources/templates/admin.ftl         |   21 +-
 .../src/main/resources/templates/admin_old.ftl     |   88 -
 .../src/main/resources/templates/rdfhtml.ftl       |    7 +-
 .../src/main/resources/web/admin/dataview.html     |    2 +
 .../resources/web/admin/js/lib/sgvizler.pack.js    |    4 +-
 .../main/resources/web/public/js/lib/strftime.js   |    4 +-
 .../src/main/resources/web/public/style/404.css    |   44 -
 .../main/resources/web/public/style/blue/404.css   |   43 +
 .../main/resources/web/public/style/blue/code.css  |   51 +
 .../resources/web/public/style/blue/javadoc.css    |  112 +
 .../resources/web/public/style/blue/rdfhtml.css    |   41 +
 .../web/public/style/blue/sgvizler.chart.css       |   53 +
 .../main/resources/web/public/style/blue/style.css |  284 ++
 .../src/main/resources/web/public/style/code.css   |   51 -
 .../main/resources/web/public/style/javadoc.css    |  112 -
 .../main/resources/web/public/style/marmotta.css   |   18 -
 .../main/resources/web/public/style/rdfhtml.css    |   40 -
 .../resources/web/public/style/scheme/blue.css     |  126 -
 .../resources/web/public/style/scheme/dark.css     |  165 -
 .../resources/web/public/style/sgvizler.chart.css  |   53 -
 .../src/main/resources/web/public/style/style.css  |  227 --
 .../main/resources/web/public/style/white/404.css  |   44 +
 .../main/resources/web/public/style/white/code.css |   51 +
 .../resources/web/public/style/white/javadoc.css   |  112 +
 .../resources/web/public/style/white/rdfhtml.css   |   40 +
 .../web/public/style/white/sgvizler.chart.css      |   53 +
 .../resources/web/public/style/white/style.css     |  233 ++
 .../src/test/resources/META-INF/beans.xml          |   30 +-
 .../src/test/resources/ehcache-db.xml              |   32 +-
 .../src/test/resources/ehcache-lmf.xml             |   32 +-
 .../src/test/resources/logback-testing.xml         |   30 +-
 .../marmotta-core/src/test/resources/logback.xml   |   30 +-
 .../platform/core/test/sesame/demo-data.foaf       |   30 +-
 .../src/main/resources/web/cm/LICENSE.txt          |   23 +
 platform/marmotta-sparql/pom.xml                   |   70 +-
 .../platform/sparql/api/sparql/SparqlService.java  |   45 +-
 .../sparql/services/sparql/SparqlServiceImpl.java  |  126 +-
 .../services/sparql/SparqlWritersHelper.java       |   95 +
 .../sparqlio/rdf/SPARQLGraphResultWriter.java      |   40 +-
 .../sparql/webservices/SparqlWebService.java       |    3 +-
 .../sparql/webservices/SparqlWebServiceTest.java   |  183 +
 .../marmotta-sparql/src/test/resources/foaf.rdf    |   79 +
 pom.xml                                            |    2 +-
 176 files changed, 9080 insertions(+), 8749 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/persistence/KiWiPersistence.java
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/ParserTest.java
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
----------------------------------------------------------------------
diff --cc libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
index aceb25a,773c439..fdb809d
--- a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
+++ b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
@@@ -16,23 -16,9 +16,8 @@@
   * limitations under the License.
   */
  package org.apache.marmotta.ldpath.backend.file;
- /*
-  * Copyright (c) 2011 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.
-  */
  
  import static org.hamcrest.Matchers.hasItem;
 -import static org.hamcrest.Matchers.hasItems;
  
  import java.util.Collection;
  import java.util.HashMap;

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/parent/pom.xml
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt
----------------------------------------------------------------------
diff --cc platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt
index 0000000,0000000..482d55e
new file mode 100644
--- /dev/null
+++ b/platform/marmotta-ldpath/src/main/resources/web/cm/LICENSE.txt
@@@ -1,0 -1,0 +1,23 @@@
++Copyright (C) 2013 by Marijn Haverbeke <ma...@gmail.com>
++
++Permission is hereby granted, free of charge, to any person obtaining a copy
++of this software and associated documentation files (the "Software"), to deal
++in the Software without restriction, including without limitation the rights
++to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++copies of the Software, and to permit persons to whom the Software is
++furnished to do so, subject to the following conditions:
++
++The above copyright notice and this permission notice shall be included in
++all copies or substantial portions of the Software.
++
++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++THE SOFTWARE.
++
++Please note that some subdirectories of the CodeMirror distribution
++include their own LICENSE files, and are released under different
++licences.

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/61f72cb9/pom.xml
----------------------------------------------------------------------


[02/21] git commit: Improved javadoc

Posted by tk...@apache.org.
Improved javadoc

Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/101ac6b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/101ac6b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/101ac6b8

Branch: refs/heads/master
Commit: 101ac6b86b0a0fbb271f0b5360956501e04e4beb
Parents: bee275f
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Mar 27 15:46:47 2013 +0100
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Mar 27 16:34:53 2013 +0100

----------------------------------------------------------------------
 .../backend/sesame/SesameRepositoryBackend.java    |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/101ac6b8/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
index d055504..d98575a 100644
--- a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
+++ b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
@@ -32,13 +32,13 @@ import org.openrdf.repository.RepositoryException;
  * Generic implementation of a Sesame backend for LDPath. A Sesame repository is passed as argument to the
  * constructor.
  * <p/>
+ * <strong>ATTENTION:</strong> This backend is creating an independent (new) transaction for each invocation of {@link #listObjects(Value, Value)} or {@link #listSubjects(Value, Value)}.
+ * Consider using the {@link SesameConnectionBackend} for inproved performance!
+ * <p/>
  * Implementatins can either use this class directly or implement their own Sesame-based backend by subclassing
  * and calling the super constructor.
  * <p/>
- * Author: Sebastian Schaffert
- * @deprecated Use a {@link SesameConnectionBackend} with explicit transaction handling.
  */
-@Deprecated
 public class SesameRepositoryBackend extends AbstractSesameBackend {
 
     private Repository repository;


[14/21] git commit: some fixes in the ContentWebService - redirect for requests without mimetype

Posted by tk...@apache.org.
some fixes in the ContentWebService
- redirect for requests without mimetype


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/8f17c432
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/8f17c432
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/8f17c432

Branch: refs/heads/master
Commit: 8f17c4328aef0c13f4c5e0be92231fcdf032c77c
Parents: 0949848
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Apr 3 15:40:00 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Apr 3 16:03:27 2013 +0200

----------------------------------------------------------------------
 .../webservices/resource/ContentWebService.java    |   75 ++++++++++++++-
 .../core/webservices/resource/MetaWebService.java  |   10 +-
 .../webservices/resource/ResourceWebService.java   |   11 +-
 .../resource/ResourceWebServiceHelper.java         |   16 +++-
 4 files changed, 95 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/8f17c432/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ContentWebService.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ContentWebService.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ContentWebService.java
index 5c8a8bf..bbc13ce 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ContentWebService.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ContentWebService.java
@@ -20,6 +20,7 @@ package org.apache.marmotta.platform.core.webservices.resource;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.UnsupportedEncodingException;
+import java.net.URISyntaxException;
 import java.net.URLDecoder;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -102,7 +103,7 @@ public class ContentWebService {
     @Path(ResourceWebService.MIME_PATTERN + ResourceWebService.UUID_PATTERN)
     public Response getContentLocal(@PathParam("uuid") String uuid, @PathParam("mimetype") String mimetype, @HeaderParam("Range") String range) throws UnsupportedEncodingException {
         String uri = configurationService.getBaseUri() + "resource/" + uuid;
-        return getContent(uri, mimetype, uuid, range);
+        return getContent(uri, mimetype, range);
     }
 
     /**
@@ -127,8 +128,71 @@ public class ContentWebService {
     @GET
     @Path(ResourceWebService.MIME_PATTERN)
     public Response getContentRemote(@QueryParam("uri") @NotNull String uri, @PathParam("mimetype") String mimetype, @HeaderParam("Range") String range) throws UnsupportedEncodingException {
-        return getContent(URLDecoder.decode(uri, "utf-8"), mimetype, null, range);
+        return getContent(URLDecoder.decode(uri, "utf-8"), mimetype, range);
     }
+    
+    /**
+     * Creates a redirect depending of the stored mimeType for the requested uri.
+     * @param uri the resource requested
+     * @return a redirect
+     * @throws UnsupportedEncodingException
+     * 
+     * @HTTP 3xx redirect to the requested content
+     * @HTTP 404 if the resource has no contetn
+     * @HTTP 500 Internal Error
+     */
+    @GET
+    public Response getContentRemote(@QueryParam("uri") @NotNull String uri) throws UnsupportedEncodingException {
+        try {
+            final RepositoryConnection conn = sesameService.getConnection();
+            try {
+                conn.begin();
+                URI resource = conn.getValueFactory().createURI(uri);
+                conn.commit();
+                final String mimeType = contentService.getContentType(resource);
+                if (mimeType != null) {
+                    return Response
+                            .status(configurationService.getIntConfiguration(
+                                    "linkeddata.redirect.status", 303))
+                            .header("Vary", "Accept")
+                            .header("Content-Type", mimeType + "; rel=content")
+                            .location(
+                                    new java.net.URI(ResourceWebServiceHelper
+                                            .buildResourceLink(resource,
+                                                    "content", mimeType,
+                                                    configurationService)))
+                            .build();
+
+                } else {
+                    return Response.status(Status.NOT_FOUND).entity("No content for <"+resource.stringValue()+">").build();
+                }
+            } finally {
+                conn.close();
+            }
+        } catch (RepositoryException ex) {
+            return Response.serverError().entity(ex.getMessage()).build();
+        } catch (URISyntaxException ex) {
+            return Response.serverError().entity(ex.getMessage()).build();
+        }
+    }
+    
+    /**
+     * Creates a redirect depending of the stored mimeType for the requested resource.
+     * @param uuid the local resource requested
+     * @return a redirect
+     * @throws UnsupportedEncodingException
+     * 
+     * @HTTP 3xx redirect to the requested content
+     * @HTTP 404 if the resource has no content
+     * @HTTP 500 Internal Error
+     */
+    @GET
+    @Path(ResourceWebService.UUID_PATTERN)
+    public Response getContentLocal(@PathParam("uuid") String uuid) throws UnsupportedEncodingException {
+        String uri = configurationService.getBaseUri() + ConfigurationService.RESOURCE_PATH + "/" + uuid;
+        return getContentRemote(uri);
+    }
+
 
     /**
      * Sets content to a given locale resource
@@ -227,7 +291,7 @@ public class ContentWebService {
         return deleteContentRemote(uri);
     }
 
-    private Response getContent(String uri, String mimetype, String uuid, String range) throws UnsupportedEncodingException {
+    private Response getContent(String uri, String mimetype, String range) throws UnsupportedEncodingException {
         try {
             // FIXME String appendix = uuid == null ? "?uri=" + URLEncoder.encode(uri, "utf-8") :
             // "/" + uuid;
@@ -236,6 +300,9 @@ public class ContentWebService {
                 conn.begin();
                 URI resource = conn.getValueFactory().createURI(uri);
                 conn.commit();
+                if (mimetype == null) {
+                    mimetype = contentService.getContentType(resource);
+                }
                 if (contentService.hasContent(resource, mimetype)) {
 
                     InputStream is = contentService.getContentStream(resource, mimetype);
@@ -279,7 +346,7 @@ public class ContentWebService {
                     }
 
                     // append data links
-                    String s = ResourceWebServiceHelper.buildMetaLinks(resource, uuid, kiWiIOService.getProducedTypes(), configurationService);
+                    String s = ResourceWebServiceHelper.buildMetaLinks(resource, kiWiIOService.getProducedTypes(), configurationService);
                     if (s != null) {
                         response.getMetadata().add("Links", s);
                     }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/8f17c432/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/MetaWebService.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/MetaWebService.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/MetaWebService.java
index e771d14..a09a9e2 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/MetaWebService.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/MetaWebService.java
@@ -21,7 +21,6 @@ import java.io.IOException;
 import java.io.OutputStream;
 import java.io.UnsupportedEncodingException;
 import java.net.URLDecoder;
-import java.util.Date;
 import java.util.LinkedList;
 import java.util.List;
 
@@ -44,7 +43,6 @@ import javax.ws.rs.core.StreamingOutput;
 import org.apache.marmotta.commons.collections.CollectionUtils;
 import org.apache.marmotta.commons.http.ETagGenerator;
 import org.apache.marmotta.commons.sesame.repository.ResourceUtils;
-import org.apache.marmotta.commons.util.DateUtils;
 import org.apache.marmotta.platform.core.api.config.ConfigurationService;
 import org.apache.marmotta.platform.core.api.content.ContentService;
 import org.apache.marmotta.platform.core.api.io.MarmottaIOService;
@@ -111,7 +109,7 @@ public class MetaWebService {
     @GET
     @Path(ResourceWebService.MIME_PATTERN)
     public Response getMetaRemote(@QueryParam("uri") @NotNull String uri, @PathParam("mimetype") String mimetype) throws UnsupportedEncodingException {
-        return getMeta(URLDecoder.decode(uri, "utf-8"), mimetype, null);
+        return getMeta(URLDecoder.decode(uri, "utf-8"), mimetype);
     }
 
     /**
@@ -136,7 +134,7 @@ public class MetaWebService {
     @Path(ResourceWebService.MIME_PATTERN + ResourceWebService.UUID_PATTERN)
     public Response getMetaLocal(@PathParam("uuid") String uuid, @PathParam("mimetype") String mimetype) throws UnsupportedEncodingException {
         String uri = configurationService.getBaseUri() + "resource/" + uuid;
-        return getMeta(uri, mimetype, uuid);
+        return getMeta(uri, mimetype);
     }
 
     /**
@@ -239,7 +237,7 @@ public class MetaWebService {
         return deleteMetaRemote(uri);
     }
 
-    private Response getMeta(String uri, String mimetype, String uuid) throws UnsupportedEncodingException {
+    private Response getMeta(String uri, String mimetype) throws UnsupportedEncodingException {
         try {
             RepositoryConnection conn = sesameService.getConnection();
             
@@ -313,7 +311,7 @@ public class MetaWebService {
                     List<String> links = new LinkedList<String>();
 
                     // build the link to the human readable content of this resource (if it exists)
-                    String contentLink = ResourceWebServiceHelper.buildContentLink(resource, uuid, contentService.getContentType(resource), configurationService);
+                    String contentLink = ResourceWebServiceHelper.buildContentLink(resource, contentService.getContentType(resource), configurationService);
                     if(!"".equals(contentLink)) {
                         links.add(contentLink);
                     }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/8f17c432/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebService.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebService.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebService.java
index 2987d56..415fd25 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebService.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebService.java
@@ -298,7 +298,7 @@ public class ResourceWebService {
     public Response getLocal(@PathParam("uuid") String uuid, @HeaderParam("Accept") String types) throws UnsupportedEncodingException {
         String uri = configurationService.getBaseUri() + "resource/" + uuid;
         try {
-            return get(uri, types, uuid);
+            return get(uri, types);
         } catch (URISyntaxException e) {
             return Response.serverError().entity(e.getMessage()).build();
         }
@@ -332,7 +332,7 @@ public class ResourceWebService {
                     types = format;
                 }
                 //TODO: add 'If-None-Match' support, sending a '304 Not Modified' when the ETag matches
-                return get(uri, types, null);
+                return get(uri, types);
             } else
                 return Response.status(400).entity("uri may not be null").build();
         } catch (URISyntaxException e) {
@@ -340,7 +340,7 @@ public class ResourceWebService {
         }
     }
 
-    private Response get(String uri, String types, String uuid) throws URISyntaxException, UnsupportedEncodingException {
+    private Response get(String uri, String types) throws URISyntaxException, UnsupportedEncodingException {
         try {
 
             RepositoryConnection conn = sesameService.getConnection();
@@ -379,7 +379,7 @@ public class ResourceWebService {
                 log.debug("identified best type: {}",bestType);
 
                 if(bestType != null) {
-                    Response response = buildGetResponse(resource, uuid, bestType);
+                    Response response = buildGetResponse(resource, bestType);
                     response.getMetadata().add("Last-Modified", KiWiSesameUtil.lastModified(resource, conn));
                     response.getMetadata().add("ETag", "W/\"" + ETagGenerator.getWeakETag(conn, resource) + "\"");
                     return response;
@@ -596,8 +596,7 @@ public class ResourceWebService {
         return deleteResourceRemote(uri);
     }
 
-    private Response buildGetResponse(URI resource, String uuid,
-            ContentType type) {
+    private Response buildGetResponse(URI resource, ContentType type) {
         try {
 
             return Response

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/8f17c432/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebServiceHelper.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebServiceHelper.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebServiceHelper.java
index cf23571..88bbddd 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebServiceHelper.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/webservices/resource/ResourceWebServiceHelper.java
@@ -69,8 +69,15 @@ public class ResourceWebServiceHelper {
         }
     }
     
+    /**
+     * @deprecated Use {@link #buildContentLink(URI,String,ConfigurationService)} instead
+     */
     public static String buildContentLink(URI resource, String uuid, String mime, ConfigurationService configurationService) {
-        // test if there is content
+        return buildContentLink(resource, mime, configurationService);
+    }
+
+    public static String buildContentLink(URI resource, String mime, ConfigurationService configurationService) {
+        //TODO: test if there is content
         StringBuffer b = new StringBuffer();
         if (mime != null) {
             b.append("<");
@@ -85,7 +92,14 @@ public class ResourceWebServiceHelper {
         return b.toString();
     }     
     
+    /**
+     * @deprecated Use {@link #buildMetaLinks(URI,List<String>,ConfigurationService)} instead
+     */
     public static String buildMetaLinks(URI resource, String uuid, List<String> datamimes, ConfigurationService configurationService) {
+        return buildMetaLinks(resource, datamimes, configurationService);
+    }
+
+    public static String buildMetaLinks(URI resource, List<String> datamimes, ConfigurationService configurationService) {
         StringBuilder b = new StringBuilder();
         for (int i = 0; i < datamimes.size(); i++) {
             b.append("<");


[05/21] git commit: MARMOTTA-110 created super-interface of RDFBackend for parsing: NodeBaclend

Posted by tk...@apache.org.
MARMOTTA-110 created super-interface of RDFBackend 
    for parsing: NodeBaclend

Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/4dd5de63
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/4dd5de63
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/4dd5de63

Branch: refs/heads/master
Commit: 4dd5de63c2ce12397c37b59a6371f7882593cae6
Parents: b75ca1c
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Mar 27 14:33:00 2013 +0100
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Mar 27 16:34:53 2013 +0100

----------------------------------------------------------------------
 libraries/ldpath/ldpath-api/pom.xml                |    1 -
 .../marmotta/ldpath/api/LDPathConstruct.java       |    4 +-
 .../marmotta/ldpath/api/backend/NodeBackend.java   |  226 +++++++++++
 .../marmotta/ldpath/api/backend/RDFBackend.java    |  239 +-----------
 .../ldpath/api/functions/SelectorFunction.java     |    4 +-
 .../ldpath/api/functions/TestFunction.java         |    4 +-
 .../ldpath/api/selectors/NodeSelector.java         |    3 +-
 .../ldpath/api/transformers/NodeTransformer.java   |    4 +-
 .../marmotta/ldpath/backend/file/PathTest.java     |    3 +-
 .../backend/sesame/AbstractSesameBackend.java      |  306 +++------------
 .../backend/sesame/SesameConnectionBackend.java    |    7 +-
 .../backend/sesame/SesameRepositoryBackend.java    |    9 +-
 .../ldpath/backend/sesame/SesameValueBackend.java  |  257 ++++++++++++
 .../backend/sesame/ThreadingSesameBackend.java     |    4 +-
 libraries/ldpath/ldpath-core/pom.xml               |    1 -
 .../ldpath/model/backend/AbstractBackend.java      |    5 +-
 .../marmotta/ldpath/model/fields/FieldMapping.java |    3 +-
 .../marmotta/ldpath/model/programs/Program.java    |    3 +-
 .../ldpath/model/selectors/FunctionSelector.java   |    5 +-
 .../model/selectors/IntersectionSelector.java      |    5 +-
 .../ldpath/model/selectors/PathSelector.java       |    5 +-
 .../ldpath/model/selectors/PropertySelector.java   |    5 +-
 .../model/selectors/RecursivePathSelector.java     |    5 +-
 .../model/selectors/ReversePropertySelector.java   |    5 +-
 .../ldpath/model/selectors/SelfSelector.java       |    5 +-
 .../model/selectors/StringConstantSelector.java    |    5 +-
 .../ldpath/model/selectors/TestingSelector.java    |    5 +-
 .../ldpath/model/selectors/UnionSelector.java      |    5 +-
 .../ldpath/model/selectors/WildcardSelector.java   |    4 +-
 .../marmotta/ldpath/model/tests/AndTest.java       |    3 +-
 .../marmotta/ldpath/model/tests/FunctionTest.java  |    3 +-
 .../ldpath/model/tests/LiteralLanguageTest.java    |    3 +-
 .../ldpath/model/tests/LiteralTypeTest.java        |    3 +-
 .../marmotta/ldpath/model/tests/NotTest.java       |    3 +-
 .../apache/marmotta/ldpath/model/tests/OrTest.java |    3 +-
 .../ldpath/model/tests/PathEqualityTest.java       |    3 +-
 .../marmotta/ldpath/model/tests/PathTest.java      |    3 +-
 .../model/tests/functions/BinaryNumericTest.java   |    3 +-
 .../model/transformers/BigDecimalTransformer.java  |    4 +-
 .../model/transformers/BigIntegerTransformer.java  |    4 +-
 .../model/transformers/BooleanTransformer.java     |    4 +-
 .../ldpath/model/transformers/ByteTransformer.java |    4 +-
 .../model/transformers/DateTimeTransformer.java    |    4 +-
 .../ldpath/model/transformers/DateTransformer.java |    4 +-
 .../model/transformers/DoubleTransformer.java      |    4 +-
 .../model/transformers/DurationTransformer.java    |    4 +-
 .../model/transformers/FloatTransformer.java       |    4 +-
 .../model/transformers/IdentityTransformer.java    |    4 +-
 .../ldpath/model/transformers/IntTransformer.java  |    4 +-
 .../ldpath/model/transformers/LongTransformer.java |    4 +-
 .../model/transformers/ShortTransformer.java       |    4 +-
 .../model/transformers/StringTransformer.java      |    4 +-
 .../ldpath/model/transformers/TimeTransformer.java |    4 +-
 .../javacc/at/newmedialab/ldpath/parser/rdfpath.jj |   14 +-
 .../ldpath/parser/EmptyTestingBackend.java         |   36 --
 .../apache/marmotta/ldpath/parser/ParserTest.java  |   30 +-
 .../model/functions/coll/AbstractCollFunction.java |    5 +-
 .../ldpath/model/functions/math/MaxFunction.java   |    3 +-
 .../ldpath/model/functions/math/MinFunction.java   |    3 +-
 .../ldpath/model/functions/math/RoundFunction.java |    3 +-
 .../ldpath/model/functions/math/SumFunction.java   |    3 +-
 .../ldpath/template/engine/LDPathDirective.java    |    3 +-
 .../ldpath/template/engine/LDPathMethod.java       |    3 +-
 .../model/freemarker/TemplateNodeModel.java        |    6 +-
 .../transformers/TemplateBooleanTransformer.java   |    4 +-
 .../transformers/TemplateDateTransformer.java      |    4 +-
 .../transformers/TemplateDoubleTransformer.java    |    4 +-
 .../transformers/TemplateFloatTransformer.java     |    4 +-
 .../transformers/TemplateIntegerTransformer.java   |    4 +-
 .../transformers/TemplateLongTransformer.java      |    4 +-
 .../transformers/TemplateScalarTransformer.java    |    4 +-
 71 files changed, 715 insertions(+), 646 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/pom.xml b/libraries/ldpath/ldpath-api/pom.xml
index 23e7793..174121e 100644
--- a/libraries/ldpath/ldpath-api/pom.xml
+++ b/libraries/ldpath/ldpath-api/pom.xml
@@ -59,7 +59,6 @@
             <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-scr-plugin</artifactId>
-                <version>1.8.0</version>
                 <executions>
                     <execution>
                         <id>generate-scr-scrdescriptor</id>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/LDPathConstruct.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/LDPathConstruct.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/LDPathConstruct.java
index 572c7c7..dab46f5 100644
--- a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/LDPathConstruct.java
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/LDPathConstruct.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.api;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 
 /**
  * Add file description here!
@@ -31,6 +31,6 @@ public interface LDPathConstruct<Node> {
      * @return
      * @param backend
      */
-    public String getPathExpression(RDFBackend<Node> backend);
+    public String getPathExpression(NodeBackend<Node> backend);
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/NodeBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/NodeBackend.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/NodeBackend.java
new file mode 100644
index 0000000..2a96269
--- /dev/null
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/NodeBackend.java
@@ -0,0 +1,226 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.apache.marmotta.ldpath.api.backend;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.net.URI;
+import java.util.Date;
+import java.util.Locale;
+
+/**
+ * Value centered Backend for LDPath, conatins all methods required for parsing and serializing a LDPath-Program
+ */
+public interface NodeBackend<Node> {
+
+	/**
+	 * Test whether the node passed as argument is a literal
+	 * @param n the node to check
+	 * @return true if the node is a literal
+	 */
+	public boolean isLiteral(Node n);
+
+	/**
+	 * Test whether the node passed as argument is a URI
+	 * @param n the node to check
+	 * @return true if the node is a URI
+	 */
+	public boolean isURI(Node n);
+
+	/**
+	 * Test whether the node passed as argument is a blank node
+	 * @param n the node to check
+	 * @return true if the node is a blank node
+	 */
+	public boolean isBlank(Node n);
+
+	/**
+	 * Return the language of the literal node passed as argument.
+	 *
+	 * @param n the literal node for which to return the language
+	 * @return a Locale representing the language of the literal, or null if the literal node has no language
+	 * @throws IllegalArgumentException in case the node is no literal
+	 */
+	public Locale getLiteralLanguage(Node n);
+
+	/**
+	 * Return the URI of the type of the literal node passed as argument.
+	 *
+	 * @param n the literal node for which to return the typer
+	 * @return a URI representing the type of the literal content, or null if the literal is untyped
+	 * @throws IllegalArgumentException in case the node is no literal
+	 */
+	public URI getLiteralType(Node n);
+
+	/**
+	 * Create a literal node with the content passed as argument
+	 * @param content  string content to represent inside the literal
+	 * @return a literal node in using the model used by this backend
+	 */
+	public Node createLiteral(String content);
+
+	/**
+	 * Create a literal node with the content passed as argument
+	 * @param content  string content to represent inside the literal
+	 * @return a literal node in using the model used by this backend
+	 */
+	public Node createLiteral(String content, Locale language, URI type);
+
+	/**
+	 * Create a URI mode with the URI passed as argument
+	 * @param uri  URI of the resource to create
+	 * @return a URI node using the model used by this backend
+	 */
+	public Node createURI(String uri);
+
+	/**
+	 * Return the lexial representation of a node. For a literal, this will be the content, for a URI node it will be the
+	 * URI itself, and for a blank node it will be the identifier of the node.
+	 * @param node
+	 * @return
+	 */
+	public String stringValue(Node node);
+
+	/**
+	 * Return the double value of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. The method can throw
+	 * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as double, and an
+	 * IllegalArgumentException, indicating that the passed node is not a literal
+	 *
+	 * @param node the literal node for which to return the double value
+	 * @return double value of the literal node
+	 * @throws NumberFormatException in case the literal cannot be represented as double value
+	 * @throws ArithmeticException in case the literal cannot be represented as double value
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Double doubleValue(Node node);
+
+	/**
+	 * Return the long value of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. The method can throw
+	 * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as long, and an
+	 * IllegalArgumentException, indicating that the passed node is not a literal
+	 *
+	 * @param node the literal node for which to return the long value
+	 * @return long value of the literal node
+	 * @throws NumberFormatException in case the literal cannot be represented as long value
+	 * @throws ArithmeticException in case the literal cannot be represented as long value
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Long longValue(Node node);
+
+	/**
+	 * Return the boolean value of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. 
+	 * TODO: Define:<ul>
+	 * <li> Do we also support '0' '1', 'yes', 'no'; whats about case insensitive 
+	 *      such as TRUE, False
+	 * <li> should we throw an RuntimeException of not an boolean value or return
+	 *      false as {@link Boolean#parseBoolean(String)}
+	 * </ul>
+	 * @param node the literal node for which to return the boolean value
+	 * @return long value of the literal node
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Boolean booleanValue(Node node);
+
+	/**
+	 * TODO
+	 * @param node the literal node for which to return the dateTime value
+	 * @return long value of the literal node
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Date dateTimeValue(Node node);
+
+	/**
+	 * TODO
+	 * @param node the literal node for which to return the date value
+	 * @return long value of the literal node
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Date dateValue(Node node);
+
+	/**
+	 * TODO
+	 * @param node the literal node for which to return the time value
+	 * @return long value of the literal node
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Date timeValue(Node node);
+
+	/**
+	 * Return the float value of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. The method can throw
+	 * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as float, and an
+	 * IllegalArgumentException, indicating that the passed node is not a literal
+	 * 
+	 * @param node the literal node for which to return the float value
+	 * @return long value of the literal node
+	 * @throws NumberFormatException in case the literal cannot be represented as float value
+	 * @throws ArithmeticException in case the literal cannot be represented as float value
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Float floatValue(Node node);
+
+	/**
+	 * Return the 32bit integer value of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. The method can throw
+	 * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as integer, and an
+	 * IllegalArgumentException, indicating that the passed node is not a literal.
+	 * <p>
+	 * Note that this is restricted to 32bit singed integer values as defined by
+	 * xsd:int and {@link Integer}. For bigger nuber one might want to use
+	 * xsd:integer represented by {@link BigInteger}.
+	 * 
+	 * @param node the literal node for which to return the Integer (xsd:int) value
+	 * @return long value of the literal node
+	 * @throws NumberFormatException in case the literal cannot be represented as 32 bit integer value
+	 * @throws ArithmeticException in case the literal cannot be represented as 32 bit integer value
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public Integer intValue(Node node);
+
+	/**
+	 * Return the arbitrary length integer value of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. The method can throw
+	 * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as integer, and an
+	 * IllegalArgumentException, indicating that the passed node is not a literal.
+	 *
+	 * @param node the literal node for which to return the {@link BigInteger xsd:integer} value
+	 * @return long value of the literal node
+	 * @throws NumberFormatException in case the literal cannot be represented as integer value
+	 * @throws ArithmeticException in case the literal cannot be represented as long value
+	 * @throws IllegalArgumentException in case the node passed as argument is integer a literal
+	 */
+	public BigInteger integerValue(Node node);
+
+	/**
+	 * Return the decimal number of a literal node. Depending on the backend implementing this method,
+	 * the value can be retrieved directly or must be parsed from the string representation. The method can throw
+	 * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as decimal, and an
+	 * IllegalArgumentException, indicating that the passed node is not a literal.
+	 *
+	 * @param node the literal node for which to return the xsd:decimal value
+	 * @return long value of the literal node
+	 * @throws NumberFormatException in case the literal cannot be represented as decimal value
+	 * @throws ArithmeticException in case the literal cannot be represented as decimal value
+	 * @throws IllegalArgumentException in case the node passed as argument is not a literal
+	 */
+	public BigDecimal decimalValue(Node node);
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/RDFBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/RDFBackend.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/RDFBackend.java
index 0074af8..dc73789 100644
--- a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/RDFBackend.java
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/backend/RDFBackend.java
@@ -17,241 +17,32 @@
  */
 package org.apache.marmotta.ldpath.api.backend;
 
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.net.URI;
 import java.util.Collection;
-import java.util.Date;
-import java.util.Locale;
 import java.util.concurrent.ThreadPoolExecutor;
 
 /**
  * A generic API for RDF models and triple stores; provides the testing and navigation functions needed for LDPath.
- * Implementations exist for Sesame, LMF, Jena and Clerezza. The API is somewhat typesafe by making use of a generic
+ * Implementations exist for Sesame, Jena and Clerezza. The API is somewhat typesafe by making use of a generic
  * for nodes.
- * <p/>
- * Author: Sebastian Schaffert
+ * 
+ * @param <Node> most generic type of a Node (e.g. Value in Sesame).
  */
-public interface RDFBackend<Node> {
-
-
-    /**
-     * Return true if the underlying backend supports the parallel execution of queries.
-     *
-     * @return
-     */
-    public boolean supportsThreading();
-
-
-    /**
-     * In case the backend supports threading, this method should return the ExecutorService representing the
-     * thread pool. LDPath lets the backend manage the thread pool to avoid excessive threading.
-     * @return
-     */
+public interface RDFBackend<Node> extends NodeBackend<Node> {
+
+	/**
+	 * @deprecated subject to be removed in the next release
+	 */
+	@Deprecated
+	public boolean supportsThreading();
+	
+	/**
+	 * @deprecated subject to be removed in the next release
+	 */
+	@Deprecated
     public ThreadPoolExecutor getThreadPool();
 
-    /**
-     * Test whether the node passed as argument is a literal
-     * @param n the node to check
-     * @return true if the node is a literal
-     */
-    public boolean isLiteral(Node n);
-
-    /**
-     * Test whether the node passed as argument is a URI
-     * @param n the node to check
-     * @return true if the node is a URI
-     */
-    public boolean isURI(Node n);
 
     /**
-     * Test whether the node passed as argument is a blank node
-     * @param n the node to check
-     * @return true if the node is a blank node
-     */
-    public boolean isBlank(Node n);
-
-    /**
-     * Return the language of the literal node passed as argument.
-     *
-     * @param n the literal node for which to return the language
-     * @return a Locale representing the language of the literal, or null if the literal node has no language
-     * @throws IllegalArgumentException in case the node is no literal
-     */
-    public Locale getLiteralLanguage(Node n);
-
-
-    /**
-     * Return the URI of the type of the literal node passed as argument.
-     *
-     * @param n the literal node for which to return the typer
-     * @return a URI representing the type of the literal content, or null if the literal is untyped
-     * @throws IllegalArgumentException in case the node is no literal
-     */
-    public URI getLiteralType(Node n);
-
-
-
-    /**
-     * Create a literal node with the content passed as argument
-     * @param content  string content to represent inside the literal
-     * @return a literal node in using the model used by this backend
-     */
-    public Node createLiteral(String content);
-
-    /**
-     * Create a literal node with the content passed as argument
-     * @param content  string content to represent inside the literal
-     * @return a literal node in using the model used by this backend
-     */
-    public Node createLiteral(String content, Locale language, URI type);
-
-    /**
-     * Create a URI mode with the URI passed as argument
-     * @param uri  URI of the resource to create
-     * @return a URI node using the model used by this backend
-     */
-    public Node createURI(String uri);
-
-
-    /**
-     * Return the lexial representation of a node. For a literal, this will be the content, for a URI node it will be the
-     * URI itself, and for a blank node it will be the identifier of the node.
-     * @param node
-     * @return
-     */
-    public String stringValue(Node node);
-
-    /**
-     * Return the double value of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. The method can throw
-     * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as double, and an
-     * IllegalArgumentException, indicating that the passed node is not a literal
-     *
-     * @param node the literal node for which to return the double value
-     * @return double value of the literal node
-     * @throws NumberFormatException in case the literal cannot be represented as double value
-     * @throws ArithmeticException in case the literal cannot be represented as double value
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Double doubleValue(Node node);
-
-
-    /**
-     * Return the long value of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. The method can throw
-     * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as long, and an
-     * IllegalArgumentException, indicating that the passed node is not a literal
-     *
-     * @param node the literal node for which to return the long value
-     * @return long value of the literal node
-     * @throws NumberFormatException in case the literal cannot be represented as long value
-     * @throws ArithmeticException in case the literal cannot be represented as long value
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Long longValue(Node node);
-
-    
-    /**
-     * Return the boolean value of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. 
-     * TODO: Define:<ul>
-     * <li> Do we also support '0' '1', 'yes', 'no'; whats about case insensitive 
-     *      such as TRUE, False
-     * <li> should we throw an RuntimeException of not an boolean value or return
-     *      false as {@link Boolean#parseBoolean(String)}
-     * </ul>
-     * @param node the literal node for which to return the boolean value
-     * @return long value of the literal node
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Boolean booleanValue(Node node);
-
-    /**
-     * TODO
-     * @param node the literal node for which to return the dateTime value
-     * @return long value of the literal node
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Date dateTimeValue(Node node);
-    
-    /**
-     * TODO
-     * @param node the literal node for which to return the date value
-     * @return long value of the literal node
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Date dateValue(Node node);
-    
-    /**
-     * TODO
-     * @param node the literal node for which to return the time value
-     * @return long value of the literal node
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Date timeValue(Node node);
-    
-    /**
-     * Return the float value of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. The method can throw
-     * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as float, and an
-     * IllegalArgumentException, indicating that the passed node is not a literal
-     * 
-     * @param node the literal node for which to return the float value
-     * @return long value of the literal node
-     * @throws NumberFormatException in case the literal cannot be represented as float value
-     * @throws ArithmeticException in case the literal cannot be represented as float value
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Float floatValue(Node node);
-    
-    /**
-     * Return the 32bit integer value of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. The method can throw
-     * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as integer, and an
-     * IllegalArgumentException, indicating that the passed node is not a literal.
-     * <p>
-     * Note that this is restricted to 32bit singed integer values as defined by
-     * xsd:int and {@link Integer}. For bigger nuber one might want to use
-     * xsd:integer represented by {@link BigInteger}.
-     * 
-     * @param node the literal node for which to return the Integer (xsd:int) value
-     * @return long value of the literal node
-     * @throws NumberFormatException in case the literal cannot be represented as 32 bit integer value
-     * @throws ArithmeticException in case the literal cannot be represented as 32 bit integer value
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public Integer intValue(Node node);
-    
-    /**
-     * Return the arbitrary length integer value of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. The method can throw
-     * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as integer, and an
-     * IllegalArgumentException, indicating that the passed node is not a literal.
-     *
-     * @param node the literal node for which to return the {@link BigInteger xsd:integer} value
-     * @return long value of the literal node
-     * @throws NumberFormatException in case the literal cannot be represented as integer value
-     * @throws ArithmeticException in case the literal cannot be represented as long value
-     * @throws IllegalArgumentException in case the node passed as argument is integer a literal
-     */
-    public BigInteger integerValue(Node node);
-    
-    /**
-     * Return the decimal number of a literal node. Depending on the backend implementing this method,
-     * the value can be retrieved directly or must be parsed from the string representation. The method can throw
-     * a NumberFormatException or ArithmeticException indicating that the value cannot be represented as decimal, and an
-     * IllegalArgumentException, indicating that the passed node is not a literal.
-     *
-     * @param node the literal node for which to return the xsd:decimal value
-     * @return long value of the literal node
-     * @throws NumberFormatException in case the literal cannot be represented as decimal value
-     * @throws ArithmeticException in case the literal cannot be represented as decimal value
-     * @throws IllegalArgumentException in case the node passed as argument is not a literal
-     */
-    public BigDecimal decimalValue(Node node);
-    
-    /**
      * List the objects of triples in the triple store underlying this backend that have the subject and
      * property given as argument.
      *

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/SelectorFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/SelectorFunction.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/SelectorFunction.java
index f8d7eff..8b5bba4 100644
--- a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/SelectorFunction.java
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/SelectorFunction.java
@@ -20,7 +20,7 @@ package org.apache.marmotta.ldpath.api.functions;
 
 import java.util.Collection;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 
 /**
  * Intermediate Interface for {@link NodeFunction}s used in the
@@ -32,7 +32,7 @@ import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 public abstract class SelectorFunction<Node> implements NodeFunction<Collection<Node>, Node> {
 
     @Override
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         return getLocalName();
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/TestFunction.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/TestFunction.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/TestFunction.java
index b723e1a..eb3889f 100644
--- a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/TestFunction.java
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/functions/TestFunction.java
@@ -17,12 +17,12 @@
  */
 package org.apache.marmotta.ldpath.api.functions;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 
 public abstract class TestFunction<Node> implements NodeFunction<Boolean, Node> {
 
     @Override
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         return getLocalName();
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/selectors/NodeSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/selectors/NodeSelector.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/selectors/NodeSelector.java
index d7d1ff8..994b484 100644
--- a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/selectors/NodeSelector.java
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/selectors/NodeSelector.java
@@ -23,6 +23,7 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.marmotta.ldpath.api.LDPathConstruct;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 
 /**
@@ -55,5 +56,5 @@ public interface NodeSelector<Node> extends LDPathConstruct<Node> {
      *
      * @throws UnsupportedOperationException in case returning a name is not reasonable
      */
-    public String getName(RDFBackend<Node> backend);
+    public String getName(NodeBackend<Node> backend);
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/transformers/NodeTransformer.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/transformers/NodeTransformer.java b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/transformers/NodeTransformer.java
index e1fa236..44b07cc 100644
--- a/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/transformers/NodeTransformer.java
+++ b/libraries/ldpath/ldpath-api/src/main/java/org/apache/marmotta/ldpath/api/transformers/NodeTransformer.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.api.transformers;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 
 import java.util.Map;
 
@@ -41,6 +41,6 @@ public interface NodeTransformer<T,Node> {
      * @param configuration the field configuration used when defining the LDPath rule
      * @return
      */
-    public T transform(RDFBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException;
+    public T transform(NodeBackend<Node> backend, Node node, Map<String, String> configuration) throws IllegalArgumentException;
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
index 6ccf825..9749b78 100644
--- a/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
+++ b/libraries/ldpath/ldpath-backend-file/src/test/java/org/apache/marmotta/ldpath/backend/file/PathTest.java
@@ -43,6 +43,7 @@ import java.util.Map;
 import org.apache.marmotta.ldpath.LDPath;
 import org.apache.marmotta.ldpath.backend.file.FileBackend;
 import org.apache.marmotta.ldpath.backend.sesame.SesameRepositoryBackend;
+import org.hamcrest.CoreMatchers;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -73,7 +74,7 @@ public class PathTest {
         Map<Value, List<Value>> paths = new HashMap<Value, List<Value>>();
         Collection<Value> values = ldPath.pathQuery(backend.createURI("http://localhost:8080/LMF/resource/hans_meier"), "foaf:interest", null, paths);
         Assert.assertEquals(4,values.size());
-        Assert.assertThat(values,hasItems(
+        Assert.assertThat(values,CoreMatchers.<Value>hasItems(
                     backend.createURI("http://rdf.freebase.com/ns/en.software_engineering"),
                     backend.createURI("http://rdf.freebase.com/ns/en.linux"),
                     backend.createURI("http://dbpedia.org/resource/Java"),

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/AbstractSesameBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/AbstractSesameBackend.java b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/AbstractSesameBackend.java
index 1663a3e..93daedf 100644
--- a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/AbstractSesameBackend.java
+++ b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/AbstractSesameBackend.java
@@ -17,22 +17,15 @@
  */
 package org.apache.marmotta.ldpath.backend.sesame;
 
-import java.math.BigDecimal;
-import java.math.BigInteger;
 import java.net.URI;
-import java.net.URISyntaxException;
 import java.util.Collection;
-import java.util.Date;
-import java.util.GregorianCalendar;
 import java.util.HashSet;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ThreadPoolExecutor;
 
-import javax.xml.datatype.XMLGregorianCalendar;
 
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
-import org.openrdf.model.BNode;
 import org.openrdf.model.Literal;
 import org.openrdf.model.Resource;
 import org.openrdf.model.Statement;
@@ -45,281 +38,84 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 
-public abstract class AbstractSesameBackend implements RDFBackend<Value> {
+public abstract class AbstractSesameBackend extends SesameValueBackend implements RDFBackend<Value> {
 
 	private static final Logger log = LoggerFactory.getLogger(AbstractSesameBackend.class);
 
-	/**
-	 * Return true if the underlying backend supports the parallel execution of queries.
-	 *
-	 * @return
-	 */
-	@Override
-	public boolean supportsThreading() {
-	    return false;
-	}
-
-	/**
-	 * In case the backend supports threading, this method should return the ExecutorService representing the
-	 * thread pool. LDPath lets the backend manage the thread pool to avoid excessive threading.
-	 *
-	 * @return
-	 */
-	@Override
-	public ThreadPoolExecutor getThreadPool() {
-	    return null;
-	}
-
-	/**
-	 * Test whether the node passed as argument is a literal
-	 *
-	 * @param n the node to check
-	 * @return true if the node is a literal
-	 */
-	@Override
-	public boolean isLiteral(Value n) {
-	    return n instanceof Literal;
-	}
-
-	/**
-	 * Test whether the node passed as argument is a URI
-	 *
-	 * @param n the node to check
-	 * @return true if the node is a URI
-	 */
-	@Override
-	public boolean isURI(Value n) {
-	    return n instanceof org.openrdf.model.URI;
-	}
-
-	/**
-	 * Test whether the node passed as argument is a blank node
-	 *
-	 * @param n the node to check
-	 * @return true if the node is a blank node
-	 */
-	@Override
-	public boolean isBlank(Value n) {
-	    return n instanceof BNode;
-	}
-
-	/**
-	 * Return the language of the literal node passed as argument.
-	 *
-	 * @param n the literal node for which to return the language
-	 * @return a Locale representing the language of the literal, or null if the literal node has no language
-	 * @throws IllegalArgumentException in case the node is no literal
-	 */
-	@Override
-	public Locale getLiteralLanguage(Value n) {
-	    try {
-	        if(((Literal)n).getLanguage() != null) {
-	            return new Locale( ((Literal)n).getLanguage() );
-	        } else {
-	            return null;
-	        }
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+n.stringValue()+" is not a literal" +
-	                "but of type "+debugType(n));
-	    }
-	}
-
-	/**
-	 * Return the URI of the type of the literal node passed as argument.
-	 *
-	 * @param n the literal node for which to return the typer
-	 * @return a URI representing the type of the literal content, or null if the literal is untyped
-	 * @throws IllegalArgumentException in case the node is no literal
-	 */
-	@Override
-	public URI getLiteralType(Value n) {
-	    try {
-	        if(((Literal)n).getDatatype() != null) {
-	            try {
-	                return new URI(((Literal)n).getDatatype().stringValue());
-	            } catch (URISyntaxException e) {
-	                log.error("literal datatype was not a valid URI: {}",((Literal) n).getDatatype());
-	                return null;
-	            }
-	        } else {
-	            return null;
-	        }
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+n.stringValue()+" is not a literal" +
-	                "but of type "+debugType(n));
-	    }
+	protected org.openrdf.model.URI createURIInternal(final ValueFactory valueFactory, String uri) {
+		return valueFactory.createURI(uri);
 	}
 
-	/**
-	 * Return the string value of a node. For a literal, this will be the content, for a URI node it will be the
-	 * URI itself, and for a blank node it will be the identifier of the node.
-	 *
-	 * @param value
-	 * @return
-	 */
-	@Override
-	public String stringValue(Value value) {
-	    return value.stringValue();
+	protected Literal createLiteralInternal(final ValueFactory valueFactory, String content) {
+		log.debug("creating literal with content \"{}\"",content);
+		return valueFactory.createLiteral(content);
 	}
 
-	@Override
-	public BigDecimal decimalValue(Value node) {
-	    try {
-	        return ((Literal)node).decimalValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
+	protected Literal createLiteralInternal(final ValueFactory valueFactory, String content,
+			Locale language, URI type) {
+		log.debug("creating literal with content \"{}\", language {}, datatype {}",new Object[]{content,language,type});
+		if(language == null && type == null) {
+			return valueFactory.createLiteral(content);
+		} else if(type == null) {
+			return valueFactory.createLiteral(content,language.getLanguage());
+		} else  {
+			return valueFactory.createLiteral(content, valueFactory.createURI(type.toString()));
+		}
 	}
 
-	@Override
-	public BigInteger integerValue(Value node) {
-	    try {
-	        return ((Literal)node).integerValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
+	protected Collection<Value> listObjectsInternal(RepositoryConnection connection, Resource subject, org.openrdf.model.URI property)
+			throws RepositoryException {
+		Set<Value> result = new HashSet<Value>();
+		RepositoryResult<Statement> qResult = connection.getStatements(subject, property, null, true);
+		try {
+			while(qResult.hasNext()) {
+				result.add(qResult.next().getObject());
+			}
+		} finally {
+			qResult.close();
+		}
+		return  result;
 	}
 
-	@Override
-	public Boolean booleanValue(Value node) {
-	    try {
-	        return ((Literal)node).booleanValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
+	protected Collection<Value> listSubjectsInternal(final RepositoryConnection connection, org.openrdf.model.URI property, Value object)
+			throws RepositoryException {
+		Set<Value> result = new HashSet<Value>();
+		RepositoryResult<Statement> qResult = connection.getStatements(null, property, object, true);
+		try {
+			while(qResult.hasNext()) {
+				result.add(qResult.next().getSubject());
+			}
+		} finally {
+			qResult.close();
+		}
+		return  result;
 	}
 
 	@Override
-	public Date dateTimeValue(Value node) {
-	    try {
-	        XMLGregorianCalendar cal = ((Literal)node).calendarValue();
-	        //TODO: check if we need to deal with timezone and Local here
-	        return cal.toGregorianCalendar().getTime();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
-	}
+	public abstract Literal createLiteral(String content);
 
 	@Override
-	public Date dateValue(Value node) {
-	    try {
-	        XMLGregorianCalendar cal = ((Literal)node).calendarValue();
-	        return new GregorianCalendar(cal.getYear(), cal.getMonth(), cal.getDay()).getTime();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
-	}
+	public abstract Literal createLiteral(String content, Locale language, URI type);
 
 	@Override
-	public Date timeValue(Value node) {
-	    //TODO: Unless someone knwos how to create a Date that only has the time
-	    //      from a XMLGregorianCalendar
-	    return dateTimeValue(node);
-	}
+	public abstract org.openrdf.model.URI createURI(String uri);
 
 	@Override
-	public Long longValue(Value node) {
-	    try {
-	        return ((Literal)node).longValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
-	}
+	public abstract Collection<Value> listObjects(Value subject, Value property);
 
 	@Override
-	public Double doubleValue(Value node) {
-	    try {
-	        return ((Literal)node).doubleValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
-	}
+	public abstract Collection<Value> listSubjects(Value property, Value object);
 
 	@Override
-	public Float floatValue(Value node) {
-	    try {
-	        return ((Literal)node).floatValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
+	@Deprecated
+	public boolean supportsThreading() {
+		return false;
 	}
 
 	@Override
-	public Integer intValue(Value node) {
-	    try {
-	        return ((Literal)node).intValue();
-	    } catch (ClassCastException e) {
-	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
-	                "but of type "+debugType(node));
-	    }
-	}
-
-	protected Collection<Value> listObjectsInternal(RepositoryConnection connection, Resource subject, org.openrdf.model.URI property)
-			throws RepositoryException {
-				Set<Value> result = new HashSet<Value>();
-				RepositoryResult<Statement> qResult = connection.getStatements(subject, property, null, true);
-				try {
-					while(qResult.hasNext()) {
-						result.add(qResult.next().getObject());
-					}
-				} finally {
-					qResult.close();
-				}
-				return  result;
-			}
-
-	protected Collection<Value> listSubjectsInternal(final RepositoryConnection connection, org.openrdf.model.URI property, Value object)
-			throws RepositoryException {
-				Set<Value> result = new HashSet<Value>();
-				RepositoryResult<Statement> qResult = connection.getStatements(null, property, object, true);
-				try {
-				    while(qResult.hasNext()) {
-				        result.add(qResult.next().getSubject());
-				    }
-				} finally {
-					qResult.close();
-				}
-				return  result;
-			}
-
-	protected Value createURIInternal(final ValueFactory valueFactory, String uri) {
-		return valueFactory.createURI(uri);
-	}
-
-	protected Value createLiteralInternal(final ValueFactory valueFactory, String content) {
-		log.debug("creating literal with content \"{}\"",content);
-		return valueFactory.createLiteral(content);
-	}
-
-	protected Value createLiteralInternal(final ValueFactory valueFactory, String content, Locale language, URI type) {
-		log.debug("creating literal with content \"{}\", language {}, datatype {}",new Object[]{content,language,type});
-		if(language == null && type == null) {
-	        return valueFactory.createLiteral(content);
-	    } else if(type == null) {
-	        return valueFactory.createLiteral(content,language.getLanguage());
-	    } else  {
-	        return valueFactory.createLiteral(content, valueFactory.createURI(type.toString()));
-	    }
-	}
-
-	/**
-	 * Prints the type (URI,bNode,literal) by inspecting the parsed {@link Value}
-	 * to improve error messages and other loggings. In case of literals 
-	 * also the {@link #getLiteralType(Value) literal type} is printed
-	 * @param value the value or <code>null</code> 
-	 * @return the type as string.
-	 */
-	protected String debugType(Value value) {
-	    return value == null ? "null":isURI(value)?"URI":isBlank(value)?"bNode":
-	            "literal ("+getLiteralType(value)+")";
+	@Deprecated
+	public ThreadPoolExecutor getThreadPool() {
+		return null;
 	}
 
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameConnectionBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameConnectionBackend.java b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameConnectionBackend.java
index 12ff162..b6a4f51 100644
--- a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameConnectionBackend.java
+++ b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameConnectionBackend.java
@@ -21,6 +21,7 @@ import java.net.URI;
 import java.util.Collection;
 import java.util.Locale;
 
+import org.openrdf.model.Literal;
 import org.openrdf.model.Resource;
 import org.openrdf.model.Value;
 import org.openrdf.model.ValueFactory;
@@ -38,17 +39,17 @@ public class SesameConnectionBackend extends AbstractSesameBackend {
 	}
 
 	@Override
-	public Value createLiteral(String content) {
+	public Literal createLiteral(String content) {
 		return createLiteralInternal(valueFactory, content);
 	}
 
 	@Override
-	public Value createLiteral(String content, Locale language, URI type) {
+	public Literal createLiteral(String content, Locale language, URI type) {
 		return createLiteralInternal(valueFactory, content, language, type);
 	}
 
 	@Override
-	public Value createURI(String uri) {
+	public org.openrdf.model.URI createURI(String uri) {
 		return createURIInternal(valueFactory, uri);
 	}
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
index e009b35..d055504 100644
--- a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
+++ b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameRepositoryBackend.java
@@ -21,6 +21,7 @@ import java.net.URI;
 import java.util.Collection;
 import java.util.Locale;
 
+import org.openrdf.model.Literal;
 import org.openrdf.model.Resource;
 import org.openrdf.model.Value;
 import org.openrdf.repository.Repository;
@@ -35,7 +36,9 @@ import org.openrdf.repository.RepositoryException;
  * and calling the super constructor.
  * <p/>
  * Author: Sebastian Schaffert
+ * @deprecated Use a {@link SesameConnectionBackend} with explicit transaction handling.
  */
+@Deprecated
 public class SesameRepositoryBackend extends AbstractSesameBackend {
 
     private Repository repository;
@@ -71,7 +74,7 @@ public class SesameRepositoryBackend extends AbstractSesameBackend {
      * @return a literal node in using the model used by this backend
      */
     @Override
-    public Value createLiteral(String content) {
+    public Literal createLiteral(String content) {
     	return createLiteralInternal(repository.getValueFactory(), content);
     }
 
@@ -83,7 +86,7 @@ public class SesameRepositoryBackend extends AbstractSesameBackend {
      * @return a literal node in using the model used by this backend
      */
     @Override
-    public Value createLiteral(String content, Locale language, URI type) {
+    public Literal createLiteral(String content, Locale language, URI type) {
     	return createLiteralInternal(repository.getValueFactory(), content, language, type);
     }
 
@@ -95,7 +98,7 @@ public class SesameRepositoryBackend extends AbstractSesameBackend {
      * @return a URI node using the model used by this backend
      */
     @Override
-    public Value createURI(String uri) {
+    public org.openrdf.model.URI createURI(String uri) {
         return createURIInternal(repository.getValueFactory(), uri);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameValueBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameValueBackend.java b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameValueBackend.java
new file mode 100644
index 0000000..4afda47
--- /dev/null
+++ b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/SesameValueBackend.java
@@ -0,0 +1,257 @@
+package org.apache.marmotta.ldpath.backend.sesame;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.Locale;
+
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
+import org.openrdf.model.BNode;
+import org.openrdf.model.Literal;
+import org.openrdf.model.Value;
+import org.openrdf.model.impl.LiteralImpl;
+import org.openrdf.model.impl.URIImpl;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class SesameValueBackend implements NodeBackend<Value>{
+
+	private static final Logger log = LoggerFactory.getLogger(SesameValueBackend.class);
+
+	public SesameValueBackend() {
+		super();
+	}
+
+	/**
+	 * Test whether the node passed as argument is a literal
+	 *
+	 * @param n the node to check
+	 * @return true if the node is a literal
+	 */
+	@Override
+	public boolean isLiteral(Value n) {
+	    return n instanceof Literal;
+	}
+
+	/**
+	 * Test whether the node passed as argument is a URI
+	 *
+	 * @param n the node to check
+	 * @return true if the node is a URI
+	 */
+	@Override
+	public boolean isURI(Value n) {
+	    return n instanceof org.openrdf.model.URI;
+	}
+
+	/**
+	 * Test whether the node passed as argument is a blank node
+	 *
+	 * @param n the node to check
+	 * @return true if the node is a blank node
+	 */
+	@Override
+	public boolean isBlank(Value n) {
+	    return n instanceof BNode;
+	}
+
+	/**
+	 * Return the language of the literal node passed as argument.
+	 *
+	 * @param n the literal node for which to return the language
+	 * @return a Locale representing the language of the literal, or null if the literal node has no language
+	 * @throws IllegalArgumentException in case the node is no literal
+	 */
+	@Override
+	public Locale getLiteralLanguage(Value n) {
+	    try {
+	        if(((Literal)n).getLanguage() != null) {
+	            return new Locale( ((Literal)n).getLanguage() );
+	        } else {
+	            return null;
+	        }
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+n.stringValue()+" is not a literal" +
+	                "but of type "+debugType(n));
+	    }
+	}
+
+	/**
+	 * Return the URI of the type of the literal node passed as argument.
+	 *
+	 * @param n the literal node for which to return the typer
+	 * @return a URI representing the type of the literal content, or null if the literal is untyped
+	 * @throws IllegalArgumentException in case the node is no literal
+	 */
+	@Override
+	public URI getLiteralType(Value n) {
+	    try {
+	        if(((Literal)n).getDatatype() != null) {
+	            try {
+	                return new URI(((Literal)n).getDatatype().stringValue());
+	            } catch (URISyntaxException e) {
+	                log.error("literal datatype was not a valid URI: {}",((Literal) n).getDatatype());
+	                return null;
+	            }
+	        } else {
+	            return null;
+	        }
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+n.stringValue()+" is not a literal" +
+	                "but of type "+debugType(n));
+	    }
+	}
+
+	/**
+	 * Return the string value of a node. For a literal, this will be the content, for a URI node it will be the
+	 * URI itself, and for a blank node it will be the identifier of the node.
+	 *
+	 * @param value
+	 * @return
+	 */
+	@Override
+	public String stringValue(Value value) {
+	    return value.stringValue();
+	}
+
+	@Override
+	public BigDecimal decimalValue(Value node) {
+	    try {
+	        return ((Literal)node).decimalValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public BigInteger integerValue(Value node) {
+	    try {
+	        return ((Literal)node).integerValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Boolean booleanValue(Value node) {
+	    try {
+	        return ((Literal)node).booleanValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Date dateTimeValue(Value node) {
+	    try {
+	        XMLGregorianCalendar cal = ((Literal)node).calendarValue();
+	        //TODO: check if we need to deal with timezone and Local here
+	        return cal.toGregorianCalendar().getTime();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Date dateValue(Value node) {
+	    try {
+	        XMLGregorianCalendar cal = ((Literal)node).calendarValue();
+	        return new GregorianCalendar(cal.getYear(), cal.getMonth(), cal.getDay()).getTime();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Date timeValue(Value node) {
+	    //TODO: Unless someone knows how to create a Date that only has the time
+	    //      from a XMLGregorianCalendar
+	    return dateTimeValue(node);
+	}
+
+	@Override
+	public Long longValue(Value node) {
+	    try {
+	        return ((Literal)node).longValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Double doubleValue(Value node) {
+	    try {
+	        return ((Literal)node).doubleValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Float floatValue(Value node) {
+	    try {
+	        return ((Literal)node).floatValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+	@Override
+	public Integer intValue(Value node) {
+	    try {
+	        return ((Literal)node).intValue();
+	    } catch (ClassCastException e) {
+	        throw new IllegalArgumentException("Value "+node.stringValue()+" is not a literal" +
+	                "but of type "+debugType(node));
+	    }
+	}
+
+
+	/**
+	 * Prints the type (URI,bNode,literal) by inspecting the parsed {@link Value}
+	 * to improve error messages and other loggings. In case of literals 
+	 * also the {@link #getLiteralType(Value) literal type} is printed
+	 * @param value the value or <code>null</code> 
+	 * @return the type as string.
+	 */
+	protected String debugType(Value value) {
+	    return value == null ? "null":isURI(value)?"URI":isBlank(value)?"bNode":
+	            "literal ("+getLiteralType(value)+")";
+	}
+
+	@Override
+	public Literal createLiteral(String content) {
+		return new LiteralImpl(content);
+	}
+
+	@Override
+	public Literal createLiteral(String content, Locale language, URI type) {
+		log.debug("creating literal with content \"{}\", language {}, datatype {}",new Object[]{content,language,type});
+		if(language == null && type == null) {
+			return createLiteral(content);
+		} else if(type == null) {
+			return new LiteralImpl(content,language.getLanguage());
+		} else  {
+			return new LiteralImpl(content, createURI(type.toString()));
+		}
+	}
+
+	@Override
+	public org.openrdf.model.URI createURI(String uri) {
+		return new URIImpl(uri);
+	}
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/ThreadingSesameBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/ThreadingSesameBackend.java b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/ThreadingSesameBackend.java
index 6d9de3f..c596d1d 100644
--- a/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/ThreadingSesameBackend.java
+++ b/libraries/ldpath/ldpath-backend-sesame/src/main/java/org/apache/marmotta/ldpath/backend/sesame/ThreadingSesameBackend.java
@@ -27,7 +27,9 @@ import java.util.concurrent.ThreadPoolExecutor;
  * A threading version of the sesame backend.
  * <p/>
  * Author: Sebastian Schaffert
+ * @deprecated threading must be handled explicitly.
  */
+@Deprecated
 public class ThreadingSesameBackend extends SesameRepositoryBackend {
 
     private ThreadPoolExecutor workers;
@@ -54,7 +56,6 @@ public class ThreadingSesameBackend extends SesameRepositoryBackend {
      *
      * @return
      */
-    @Override
     public boolean supportsThreading() {
         return true;
     }
@@ -65,7 +66,6 @@ public class ThreadingSesameBackend extends SesameRepositoryBackend {
      *
      * @return
      */
-    @Override
     public ThreadPoolExecutor getThreadPool() {
         return workers;
     }

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/pom.xml
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/pom.xml b/libraries/ldpath/ldpath-core/pom.xml
index c6c0eb2..00a8dbf 100644
--- a/libraries/ldpath/ldpath-core/pom.xml
+++ b/libraries/ldpath/ldpath-core/pom.xml
@@ -140,7 +140,6 @@
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>build-helper-maven-plugin</artifactId>
-                <version>1.7</version>
                 <executions>
                     <execution>
                         <id>add-source</id>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/backend/AbstractBackend.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/backend/AbstractBackend.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/backend/AbstractBackend.java
index a0b4b98..9a36752 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/backend/AbstractBackend.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/backend/AbstractBackend.java
@@ -23,6 +23,7 @@ import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.util.FormatUtils;
 
@@ -64,9 +65,9 @@ import org.apache.marmotta.ldpath.util.FormatUtils;
  * </pre></code>
  * It will depend on the use cases what of the two implementations performs 
  * better.
- * @see org.apache.marmotta.ldpath.api.backend.RDFBackend#stringValue(java.lang.Object)
+ * @see org.apache.marmotta.ldpath.api.backend.NodeBackend#stringValue(java.lang.Object)
  */
-public abstract class AbstractBackend<Node> implements RDFBackend<Node> {
+public abstract class AbstractBackend<Node> implements NodeBackend<Node> {
 
     /**
      * A clone of the DateFormat provided by {@link FormatUtils} to parse xsd:date 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/fields/FieldMapping.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/fields/FieldMapping.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/fields/FieldMapping.java
index b555d01..538be06 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/fields/FieldMapping.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/fields/FieldMapping.java
@@ -26,6 +26,7 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.marmotta.ldpath.api.LDPathConstruct;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 import org.apache.marmotta.ldpath.api.transformers.NodeTransformer;
@@ -147,7 +148,7 @@ public class FieldMapping<T,Node> implements LDPathConstruct<Node> {
 
     
     
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         StringBuilder fc = new StringBuilder();
         if (fieldConfig != null) {
             fc.append("(");

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/programs/Program.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/programs/Program.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/programs/Program.java
index be85f3e..b09d9e9 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/programs/Program.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/programs/Program.java
@@ -24,6 +24,7 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 import org.apache.marmotta.ldpath.api.LDPathConstruct;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
 import org.apache.marmotta.ldpath.model.Constants;
@@ -159,7 +160,7 @@ public class Program<Node> implements LDPathConstruct<Node> {
 
     
     
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         StringBuilder sb = new StringBuilder();
         // Filter (?)
         if (filter != null) {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/FunctionSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/FunctionSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/FunctionSelector.java
index 9b85c8a..83aeb6c 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/FunctionSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/FunctionSelector.java
@@ -24,6 +24,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.functions.NodeFunction;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
@@ -100,7 +101,7 @@ public class FunctionSelector<Node> implements NodeSelector<Node> {
      * @param backend
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         final StringBuilder format = new StringBuilder();
         format.append(String.format("fn:%s(", function.getPathExpression(backend)));
         boolean first = true;
@@ -120,7 +121,7 @@ public class FunctionSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         throw new UnsupportedOperationException("cannot use functions in unnamed field definitions because the name is ambiguous");
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
index 4f1956d..b50a5d6 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/IntersectionSelector.java
@@ -24,6 +24,7 @@ import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -63,7 +64,7 @@ public class IntersectionSelector<Node> implements NodeSelector<Node> {
 	}
 
 	@Override
-	public String getPathExpression(RDFBackend<Node> backend) {
+	public String getPathExpression(NodeBackend<Node> backend) {
 		return String.format("(%s & %s)", left.getPathExpression(backend), right.getPathExpression(backend));
 	}
 
@@ -73,7 +74,7 @@ public class IntersectionSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         throw new UnsupportedOperationException("cannot use intersections in unnamed field definitions because the name is ambiguous");
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PathSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PathSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PathSelector.java
index bc1fac3..7af7ee0 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PathSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PathSelector.java
@@ -25,6 +25,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -80,7 +81,7 @@ public class PathSelector<Node> implements NodeSelector<Node> {
 
 
     @Override
-    public String getPathExpression(RDFBackend<Node> backend) {
+    public String getPathExpression(NodeBackend<Node> backend) {
         return String.format("%s / %s", left.getPathExpression(backend), right.getPathExpression(backend));
     }
 
@@ -90,7 +91,7 @@ public class PathSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         return left.getName(nodeRDFBackend);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PropertySelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PropertySelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PropertySelector.java
index 7f23812..68ed8df 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PropertySelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/PropertySelector.java
@@ -24,6 +24,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -71,7 +72,7 @@ public class PropertySelector<Node> implements NodeSelector<Node> {
 	}
 
 	@Override
-	public String getPathExpression(RDFBackend<Node> backend) {
+	public String getPathExpression(NodeBackend<Node> backend) {
 		if (property != null) {
 			return String.format("<%s>", backend.stringValue(property));
 		} else {
@@ -86,7 +87,7 @@ public class PropertySelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> backend) {
+    public String getName(NodeBackend<Node> backend) {
         if(property != null) {
             return backend.stringValue(property);
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/RecursivePathSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/RecursivePathSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/RecursivePathSelector.java
index 07121c6..e97b2e5 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/RecursivePathSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/RecursivePathSelector.java
@@ -21,6 +21,7 @@ import com.google.common.collect.ImmutableList;
 
 import java.util.*;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -85,7 +86,7 @@ public class RecursivePathSelector<Node> implements NodeSelector<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
     	if (maxRecursions != Integer.MAX_VALUE) {
     		if (minRecursions <= 0) {
     	    	return String.format("(%s){,%d}", delegate.getPathExpression(rdfBackend), maxRecursions);
@@ -109,7 +110,7 @@ public class RecursivePathSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         return delegate.getName(nodeRDFBackend);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/ReversePropertySelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/ReversePropertySelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/ReversePropertySelector.java
index 33f6576..4411ec5 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/ReversePropertySelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/ReversePropertySelector.java
@@ -24,6 +24,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -69,7 +70,7 @@ public class ReversePropertySelector<Node> implements NodeSelector<Node> {
 	}
 
 	@Override
-	public String getPathExpression(RDFBackend<Node> backend) {
+	public String getPathExpression(NodeBackend<Node> backend) {
 		if (property != null) {
 			return String.format("^<%s>", backend.stringValue(property));
 		} else {
@@ -83,7 +84,7 @@ public class ReversePropertySelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         return nodeRDFBackend.stringValue(property);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/SelfSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/SelfSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/SelfSelector.java
index 2151a04..299036c 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/SelfSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/SelfSelector.java
@@ -26,6 +26,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -60,7 +61,7 @@ public class SelfSelector<Node> implements NodeSelector<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return ".";
     }
 
@@ -70,7 +71,7 @@ public class SelfSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         throw new UnsupportedOperationException("cannot use self selections in unnamed field definitions because the name is ambiguous");
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/StringConstantSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/StringConstantSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/StringConstantSelector.java
index 3e1d803..6470c1c 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/StringConstantSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/StringConstantSelector.java
@@ -23,6 +23,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -63,7 +64,7 @@ public class StringConstantSelector<Node> implements NodeSelector<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
 		return String.format("\"%s\"", constant);
 	}
 
@@ -74,7 +75,7 @@ public class StringConstantSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         return constant;
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/TestingSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/TestingSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/TestingSelector.java
index 0ef7da3..a97d21a 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/TestingSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/TestingSelector.java
@@ -24,6 +24,7 @@ import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 import org.apache.marmotta.ldpath.api.tests.NodeTest;
@@ -78,7 +79,7 @@ public class TestingSelector<Node> implements NodeSelector<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return String.format("%s[%s]", delegate.getPathExpression(rdfBackend), test.getPathExpression(rdfBackend));
     }
 
@@ -88,7 +89,7 @@ public class TestingSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         return delegate.getName(nodeRDFBackend);
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
index aee30e0..963c38a 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/UnionSelector.java
@@ -24,6 +24,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.backend.RDFBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
@@ -72,7 +73,7 @@ public class UnionSelector<Node> implements NodeSelector<Node> {
      * @return
      */
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
         return String.format("(%s | %s)", left.getPathExpression(rdfBackend), right.getPathExpression(rdfBackend));
     }
 
@@ -82,7 +83,7 @@ public class UnionSelector<Node> implements NodeSelector<Node> {
      * occurrence of an atomic selector.
      */
     @Override
-    public String getName(RDFBackend<Node> nodeRDFBackend) {
+    public String getName(NodeBackend<Node> nodeRDFBackend) {
         throw new UnsupportedOperationException("cannot use unions in unnamed field definitions because the name is ambiguous");
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4dd5de63/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/WildcardSelector.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/WildcardSelector.java b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/WildcardSelector.java
index 2b34168..4c26880 100644
--- a/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/WildcardSelector.java
+++ b/libraries/ldpath/ldpath-core/src/main/java/org/apache/marmotta/ldpath/model/selectors/WildcardSelector.java
@@ -17,7 +17,7 @@
  */
 package org.apache.marmotta.ldpath.model.selectors;
 
-import org.apache.marmotta.ldpath.api.backend.RDFBackend;
+import org.apache.marmotta.ldpath.api.backend.NodeBackend;
 import org.apache.marmotta.ldpath.api.selectors.NodeSelector;
 
 /**
@@ -32,7 +32,7 @@ public class WildcardSelector<Node> extends PropertySelector<Node> implements No
 	}
 
     @Override
-    public String getPathExpression(RDFBackend<Node> rdfBackend) {
+    public String getPathExpression(NodeBackend<Node> rdfBackend) {
 		return "*";
 	}
 


[21/21] git commit: fixes cors bug

Posted by tk...@apache.org.
fixes cors bug


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/7140ba85
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/7140ba85
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/7140ba85

Branch: refs/heads/master
Commit: 7140ba85bc77cfc55c51e63ab836df3de8bab4e8
Parents: e933be0
Author: tkurz <tk...@apache.org>
Authored: Fri Apr 12 00:20:33 2013 +0200
Committer: tkurz <tk...@apache.org>
Committed: Fri Apr 12 00:20:33 2013 +0200

----------------------------------------------------------------------
 .../src/main/webapp/WEB-INF/web.xml                |   17 ++-
 .../src/main/webapp/WEB-INF/web.xml                |   11 +-
 .../core/servlet/MarmottaOptionsFilter.java        |  136 +++++++++++++++
 3 files changed, 158 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/7140ba85/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
index 9a01350..29fd3a7 100644
--- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
+++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
@@ -52,19 +52,20 @@
         <param-value>/tmp/lmf</param-value>
     </context-param>
 
-    <!-- this filter performs startup configurations for first installation -->
+    <!-- handle OPTIONS requests -->
     <filter>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
-        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
+        <filter-name>MarmottaOptionsFilter</filter-name>
+        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter</filter-class>
     </filter>
     <filter-mapping>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <filter-name>MarmottaOptionsFilter</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 
     <!-- enables a cors filter and maps it to any request -->
     <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
     <filter>
+        <!-- The CORS filter with parameters -->
         <filter-name>CORS</filter-name>
         <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
 
@@ -79,8 +80,14 @@
         </init-param>
 
     </filter>
+
+    <!-- this filter performs startup configurations for first installation -->
+    <filter>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
+    </filter>
     <filter-mapping>
-        <filter-name>CORS</filter-name>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/7140ba85/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
index 7c9c5f4..528ad91 100644
--- a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
+++ b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
@@ -49,9 +49,18 @@
         <param-value>/tmp/marmotta</param-value>
     </context-param>
 
+    <!-- handle OPTIONS requests -->
+    <filter>
+      <filter-name>MarmottaOptionsFilter</filter-name>
+      <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>MarmottaOptionsFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
     <!-- enables a cors filter and maps it to any request -->
     <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
-
     <filter>
         <!-- The CORS filter with parameters -->
         <filter-name>CORS</filter-name>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/7140ba85/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/servlet/MarmottaOptionsFilter.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/servlet/MarmottaOptionsFilter.java b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/servlet/MarmottaOptionsFilter.java
new file mode 100644
index 0000000..e81eb1b
--- /dev/null
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/servlet/MarmottaOptionsFilter.java
@@ -0,0 +1,136 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.apache.marmotta.platform.core.servlet;
+
+import org.apache.marmotta.platform.core.api.config.ConfigurationService;
+import org.jboss.resteasy.spi.DefaultOptionsMethodException;
+import org.jboss.resteasy.spi.ResteasyProviderFactory;
+import org.slf4j.Logger;
+
+import javax.inject.Inject;
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.ext.ExceptionMapper;
+import javax.ws.rs.ext.Provider;
+import java.io.IOException;
+import java.util.Arrays;
+
+/**
+ * This filter checks for OPTIONS requests. If the response returned by the other filters throws an exception
+ * org.jboss.resteasy.spi.DefaultOptionsMethodException, the filter writes to the response the default options
+ * of the Apache Marmotta system.
+ *
+ * <p/>
+ * Author: Sebastian Schaffert
+ */
+public class MarmottaOptionsFilter implements Filter {
+
+    @Inject
+    private Logger log;
+
+    @Inject
+    private ConfigurationService configurationService;
+
+    /**
+     * Called by the web container to indicate to a filter that it is being placed into
+     * service. The servlet container calls the init method exactly once after instantiating the
+     * filter. The init method must complete successfully before the filter is asked to do any
+     * filtering work. <br><br>
+     * <p/>
+     * The web container cannot place the filter into service if the init method either<br>
+     * 1.Throws a ServletException <br>
+     * 2.Does not return within a time period defined by the web container
+     */
+    @Override
+    public void init(FilterConfig filterConfig) throws ServletException {
+        ResteasyProviderFactory.getInstance().addExceptionMapper(new OptionsMapper());
+    }
+
+    /**
+     * The <code>doFilter</code> method of the Filter is called by the container
+     * each time a request/response pair is passed through the chain due
+     * to a client request for a resource at the end of the chain. The FilterChain passed in to this
+     * method allows the Filter to pass on the request and response to the next entity in the
+     * chain.<p>
+     * A typical implementation of this method would follow the following pattern:- <br>
+     * 1. Examine the request<br>
+     * 2. Optionally wrap the request object with a custom implementation to
+     * filter content or headers for input filtering <br>
+     * 3. Optionally wrap the response object with a custom implementation to
+     * filter content or headers for output filtering <br>
+     * 4. a) <strong>Either</strong> invoke the next entity in the chain using the FilterChain object (<code>chain.doFilter()</code>), <br>
+     * * 4. b) <strong>or</strong> not pass on the request/response pair to the next entity in the filter chain to block the request processing<br>
+     * * 5. Directly set headers on the response after invocation of the next entity in the filter chain.
+     */
+    @Override
+    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
+
+
+        try {
+
+            chain.doFilter(request,response);
+
+        } catch (DefaultOptionsMethodException ex) {
+            if(response instanceof HttpServletResponse) {
+                HttpServletResponse resp = (HttpServletResponse)response;
+                HttpServletRequest req  = (HttpServletRequest)request;
+
+                if(req.getMethod().equalsIgnoreCase("OPTIONS")) {
+                    resp.setStatus(200);
+                    resp.resetBuffer();
+
+                }
+            }
+        }
+
+
+
+    }
+
+    /**
+     * Called by the web container to indicate to a filter that it is being taken out of service. This
+     * method is only called once all threads within the filter's doFilter method have exited or after
+     * a timeout period has passed. After the web container calls this method, it will not call the
+     * doFilter method again on this instance of the filter. <br><br>
+     * <p/>
+     * This method gives the filter an opportunity to clean up any resources that are being held (for
+     * example, memory, file handles, threads) and make sure that any persistent state is synchronized
+     * with the filter's current state in memory.
+     */
+    @Override
+    public void destroy() {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    @Provider
+    protected static class OptionsMapper implements ExceptionMapper<DefaultOptionsMethodException> {
+
+        @Override
+        public Response toResponse(DefaultOptionsMethodException exception) {
+            throw exception;
+        }
+
+    }
+}


[20/21] git commit: merge

Posted by tk...@apache.org.
merge


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/e933be05
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/e933be05
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/e933be05

Branch: refs/heads/master
Commit: e933be05efd2111c00e61f86c37f6a410ce37239
Parents: 14ed40b 8ad5ef2
Author: tkurz <tk...@apache.org>
Authored: Fri Apr 12 00:05:51 2013 +0200
Committer: tkurz <tk...@apache.org>
Committed: Fri Apr 12 00:05:51 2013 +0200

----------------------------------------------------------------------
 client/marmotta-client-js-sample-webapp/pom.xml    |    2 +-
 client/marmotta-client-php/pom.xml                 |    2 +-
 libraries/ldcache/ldcache-backend-mapdb/pom.xml    |    2 +-
 .../core/api/templating/AdminInterfaceService.java |   55 +++
 .../core/api/templating/TemplatingService.java     |   58 ++--
 .../platform/core/filters/TemplatingFilter.java    |   27 +-
 .../platform/core/rio/RDFHtmlWriterImpl.java       |   16 +-
 .../templating/AdminTemplatingServiceImpl.java     |  283 ++++++++++++
 .../core/services/templating/TemplatingHelper.java |   93 ----
 .../services/templating/TemplatingServiceImpl.java |  348 ++++-----------
 .../webservices/resource/ContentWebService.java    |   14 +-
 .../webservices/resource/InspectionWebService.java |   80 ++--
 .../core/webservices/resource/MetaWebService.java  |   18 +-
 .../webservices/resource/ResourceWebService.java   |   54 ++-
 .../resource/ResourceWebServiceHelper.java         |   20 +-
 .../src/main/resources/templates/404.ftl           |    6 +-
 .../sparql/services/sparql/SparqlServiceImpl.java  |   54 +++-
 .../services/sparql/SparqlWritersHelper.java       |   54 ---
 .../sparqlhtml/SPARQLBooleanHTMLWriter.java        |    1 -
 .../sparqlhtml/SPARQLResultsHTMLWriter.java        |   13 +-
 .../sparql/webservices/SparqlWebService.java       |    6 +-
 21 files changed, 649 insertions(+), 557 deletions(-)
----------------------------------------------------------------------



[10/21] git commit: MARMOTTA-186: updated parser to accept '.' in curies

Posted by tk...@apache.org.
MARMOTTA-186: updated parser to accept '.' in curies


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/29b22583
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/29b22583
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/29b22583

Branch: refs/heads/master
Commit: 29b22583c9dde3a2d45082a87583f495c311a55a
Parents: 62ed603
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Apr 3 15:29:35 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Apr 3 15:29:35 2013 +0200

----------------------------------------------------------------------
 .../javacc/at/newmedialab/ldpath/parser/rdfpath.jj |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/29b22583/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj b/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
index dc5d308..c91a6a9 100644
--- a/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
+++ b/libraries/ldpath/ldpath-core/src/main/javacc/at/newmedialab/ldpath/parser/rdfpath.jj
@@ -388,13 +388,13 @@ TOKEN : /* OPERATORS */
 TOKEN :
 {
     < URI: ["a"-"z","A"-"Z"](["a"-"z","A"-"Z","0"-"9","+","-","."])* "://"  (["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])+ ("#" (["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])*)? | "#" (["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"])+> |
-    < IDENTIFIER: ["a"-"z","A"-"Z","0"-"9","_"](["a"-"z","A"-"Z","0"-"9","_","'","-"])* > |
+    < IDENTIFIER: ["a"-"z","A"-"Z","0"-"9","_"](["a"-"z","A"-"Z","0"-"9","_","'","-", "."])* > |
     < #URICHAR: ["a"-"z","A"-"Z","0"-"9",";","/","?",":","@","&","=","+","$",".","-","_","!","~","*","'","%"] >
 }
 
 Map<String, String> Namespaces() :
 {
-    HashMap<String, String> ns = new HashMap<String, String>();
+    Map<String, String> ns = new HashMap<String, String>();
     Entry<String, String> namespace = null;
 }
 {


[17/21] git commit: fixes bug in cors service (DELETE was not supported)

Posted by tk...@apache.org.
fixes bug in cors service (DELETE was not supported)


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/0ac19180
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/0ac19180
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/0ac19180

Branch: refs/heads/master
Commit: 0ac19180dfaae087cd1496dd1ef918e7014c0c4c
Parents: 425e9a7
Author: tkurz <tk...@apache.org>
Authored: Thu Apr 11 23:58:56 2013 +0200
Committer: tkurz <tk...@apache.org>
Committed: Thu Apr 11 23:58:56 2013 +0200

----------------------------------------------------------------------
 .../src/main/webapp/WEB-INF/web.xml                |   11 +++++
 .../src/main/webapp/WEB-INF/web.xml                |   33 +++++++++++----
 2 files changed, 35 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/0ac19180/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
index a44d704..9a01350 100644
--- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
+++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
@@ -67,6 +67,17 @@
     <filter>
         <filter-name>CORS</filter-name>
         <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
+
+        <init-param>
+            <param-name>cors.supportedMethods</param-name>
+            <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
+        </init-param>
+
+        <init-param>
+            <param-name>cors.supportedHeaders</param-name>
+            <param-value>Origin, Accept</param-value>
+        </init-param>
+
     </filter>
     <filter-mapping>
         <filter-name>CORS</filter-name>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/0ac19180/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
index 465a199..7c9c5f4 100644
--- a/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
+++ b/launchers/marmotta-webapp/src/main/webapp/WEB-INF/web.xml
@@ -49,24 +49,39 @@
         <param-value>/tmp/marmotta</param-value>
     </context-param>
 
-    <!-- this filter performs startup configurations for first installation -->
+    <!-- enables a cors filter and maps it to any request -->
+    <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
+
     <filter>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
-        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
+        <!-- The CORS filter with parameters -->
+        <filter-name>CORS</filter-name>
+        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
+
+        <init-param>
+            <param-name>cors.supportedMethods</param-name>
+            <param-value>GET, HEAD, POST, PUT, DELETE, OPTIONS</param-value>
+        </init-param>
+
+        <init-param>
+            <param-name>cors.supportedHeaders</param-name>
+            <param-value>Origin, Accept</param-value>
+        </init-param>
+
     </filter>
+
     <filter-mapping>
-        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <!-- CORS Filter mapping -->
+        <filter-name>CORS</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 
-    <!-- enables a cors filter and maps it to any request -->
-    <!-- for more fine grained configuration have a look at http://software.dzhuvinov.com/cors-filter-configuration.html -->
+    <!-- this filter performs startup configurations for first installation -->
     <filter>
-        <filter-name>CORS</filter-name>
-        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
+        <filter-class>org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter</filter-class>
     </filter>
     <filter-mapping>
-        <filter-name>CORS</filter-name>
+        <filter-name>MarmottaPreStartupFilter</filter-name>
         <url-pattern>/*</url-pattern>
     </filter-mapping>
 


[08/21] git commit: Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop

Posted by tk...@apache.org.
Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/28dfc81d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/28dfc81d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/28dfc81d

Branch: refs/heads/master
Commit: 28dfc81d2b6bdb05fb1767a56995ec7cf687b48d
Parents: 0990666 de2e858
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Apr 3 12:34:44 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Apr 3 12:34:44 2013 +0200

----------------------------------------------------------------------
 .../src/main/resources/templates/rdfhtml.ftl       |  328 ---------------
 1 files changed, 0 insertions(+), 328 deletions(-)
----------------------------------------------------------------------



[07/21] git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop

Posted by tk...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-marmotta into develop


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/09906665
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/09906665
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/09906665

Branch: refs/heads/master
Commit: 09906665136ad74f861deb69131ea099756ec810
Parents: 101ac6b 5aec3c9
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Apr 3 12:33:04 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Apr 3 12:33:04 2013 +0200

----------------------------------------------------------------------
 LICENSE.txt                                        |  601 +++++++++++++--
 NOTICE.txt                                         |  130 +---
 build/archetypes/marmotta-archetype-module/pom.xml |    2 +-
 build/archetypes/marmotta-archetype-webapp/pom.xml |    2 +-
 build/archetypes/pom.xml                           |    2 +-
 build/checkstyle-resources/pom.xml                 |    2 +-
 build/dependency-resource-supplement/pom.xml       |    2 +-
 build/plugins/buildinfo-maven-plugin/pom.xml       |    2 +-
 build/plugins/marmotta-maven-plugin/pom.xml        |    2 +-
 build/plugins/pom.xml                              |    2 +-
 build/plugins/refpack-maven-plugin/pom.xml         |    2 +-
 build/plugins/repocheck-maven-plugin/pom.xml       |    2 +-
 build/pom.xml                                      |    2 +-
 client/marmotta-client-java/pom.xml                |    2 +-
 client/marmotta-client-js/pom.xml                  |    2 +-
 client/pom.xml                                     |    2 +-
 commons/marmotta-commons/pom.xml                   |    2 +-
 commons/pom.xml                                    |    2 +-
 commons/sesame-filter/pom.xml                      |    2 +-
 commons/sesame-tools-facading/pom.xml              |    2 +-
 commons/sesame-tools-rio-api/pom.xml               |    2 +-
 commons/sesame-tools-rio-ical/pom.xml              |    2 +-
 commons/sesame-tools-rio-jsonld/pom.xml            |    2 +-
 commons/sesame-tools-rio-rdfjson/pom.xml           |    2 +-
 commons/sesame-tools-rio-rss/pom.xml               |    2 +-
 commons/sesame-tools-rio-vcard/pom.xml             |    2 +-
 extras/pom.xml                                     |    2 +-
 launchers/marmotta-installer/pom.xml               |    2 +-
 launchers/marmotta-splash/pom.xml                  |    2 +-
 launchers/marmotta-webapp/pom.xml                  |    2 +-
 launchers/pom.xml                                  |    2 +-
 libraries/kiwi/kiwi-contextaware/pom.xml           |    2 +-
 libraries/kiwi/kiwi-reasoner/pom.xml               |    2 +-
 libraries/kiwi/kiwi-transactions/pom.xml           |    2 +-
 libraries/kiwi/kiwi-triplestore/pom.xml            |    2 +-
 .../kiwi/persistence/KiWiGarbageCollector.java     |   15 +-
 .../marmotta/kiwi/persistence/KiWiPersistence.java |   20 +
 .../apache/marmotta/kiwi/test/PersistenceTest.java |   74 ++
 libraries/kiwi/kiwi-tripletable/pom.xml            |    2 +-
 libraries/kiwi/kiwi-versioning/pom.xml             |    2 +-
 .../versioning/test/VersioningPersistenceTest.java |   29 +-
 libraries/kiwi/pom.xml                             |    2 +-
 libraries/ldcache/ldcache-api/pom.xml              |    2 +-
 libraries/ldcache/ldcache-backend-ehcache/pom.xml  |    2 +-
 libraries/ldcache/ldcache-backend-file/pom.xml     |    2 +-
 libraries/ldcache/ldcache-backend-kiwi/pom.xml     |    2 +-
 libraries/ldcache/ldcache-core/pom.xml             |    2 +-
 libraries/ldcache/ldcache-sail-generic/pom.xml     |    2 +-
 libraries/ldcache/ldcache-sail-kiwi/pom.xml        |    2 +-
 libraries/ldcache/pom.xml                          |    2 +-
 libraries/ldclient/ldclient-api/pom.xml            |    2 +-
 libraries/ldclient/ldclient-core/pom.xml           |    2 +-
 .../ldclient/ldclient-provider-facebook/pom.xml    |    2 +-
 libraries/ldclient/ldclient-provider-html/pom.xml  |    2 +-
 libraries/ldclient/ldclient-provider-ldap/pom.xml  |    2 +-
 .../ldclient/ldclient-provider-mediawiki/pom.xml   |    2 +-
 libraries/ldclient/ldclient-provider-phpbb/pom.xml |    2 +-
 libraries/ldclient/ldclient-provider-rdf/pom.xml   |    2 +-
 libraries/ldclient/ldclient-provider-rdfa/pom.xml  |    2 +-
 libraries/ldclient/ldclient-provider-vimeo/pom.xml |    2 +-
 libraries/ldclient/ldclient-provider-xml/pom.xml   |    2 +-
 .../ldclient/ldclient-provider-youtube/pom.xml     |    2 +-
 libraries/ldclient/pom.xml                         |    2 +-
 libraries/ldpath/ldpath-api/pom.xml                |    2 +-
 libraries/ldpath/ldpath-backend-file/pom.xml       |    2 +-
 libraries/ldpath/ldpath-backend-jena/pom.xml       |    2 +-
 libraries/ldpath/ldpath-backend-linkeddata/pom.xml |    2 +-
 libraries/ldpath/ldpath-backend-sesame/pom.xml     |    2 +-
 libraries/ldpath/ldpath-core/pom.xml               |    2 +-
 .../ldpath/parser/DefaultConfiguration.java        |    4 +-
 .../ldpath/ldpath-functions-collections/pom.xml    |    2 +-
 libraries/ldpath/ldpath-functions-date/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-html/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-math/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-text/pom.xml     |    2 +-
 libraries/ldpath/ldpath-functions-xml/pom.xml      |    2 +-
 .../ldpath/ldpath-template-linkeddata/pom.xml      |    2 +-
 libraries/ldpath/ldpath-template/pom.xml           |    2 +-
 libraries/ldpath/pom.xml                           |    2 +-
 libraries/pom.xml                                  |    2 +-
 parent/pom.xml                                     |    8 +-
 platform/marmotta-core/pom.xml                     |    2 +-
 .../resources/web/public/style/scheme/dark.css     |    8 +
 platform/marmotta-ldcache/pom.xml                  |    2 +-
 platform/marmotta-ldpath/pom.xml                   |    2 +-
 .../src/main/resources/web/cm/LICENSE.txt          |   23 +
 .../src/main/resources/web/cm/codemirror.css       |   37 +-
 .../src/main/resources/web/cm/codemirror.js        |   37 +-
 .../src/main/resources/web/cm/ldpath.js            |   36 +-
 .../src/main/resources/web/cm/simple-hint.css      |   34 +-
 .../src/main/resources/web/cm/simple-hint.js       |   36 +-
 platform/marmotta-reasoner/pom.xml                 |    2 +-
 platform/marmotta-security/pom.xml                 |    2 +-
 platform/marmotta-sparql/pom.xml                   |    2 +-
 .../web/admin/editor/flint_sparql_editor.html      |   50 +-
 .../resources/web/admin/editor/sparql/css/docs.css |   35 +-
 .../resources/web/admin/editor/sparql/css/font.js  |    2 +
 .../web/admin/editor/sparql/css/sparqlcolors.css   |   35 +-
 .../web/admin/editor/sparql/flint-editor.js        |   34 +-
 .../web/admin/editor/sparql/init-local.js          |   35 +-
 .../web/admin/editor/sparql/init-openuplabs.js     |   35 +-
 .../web/admin/editor/sparql/init-sparqlservice.js  |   35 +-
 .../web/admin/editor/sparql/lib/codemirror.css     |   35 +-
 .../web/admin/editor/sparql/lib/codemirror.js      |   37 +-
 .../web/admin/editor/sparql/lib/overlay.js         |   43 +-
 .../web/admin/editor/sparql/lib/runmode.js         |   36 +-
 .../web/admin/editor/sparql/sparqlParser.js        |   33 +-
 .../web/admin/editor/sparql/sparqlmode.js          |   33 +-
 .../web/admin/editor/sparql/sparqlmode_ll1.js      |   33 +-
 .../src/main/resources/web/admin/snorql/NOTICE     |    5 +
 .../main/resources/web/admin/snorql/namespaces.js  |    2 +
 .../main/resources/web/admin/snorql/prototype.js   |   19 +-
 .../web/admin/snorql/scriptaculous/builder.js      |   17 -
 .../web/admin/snorql/scriptaculous/controls.js     |   17 -
 .../web/admin/snorql/scriptaculous/dragdrop.js     |   22 +-
 .../web/admin/snorql/scriptaculous/effects.js      |   22 +-
 .../admin/snorql/scriptaculous/scriptaculous.js    |   24 +-
 .../web/admin/snorql/scriptaculous/slider.js       |   22 +-
 .../web/admin/snorql/scriptaculous/sound.js        |   22 +-
 .../web/admin/snorql/scriptaculous/unittest.js     |   24 +-
 .../main/resources/web/admin/snorql/snorql.html    |    1 +
 .../src/main/resources/web/admin/snorql/snorql.js  |    2 +
 .../src/main/resources/web/admin/snorql/sparql.js  |   17 -
 .../src/main/resources/web/admin/snorql/style.css  |    2 +
 .../src/main/resources/web/cm/LICENSE.txt          |   23 +
 .../src/main/resources/web/cm/codemirror.css       |   34 +-
 .../src/main/resources/web/cm/codemirror.js        |   37 +-
 .../src/main/resources/web/cm/simple-hint.css      |   35 +-
 .../src/main/resources/web/cm/simple-hint.js       |   37 +-
 .../src/main/resources/web/cm/sparql.js            |   37 +-
 platform/marmotta-user/pom.xml                     |    2 +-
 platform/marmotta-versioning/pom.xml               |    2 +-
 platform/pom.xml                                   |    2 +-
 pom.xml                                            |   27 +-
 134 files changed, 1395 insertions(+), 820 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09906665/libraries/ldpath/ldpath-api/pom.xml
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/09906665/libraries/ldpath/ldpath-core/pom.xml
----------------------------------------------------------------------