marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgla...@apache.org
Subject marmotta git commit: Added the ValueExpr "Exists" to SQLBuilder
Date Fri, 25 Sep 2015 13:22:24 GMT
Repository: marmotta
Updated Branches:
  refs/heads/develop dd013bed1 -> 56bcb6d29


Added the ValueExpr "Exists" to SQLBuilder

SPARQL-Exists statements had no datatype assigned.
Added the ValueExpr "Exists" to SQLBuilder  in order
to have proper ValueType on SPARQL-EXISTS statements when
using "native" sparql.strategy!


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

Branch: refs/heads/develop
Commit: 56bcb6d299f6ec232f0b0fe82ef93697f91e4f0b
Parents: dd013be
Author: Dietmar <dglachs@gmail.com>
Authored: Fri Sep 25 15:19:18 2015 +0200
Committer: Dietmar <dglachs@gmail.com>
Committed: Fri Sep 25 15:19:18 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/56bcb6d2/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
b/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
index 933fdda..f816fa4 100644
--- a/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
+++ b/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
@@ -897,6 +897,8 @@ public class SQLBuilder {
             return ValueType.BOOL;
         } else if(expr instanceof If) {
             return getProjectionType(((If) expr).getResult());
+        } else if(expr instanceof Exists) {
+            return ValueType.BOOL;
         } else {
             return ValueType.STRING;
         }


Mime
View raw message