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 2013/09/09 18:17:03 UTC
git commit: fixed a potential problem in representation of pattern
query results in reasoner (could fix MARMOTTA-232)
Updated Branches:
refs/heads/develop 63a2a7564 -> 69cc8f3a9
fixed a potential problem in representation of pattern query results in reasoner (could fix MARMOTTA-232)
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/69cc8f3a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/69cc8f3a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/69cc8f3a
Branch: refs/heads/develop
Commit: 69cc8f3a9835f1ba02af162fd393ace7048ba97b
Parents: 63a2a75
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Mon Sep 9 18:16:09 2013 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Mon Sep 9 18:16:09 2013 +0200
----------------------------------------------------------------------
.../marmotta/kiwi/reasoner/model/query/QueryResult.java | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/69cc8f3a/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/model/query/QueryResult.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/model/query/QueryResult.java b/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/model/query/QueryResult.java
index 94e73ed..5dbf0af 100644
--- a/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/model/query/QueryResult.java
+++ b/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/model/query/QueryResult.java
@@ -17,6 +17,7 @@
*/
package org.apache.marmotta.kiwi.reasoner.model.query;
+import org.apache.marmotta.commons.sesame.model.StatementCommons;
import org.apache.marmotta.kiwi.model.rdf.KiWiNode;
import org.apache.marmotta.kiwi.model.rdf.KiWiTriple;
import org.apache.marmotta.kiwi.reasoner.model.program.VariableField;
@@ -27,7 +28,7 @@ import java.util.Map;
import java.util.Set;
/**
- * Add file description here!
+ * Represent the result of a pattern query of a rule body against the triple store.
* <p/>
* User: sschaffe
*/
@@ -39,7 +40,7 @@ public class QueryResult {
public QueryResult() {
bindings = new HashMap<VariableField, KiWiNode>();
- justifications = new HashSet<KiWiTriple>();
+ justifications = StatementCommons.newQuadrupleSet();
}
public QueryResult(Map<VariableField, KiWiNode> bindings, Set<KiWiTriple> justifications) {
@@ -51,15 +52,8 @@ public class QueryResult {
return bindings;
}
- public void setBindings(Map<VariableField, KiWiNode> bindings) {
- this.bindings = bindings;
- }
-
public Set<KiWiTriple> getJustifications() {
return justifications;
}
- public void setJustifications(Set<KiWiTriple> justifications) {
- this.justifications = justifications;
- }
}