clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject clerezza-rdf-core git commit: preventing unnecessary iterations
Date Sat, 09 Jul 2016 13:22:13 GMT
Repository: clerezza-rdf-core
Updated Branches:
  refs/heads/master 03f02db65 -> aa2c94534


preventing unnecessary iterations

Project: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/commit/aa2c9453
Tree: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/tree/aa2c9453
Diff: http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/diff/aa2c9453

Branch: refs/heads/master
Commit: aa2c945342f9ea7ee598e1240c8582eae2a9c0d8
Parents: 03f02db
Author: Reto Gmuer <reto@apache.org>
Authored: Sat Jul 9 13:21:27 2016 +0000
Committer: Reto Gmuer <reto@apache.org>
Committed: Sat Jul 9 13:21:27 2016 +0000

----------------------------------------------------------------------
 .../org/apache/clerezza/commons/rdf/impl/sparql/SparqlGraph.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza-rdf-core/blob/aa2c9453/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlGraph.java
----------------------------------------------------------------------
diff --git a/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlGraph.java
b/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlGraph.java
index 9874084..28eb28e 100644
--- a/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlGraph.java
+++ b/impl.sparql/src/main/java/org/apache/clerezza/commons/rdf/impl/sparql/SparqlGraph.java
@@ -304,7 +304,8 @@ public class SparqlGraph extends AbstractGraph {
                             if (newTripleAdded) {
                                 //look for more results
                                 expandedContexts.addAll(expandContext(expandedContext));
-                                //expandedContexts.add(expandedContext);
+                                //continued iteration obsoleted by recursion
+                                break;
                             }
                         }
 


Mime
View raw message