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 2013/01/24 15:01:19 UTC

svn commit: r1438002 - /jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java

Author: andy
Date: Thu Jan 24 14:01:19 2013
New Revision: 1438002

URL: http://svn.apache.org/viewvc?rev=1438002&view=rev
Log:
Fix compilation problems : variables used in inner anonclass not final : name of class not as the name of the file

Modified:
    jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java

Modified: jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java?rev=1438002&r1=1438001&r2=1438002&view=diff
==============================================================================
--- jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java (original)
+++ jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java Thu Jan 24 14:01:19 2013
@@ -18,37 +18,29 @@
 
 package arq.examples.riot;
 
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
+import java.util.concurrent.ExecutorService ;
+import java.util.concurrent.Executors ;
 
-import org.apache.jena.atlas.lib.Sink;
-import org.apache.jena.riot.RDFDataMgr;
-import org.apache.jena.riot.lang.StreamedTriplesIterator;
-import org.apache.jena.riot.out.SinkTripleOutput;
-import org.apache.jena.riot.system.StreamRDF;
-import org.apache.jena.riot.system.StreamRDFBase;
-import org.apache.jena.riot.system.SyntaxLabels;
-
-import com.hp.hpl.jena.graph.Node;
-import com.hp.hpl.jena.graph.Triple;
-import com.hp.hpl.jena.rdf.model.Property;
-import com.hp.hpl.jena.sparql.vocabulary.FOAF;
+import org.apache.jena.riot.RDFDataMgr ;
+import org.apache.jena.riot.lang.StreamedTriplesIterator ;
+
+import com.hp.hpl.jena.graph.Triple ;
 
 /** Example of using RIOT : iterate over output of parser run */
-public class ExRIOT_5 {
+public class ExRIOT_6 {
 
     public static void main(String... argv) {
         // Not needed here as we are using RIOT itself via RDFDataMgr, not
         // indirectly.
         // RIOT.init() ;
 
-        String filename = "data.ttl";
+        final String filename = "data.ttl";
 
         // Create a StreamedTriplesIterator, this doubles as both a StreamRDF
         // for parser output and an iterator for our consumption
         // You can optionally supply a buffer size here, see the documentation
         // for details about recommended buffer sizes
-        StreamedTriplesIterator iter = new StreamedTriplesIterator();
+        final StreamedTriplesIterator iter = new StreamedTriplesIterator();
 
         // The classes derived from StreamedRDFIterator such as this are
         // fully thread safe so the parser and the consumer of the iterator