You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/10/06 11:54:42 UTC

git commit: added a test for an issue reported by RedLink

Repository: marmotta
Updated Branches:
  refs/heads/develop 1e30102ae -> 28ecb7f17


added a test for an issue reported by RedLink


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

Branch: refs/heads/develop
Commit: 28ecb7f170e72d0cdc305dc5d9261c86dcf1df3c
Parents: 1e30102
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Mon Oct 6 11:55:08 2014 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Mon Oct 6 11:55:08 2014 +0200

----------------------------------------------------------------------
 .../kiwi/sparql/test/KiWiSparqlJoinTest.java    |  5 ++++
 .../marmotta/kiwi/sparql/test/query35.sparql    | 27 ++++++++++++++++++++
 2 files changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/28ecb7f1/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlJoinTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlJoinTest.java b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlJoinTest.java
index 9450126..b3b2e2e 100644
--- a/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlJoinTest.java
+++ b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlJoinTest.java
@@ -338,6 +338,11 @@ public class KiWiSparqlJoinTest {
         testQuery("query34.sparql");
     }
 
+    // Redlink API-463
+    @Test
+    public void testQuery35() throws Exception {
+        testQuery("query35.sparql");
+    }
 
 
     // INSERT/UPDATE

http://git-wip-us.apache.org/repos/asf/marmotta/blob/28ecb7f1/libraries/kiwi/kiwi-sparql/src/test/resources/org/apache/marmotta/kiwi/sparql/test/query35.sparql
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-sparql/src/test/resources/org/apache/marmotta/kiwi/sparql/test/query35.sparql b/libraries/kiwi/kiwi-sparql/src/test/resources/org/apache/marmotta/kiwi/sparql/test/query35.sparql
new file mode 100644
index 0000000..37134dc
--- /dev/null
+++ b/libraries/kiwi/kiwi-sparql/src/test/resources/org/apache/marmotta/kiwi/sparql/test/query35.sparql
@@ -0,0 +1,27 @@
+#
+# 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.
+#
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+
+# issue API-463
+
+SELECT (count(?s) AS ?count) WHERE {
+    ?s a foaf:Person ;
+       foaf:name ?name ;
+       foaf:age ?age .
+       FILTER(?age > 30)
+}
\ No newline at end of file