You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/11/07 14:55:24 UTC

svn commit: r1198737 [2/2] - in /incubator/jena/Scratch/AFS/Jena-Dev/trunk/src: dev/ fm2/ fm2/atlas/ fm2/jenautil/ opexec/ reports/ reports/archive/

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorClassLoader.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorClassLoader.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorClassLoader.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorClassLoader.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorFile.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorFile.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorFile.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorFile.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorURL.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorURL.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorURL.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorURL.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorZip.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorZip.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorZip.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/LocatorZip.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/StreamManager.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/StreamManager.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/StreamManager.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/StreamManager.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TS_IO2.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TS_IO2.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TS_IO2.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TS_IO2.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocationMapper.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocationMapper.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocationMapper.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocationMapper.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocators.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocators.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocators.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestLocators.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestStreamManager.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestStreamManager.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestStreamManager.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/atlas/TestStreamManager.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/FileManager2.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/FileManager2.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/FileManager2.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/FileManager2.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/JenaIOEnvironment.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/JenaIOEnvironment.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/JenaIOEnvironment.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/fm2/jenautil/JenaIOEnvironment.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/opexec/OpExecutorExample.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/opexec/OpExecutorExample.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/opexec/OpExecutorExample.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/opexec/OpExecutorExample.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -16,134 +16,134 @@
  * limitations under the License.
  */
 
-package opexec;
-
-import java.io.StringReader ;
-
-import org.openjena.atlas.lib.StrUtils ;
-import org.openjena.atlas.logging.Log ;
-
-import com.hp.hpl.jena.query.ARQ ;
-import com.hp.hpl.jena.query.Query ;
-import com.hp.hpl.jena.query.QueryExecution ;
-import com.hp.hpl.jena.query.QueryExecutionFactory ;
-import com.hp.hpl.jena.query.QueryFactory ;
-import com.hp.hpl.jena.query.ResultSetFormatter ;
-import com.hp.hpl.jena.rdf.model.Model ;
-import com.hp.hpl.jena.rdf.model.ModelFactory ;
-import com.hp.hpl.jena.sparql.algebra.op.OpBGP ;
-import com.hp.hpl.jena.sparql.algebra.op.OpFilter ;
-import com.hp.hpl.jena.sparql.core.BasicPattern ;
-import com.hp.hpl.jena.sparql.engine.ExecutionContext ;
-import com.hp.hpl.jena.sparql.engine.QueryIterator ;
-import com.hp.hpl.jena.sparql.engine.main.OpExecutor ;
-import com.hp.hpl.jena.sparql.engine.main.OpExecutorFactory ;
-import com.hp.hpl.jena.sparql.engine.main.QC ;
-import com.hp.hpl.jena.sparql.engine.main.StageBuilder ;
-
-/** Example skeleton for a query engine.
- *  To just extend ARQ by custom basic graph pattern matching (a very common case)
- *  see the arq.examples.bgpmatching package */
-
-public class OpExecutorExample //extends QueryEngineMain
-{
-    // UNFINISHED
-    // Check where OpExecutorFactory.create happens.
-    
-    /* To install a custom OpExecutor, the application needs
-     * 
-     *  
-     * The example MyQueryEngine shows how to take over the
-     * execution of a SPARQL algebra expression.  This allows
-     * customization of optimizations running before query execution
-     * starts.  
-     * 
-     * An OpExecutor controls the running of an algebra expression.
-     * An executor needs to cope with the fact a dataset might be composed
-     * of a mixture of graphs, and that it might be be being called for any
-     * kind of storage unit, not just one it is designed for. 
-     * 
-     * Thsi is done by having a chain (via subclassing) of OpExecutors,
-     * with the base class being hthe general purpose one for ARQ that can
-     * operate on any data storage layer.
-     * 
-     */
-    
-    
-    static void init()
-    {
-        // Wire the new factory into the system.
-        ARQ.init() ;
-        // *** Where is the factory choosen?
-        OpExecutorFactory current = QC.getFactory(ARQ.getContext()) ;
-        // maybe null
-        QC.setFactory(ARQ.getContext(), new MyOpExecutorFactory(current)) ;
-    }
-    
-    
-    public static void main(String ...argv)
-    {
-        Log.setLog4j() ;
-        init() ;
-        Model m = data() ;
-        
-        String s = "SELECT DISTINCT ?s { ?s ?p ?o FILTER (?o=12) } " ;
-        Query query = QueryFactory.create(s) ;
-        QueryExecution qExec = QueryExecutionFactory.create(query, m) ;
-        ResultSetFormatter.out(qExec.execSelect()) ;
-        qExec.close() ;
-    }
-    
-    
-    
-    private static Model data()
-    {
-        String s = StrUtils.strjoinNL("<s> <p> 12 .",
-                                      "<s> <p> 15 .") ;
-        Model m = ModelFactory.createDefaultModel() ;
-        m.read(new StringReader(s), null , "TTL") ;
-        return m ; 
-    }
-
-
-    // This is a simple example.
-    // For execution logging, see:
-    //   http://openjena.org/wiki/ARQ/Explain
-    // which printout more information. 
-    static class MyOpExecutor extends OpExecutor
-    {
-        protected MyOpExecutor(ExecutionContext execCxt)
-        {
-            super(execCxt) ;
-        }
-        
-        @Override
-        protected QueryIterator execute(OpBGP opBGP, QueryIterator input)
-        {
-            System.out.print("Execute: "+opBGP) ;
-            // This is an illustration - it's a copy of the default implementation
-            BasicPattern pattern = opBGP.getPattern() ;
-            return StageBuilder.execute(pattern, input, execCxt) ;
-        }
-        
-        @Override
-        protected QueryIterator execute(OpFilter opFilter, QueryIterator input)
-        {
-            System.out.print("Execute: "+opFilter) ;
-            return super.execute(opFilter, input) ;
-        }
-    }
-    
-    /** A factory to make OpExecutors */
-    static class MyOpExecutorFactory implements OpExecutorFactory
-    {
-        private final OpExecutorFactory other ;
-        
-        public MyOpExecutorFactory(OpExecutorFactory other) { this.other = other ; }
+package opexec;
+
+import java.io.StringReader ;
+
+import org.openjena.atlas.lib.StrUtils ;
+import org.openjena.atlas.logging.Log ;
+
+import com.hp.hpl.jena.query.ARQ ;
+import com.hp.hpl.jena.query.Query ;
+import com.hp.hpl.jena.query.QueryExecution ;
+import com.hp.hpl.jena.query.QueryExecutionFactory ;
+import com.hp.hpl.jena.query.QueryFactory ;
+import com.hp.hpl.jena.query.ResultSetFormatter ;
+import com.hp.hpl.jena.rdf.model.Model ;
+import com.hp.hpl.jena.rdf.model.ModelFactory ;
+import com.hp.hpl.jena.sparql.algebra.op.OpBGP ;
+import com.hp.hpl.jena.sparql.algebra.op.OpFilter ;
+import com.hp.hpl.jena.sparql.core.BasicPattern ;
+import com.hp.hpl.jena.sparql.engine.ExecutionContext ;
+import com.hp.hpl.jena.sparql.engine.QueryIterator ;
+import com.hp.hpl.jena.sparql.engine.main.OpExecutor ;
+import com.hp.hpl.jena.sparql.engine.main.OpExecutorFactory ;
+import com.hp.hpl.jena.sparql.engine.main.QC ;
+import com.hp.hpl.jena.sparql.engine.main.StageBuilder ;
+
+/** Example skeleton for a query engine.
+ *  To just extend ARQ by custom basic graph pattern matching (a very common case)
+ *  see the arq.examples.bgpmatching package */
+
+public class OpExecutorExample //extends QueryEngineMain
+{
+    // UNFINISHED
+    // Check where OpExecutorFactory.create happens.
+    
+    /* To install a custom OpExecutor, the application needs
+     * 
+     *  
+     * The example MyQueryEngine shows how to take over the
+     * execution of a SPARQL algebra expression.  This allows
+     * customization of optimizations running before query execution
+     * starts.  
+     * 
+     * An OpExecutor controls the running of an algebra expression.
+     * An executor needs to cope with the fact a dataset might be composed
+     * of a mixture of graphs, and that it might be be being called for any
+     * kind of storage unit, not just one it is designed for. 
+     * 
+     * Thsi is done by having a chain (via subclassing) of OpExecutors,
+     * with the base class being hthe general purpose one for ARQ that can
+     * operate on any data storage layer.
+     * 
+     */
+    
+    
+    static void init()
+    {
+        // Wire the new factory into the system.
+        ARQ.init() ;
+        // *** Where is the factory choosen?
+        OpExecutorFactory current = QC.getFactory(ARQ.getContext()) ;
+        // maybe null
+        QC.setFactory(ARQ.getContext(), new MyOpExecutorFactory(current)) ;
+    }
+    
+    
+    public static void main(String ...argv)
+    {
+        Log.setLog4j() ;
+        init() ;
+        Model m = data() ;
+        
+        String s = "SELECT DISTINCT ?s { ?s ?p ?o FILTER (?o=12) } " ;
+        Query query = QueryFactory.create(s) ;
+        QueryExecution qExec = QueryExecutionFactory.create(query, m) ;
+        ResultSetFormatter.out(qExec.execSelect()) ;
+        qExec.close() ;
+    }
+    
+    
+    
+    private static Model data()
+    {
+        String s = StrUtils.strjoinNL("<s> <p> 12 .",
+                                      "<s> <p> 15 .") ;
+        Model m = ModelFactory.createDefaultModel() ;
+        m.read(new StringReader(s), null , "TTL") ;
+        return m ; 
+    }
+
+
+    // This is a simple example.
+    // For execution logging, see:
+    //   http://openjena.org/wiki/ARQ/Explain
+    // which printout more information. 
+    static class MyOpExecutor extends OpExecutor
+    {
+        protected MyOpExecutor(ExecutionContext execCxt)
+        {
+            super(execCxt) ;
+        }
+        
+        @Override
+        protected QueryIterator execute(OpBGP opBGP, QueryIterator input)
+        {
+            System.out.print("Execute: "+opBGP) ;
+            // This is an illustration - it's a copy of the default implementation
+            BasicPattern pattern = opBGP.getPattern() ;
+            return StageBuilder.execute(pattern, input, execCxt) ;
+        }
+        
+        @Override
+        protected QueryIterator execute(OpFilter opFilter, QueryIterator input)
+        {
+            System.out.print("Execute: "+opFilter) ;
+            return super.execute(opFilter, input) ;
+        }
+    }
+    
+    /** A factory to make OpExecutors */
+    static class MyOpExecutorFactory implements OpExecutorFactory
+    {
+        private final OpExecutorFactory other ;
+        
+        public MyOpExecutorFactory(OpExecutorFactory other) { this.other = other ; }
         @Override
-        public OpExecutor create(ExecutionContext execCxt)
-        {
-            return new MyOpExecutor(execCxt) ;
-        }
-    }
+        public OpExecutor create(ExecutionContext execCxt)
+        {
+            return new MyOpExecutor(execCxt) ;
+        }
+    }
 }

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportParsingDurations.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportParsingDurations.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportParsingDurations.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportParsingDurations.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAnyURI.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAnyURI.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAnyURI.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAnyURI.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAssignSubstitute.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAssignSubstitute.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAssignSubstitute.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportAssignSubstitute.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -16,63 +16,63 @@
  * limitations under the License.
  */
 
-package reports.archive;
-
-import org.junit.Test ;
-import org.openjena.atlas.lib.StrUtils ;
-
-import com.hp.hpl.jena.query.Query ;
-import com.hp.hpl.jena.query.QueryFactory ;
-import com.hp.hpl.jena.query.Syntax ;
-import com.hp.hpl.jena.sparql.algebra.Algebra ;
-import com.hp.hpl.jena.sparql.algebra.Op ;
-import com.hp.hpl.jena.sparql.algebra.optimize.Optimize ;
-import com.hp.hpl.jena.sparql.core.Substitute ;
-import com.hp.hpl.jena.sparql.core.Var ;
-import com.hp.hpl.jena.sparql.util.NodeFactory ;
-
-public class ReportAssignSubstitute
-{
-    @Test
-    public void test()
-    {
-    }
-
-    
-    public static void main(String[] argv) throws Exception
-    {
-        // Test case needed.
-        String qs = StrUtils.strjoinNL("PREFIX  rdfs:   <http://www.w3.org/2000/01/rdf-schema#>",
-                                       "PREFIX fn:      <http://www.w3.org/2005/xpath-functions#>",
-                                       "PREFIX : <http://example/>",
-                                       "SELECT *" ,
-                                       "WHERE {" ,
-//                                       "    ?instance a :Person .",
-                                       "    ?instance rdfs:label ?label .",
-//                                       "    {",
-//                                       "        LET (?lab := ?label) .",
-                                       "        LET (?label := ?label) .",
-                                       "         FILTER fn:starts-with(?lab, \"A\") .",
-//                                       "    }",
-                                       "} ") ; 
-        Query query = QueryFactory.create(qs, Syntax.syntaxARQ) ;
-        Op op1 = Algebra.compile(query) ;
-
-        Op op1a = Substitute.substitute(op1, Var.alloc("label"), NodeFactory.parseNode("'aa'")) ;
-        System.out.println(op1a) ;
-        System.exit(0) ;
-        
-        
-        System.out.println(op1) ;
-        Op op2 = Algebra.optimize(op1) ;
-        System.out.println(op2) ;
-        
-        Op op2a = Substitute.substitute(op2, Var.alloc("label"), NodeFactory.parseNode("'aa'")) ;
-        System.out.println(op2a) ;
-        
-        Optimize.noOptimizer() ;
-        Op op3 = Algebra.optimize(op1) ;
-        System.out.println(op3) ;
-        System.exit(0) ;
-    }
+package reports.archive;
+
+import org.junit.Test ;
+import org.openjena.atlas.lib.StrUtils ;
+
+import com.hp.hpl.jena.query.Query ;
+import com.hp.hpl.jena.query.QueryFactory ;
+import com.hp.hpl.jena.query.Syntax ;
+import com.hp.hpl.jena.sparql.algebra.Algebra ;
+import com.hp.hpl.jena.sparql.algebra.Op ;
+import com.hp.hpl.jena.sparql.algebra.optimize.Optimize ;
+import com.hp.hpl.jena.sparql.core.Substitute ;
+import com.hp.hpl.jena.sparql.core.Var ;
+import com.hp.hpl.jena.sparql.util.NodeFactory ;
+
+public class ReportAssignSubstitute
+{
+    @Test
+    public void test()
+    {
+    }
+
+    
+    public static void main(String[] argv) throws Exception
+    {
+        // Test case needed.
+        String qs = StrUtils.strjoinNL("PREFIX  rdfs:   <http://www.w3.org/2000/01/rdf-schema#>",
+                                       "PREFIX fn:      <http://www.w3.org/2005/xpath-functions#>",
+                                       "PREFIX : <http://example/>",
+                                       "SELECT *" ,
+                                       "WHERE {" ,
+//                                       "    ?instance a :Person .",
+                                       "    ?instance rdfs:label ?label .",
+//                                       "    {",
+//                                       "        LET (?lab := ?label) .",
+                                       "        LET (?label := ?label) .",
+                                       "         FILTER fn:starts-with(?lab, \"A\") .",
+//                                       "    }",
+                                       "} ") ; 
+        Query query = QueryFactory.create(qs, Syntax.syntaxARQ) ;
+        Op op1 = Algebra.compile(query) ;
+
+        Op op1a = Substitute.substitute(op1, Var.alloc("label"), NodeFactory.parseNode("'aa'")) ;
+        System.out.println(op1a) ;
+        System.exit(0) ;
+        
+        
+        System.out.println(op1) ;
+        Op op2 = Algebra.optimize(op1) ;
+        System.out.println(op2) ;
+        
+        Op op2a = Substitute.substitute(op2, Var.alloc("label"), NodeFactory.parseNode("'aa'")) ;
+        System.out.println(op2a) ;
+        
+        Optimize.noOptimizer() ;
+        Op op3 = Algebra.optimize(op1) ;
+        System.out.println(op3) ;
+        System.exit(0) ;
+    }
 }

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDBPedia2.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDBPedia2.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDBPedia2.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDBPedia2.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDuplicateBNodes.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDuplicateBNodes.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDuplicateBNodes.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportDuplicateBNodes.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportGraphBind.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportGraphBind.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportGraphBind.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportGraphBind.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportPathCycles.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportPathCycles.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportPathCycles.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportPathCycles.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportReifierRemove.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportReifierRemove.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportReifierRemove.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportReifierRemove.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteService.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteService.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteService.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteService.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -16,35 +16,35 @@
  * limitations under the License.
  */
 
-package reports.archive;
-
-import com.hp.hpl.jena.query.QueryExecution ;
-import com.hp.hpl.jena.query.QueryExecutionFactory ;
-import com.hp.hpl.jena.query.ResultSet ;
-import com.hp.hpl.jena.query.ResultSetFormatter ;
-
-public class ReportRemoteService
-{
-    public static void main(String...argv)
-    {
-        System.out.println();
-        
-        // "snorql" is the web form, "sparql" is the service endpoint
-        
-        String service="http://www4.wiwiss.fu-berlin.de/dblp/sparql"; // or http://dblp.l3s.de/d2r/snorql/
-        String query="select distinct ?Concept where {[] a ?Concept}";
-        
-        System.out.println("Remote: "+service);
-
-        QueryExecution e = QueryExecutionFactory. sparqlService(service, query);
-        try {
-            ResultSet results = e.execSelect();
-            ResultSetFormatter.out(results) ;
-        }
-
-        finally {
-            System.out.println("closing!" );
-            e.close() ;
-        }
-    }
+package reports.archive;
+
+import com.hp.hpl.jena.query.QueryExecution ;
+import com.hp.hpl.jena.query.QueryExecutionFactory ;
+import com.hp.hpl.jena.query.ResultSet ;
+import com.hp.hpl.jena.query.ResultSetFormatter ;
+
+public class ReportRemoteService
+{
+    public static void main(String...argv)
+    {
+        System.out.println();
+        
+        // "snorql" is the web form, "sparql" is the service endpoint
+        
+        String service="http://www4.wiwiss.fu-berlin.de/dblp/sparql"; // or http://dblp.l3s.de/d2r/snorql/
+        String query="select distinct ?Concept where {[] a ?Concept}";
+        
+        System.out.println("Remote: "+service);
+
+        QueryExecution e = QueryExecutionFactory. sparqlService(service, query);
+        try {
+            ResultSet results = e.execSelect();
+            ResultSetFormatter.out(results) ;
+        }
+
+        finally {
+            System.out.println("closing!" );
+            e.close() ;
+        }
+    }
 }

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteVirtuoso.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteVirtuoso.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteVirtuoso.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportRemoteVirtuoso.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportServiceVarRename.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportServiceVarRename.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportServiceVarRename.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportServiceVarRename.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information

Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportSlowDatatype.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportSlowDatatype.java?rev=1198737&r1=1198736&r2=1198737&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportSlowDatatype.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportSlowDatatype.java Mon Nov  7 13:55:23 2011
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -16,53 +16,53 @@
  * limitations under the License.
  */
 
-package reports.archive;
-
-import com.hp.hpl.jena.query.Query ;
-import com.hp.hpl.jena.query.QueryExecution ;
-import com.hp.hpl.jena.query.QueryExecutionFactory ;
-import com.hp.hpl.jena.query.QueryFactory ;
-import com.hp.hpl.jena.rdf.model.Model ;
-import com.hp.hpl.jena.sparql.util.QueryExecUtils ;
-import com.hp.hpl.jena.sparql.util.Timer ;
-import com.hp.hpl.jena.util.FileManager ;
-
-public class ReportSlowDatatype
-{
-    public static void main(String...argv)
-    {
-        Model model = FileManager.get().loadModel("tmp/holger-test.ttl") ;
-        
-        Query q1 = QueryFactory.read("tmp/Q1.rq") ;
-        System.out.println(q1) ;
-        Query q2 = QueryFactory.read("tmp/Q2.rq") ;
-        System.out.println(q2) ;
-
-        exec(q1, model) ;
-        exec(q2, model) ;
-        
-        System.out.println("----") ;
-        
-        execTimed(q1, model) ;
-        execTimed(q2, model) ;
-    }
-    
-    private static void exec(Query query, Model model)
-    {
-        QueryExecution qexec = QueryExecutionFactory.create(query, model) ;
-        QueryExecUtils.executeQuery(query, qexec) ;
-    }
-    
-    private static void execTimed(Query query, Model model)
-    {
-//        System.out.println(ARQ.VERSION); 
-//        System.out.println(Jena.VERSION); 
-
-        Timer timer = new Timer() ;
-        timer.startTimer() ;
-        exec(query, model) ;
-        long time = timer.endTimer() ;
-        System.out.printf("Time = %.2fs\n", time/1000.0) ;
-    }
-    
+package reports.archive;
+
+import com.hp.hpl.jena.query.Query ;
+import com.hp.hpl.jena.query.QueryExecution ;
+import com.hp.hpl.jena.query.QueryExecutionFactory ;
+import com.hp.hpl.jena.query.QueryFactory ;
+import com.hp.hpl.jena.rdf.model.Model ;
+import com.hp.hpl.jena.sparql.util.QueryExecUtils ;
+import com.hp.hpl.jena.sparql.util.Timer ;
+import com.hp.hpl.jena.util.FileManager ;
+
+public class ReportSlowDatatype
+{
+    public static void main(String...argv)
+    {
+        Model model = FileManager.get().loadModel("tmp/holger-test.ttl") ;
+        
+        Query q1 = QueryFactory.read("tmp/Q1.rq") ;
+        System.out.println(q1) ;
+        Query q2 = QueryFactory.read("tmp/Q2.rq") ;
+        System.out.println(q2) ;
+
+        exec(q1, model) ;
+        exec(q2, model) ;
+        
+        System.out.println("----") ;
+        
+        execTimed(q1, model) ;
+        execTimed(q2, model) ;
+    }
+    
+    private static void exec(Query query, Model model)
+    {
+        QueryExecution qexec = QueryExecutionFactory.create(query, model) ;
+        QueryExecUtils.executeQuery(query, qexec) ;
+    }
+    
+    private static void execTimed(Query query, Model model)
+    {
+//        System.out.println(ARQ.VERSION); 
+//        System.out.println(Jena.VERSION); 
+
+        Timer timer = new Timer() ;
+        timer.startTimer() ;
+        exec(query, model) ;
+        long time = timer.endTimer() ;
+        System.out.printf("Time = %.2fs\n", time/1000.0) ;
+    }
+    
 }