marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject [14/50] [abbrv] git commit: small code optimizations
Date Wed, 09 Apr 2014 11:04:17 GMT
small code optimizations


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

Branch: refs/heads/master
Commit: 73762ddd8d2ba24846024fe946caf0d0064e9e95
Parents: babe500
Author: Sebastian Schaffert <sschaffert@apache.org>
Authored: Mon Mar 31 19:11:39 2014 +0200
Committer: Sebastian Schaffert <sschaffert@apache.org>
Committed: Mon Mar 31 19:11:39 2014 +0200

----------------------------------------------------------------------
 .../org/apache/marmotta/kiwi/sail/KiWiSailConnection.java     | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/73762ddd/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiSailConnection.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiSailConnection.java
b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiSailConnection.java
index 23bc680..3e3dfaf 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiSailConnection.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/sail/KiWiSailConnection.java
@@ -148,16 +148,11 @@ public class KiWiSailConnection extends NotifyingSailConnectionBase
implements I
                 contextSet.add(valueFactory.createURI(inferredContext));
             }
 
-            KiWiResource    ksubj = valueFactory.convert(subj);
-            KiWiUriResource kpred = valueFactory.convert(pred);
-            KiWiNode        kobj  = valueFactory.convert(obj);
-
-
             Set<KiWiTriple> added = new HashSet<KiWiTriple>();
             for(Resource context : contextSet) {
                 KiWiResource kcontext = valueFactory.convert(context);
 
-                KiWiTriple triple = (KiWiTriple)valueFactory.createStatement(ksubj,kpred,kobj,kcontext,
databaseConnection);
+                KiWiTriple triple = (KiWiTriple)valueFactory.createStatement(subj,pred,obj,kcontext,
databaseConnection);
                 triple.setInferred(inferred);
 
                 databaseConnection.storeTriple(triple);


Mime
View raw message