jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1404405 - in /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify: GraphStoreUtils.java UpdateEngineMain.java UpdateEngineWorker.java
Date Wed, 31 Oct 2012 22:56:36 GMT
Author: andy
Date: Wed Oct 31 22:56:35 2012
New Revision: 1404405

URL: http://svn.apache.org/viewvc?rev=1404405&view=rev
Log:
Remove unused library ; misc cleaning in passing.

Removed:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/GraphStoreUtils.java
Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineMain.java
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineMain.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineMain.java?rev=1404405&r1=1404404&r2=1404405&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineMain.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineMain.java
Wed Oct 31 22:56:35 2012
@@ -48,7 +48,6 @@ public class UpdateEngineMain extends Up
     /**
      * Executes the updates by creating a {@link UpdateVisitor} using the {@link #prepareWorker()}
method and then using that to visit each update command in the Update Request
      */
-    @SuppressWarnings("javadoc")
     @Override
     public void execute()
     {

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java?rev=1404405&r1=1404404&r2=1404405&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java
Wed Oct 31 22:56:35 2012
@@ -81,7 +81,6 @@ public class UpdateEngineWorker implemen
     public void visit(UpdateClear update)
     { execDropClear(update, true) ; }
 
-    // ReDo with gs* primitives
     protected void execDropClear(UpdateDropClear update, boolean isClear)
     {
         if ( update.isAll() )
@@ -349,7 +348,7 @@ public class UpdateEngineWorker implemen
                 System.out.println("=======================================") ;
                 // Debug.
                 List<Binding> x = Iter.toList(bindings) ;
-                System.out.println("====") ;
+                System.out.println("==== Bindings") ;
                 Iter.asString(x, "\n") ;
                 System.out.println("====") ;
                 bindings = Iter.iter(x) ;
@@ -379,35 +378,6 @@ public class UpdateEngineWorker implemen
             return null ;
      
         return DynamicDatasets.dynamicDataset(update.getUsing(), update.getUsingNamed(),
graphStore, false) ;
-        
-        // Old code : remove after ARQ 2.9.4 or ealier if we're sure the replacement above
is stable.
-//        Graph dftGraph = GraphFactory.createGraphMem() ;
-//        DatasetGraphMap dsg = new DatasetGraphMap(dftGraph) ;
-//        
-//        if ( update.getUsing().size() > 0  )
-//        {
-//            if ( update.getUsing().size() > 1 )
-//            {
-//                for ( Node gn : update.getUsing() )
-//                {
-//                    Graph g2 = graphOrDummy(graphStore, gn) ;
-//                    dftGraph.getBulkUpdateHandler().add(g2) ;
-//                }
-//            }
-//            else
-//            {
-//                Node gn = update.getUsing().get(0) ;
-//                Graph g = graphOrDummy(graphStore, gn) ;
-//                dsg.setDefaultGraph(g) ;
-//            }
-//        }
-//        
-//        if ( update.getUsingNamed().size() > 0  )
-//        {
-//            for ( Node gn : update.getUsingNamed() )
-//                dsg.addGraph(gn, graphOrDummy(graphStore, gn)) ;
-//        }
-//        return dsg ;
     }
     
     protected DatasetGraph processWith(UpdateModify update)



Mime
View raw message