jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1444562 - in /jena/Experimental/riot-output/src/main/java: dev/ riot/ riot/system/ riot/writer/
Date Sun, 10 Feb 2013 16:29:05 GMT
Author: andy
Date: Sun Feb 10 16:29:04 2013
New Revision: 1444562

URL: http://svn.apache.org/r1444562
Log:
Refactor to move necessary classes out of the public API package.

Added:
    jena/Experimental/riot-output/src/main/java/dev/IO_Ctl.java
    jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOT.java
      - copied unchanged from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOT.java
    jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTFactory.java
      - copied unchanged from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTFactory.java
    jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOT.java
      - copied unchanged from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOT.java
    jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTFactory.java
      - copied unchanged from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTFactory.java
    jena/Experimental/riot-output/src/main/java/riot/writer/WriterDatasetRIOTBase.java
      - copied, changed from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTBase.java
    jena/Experimental/riot-output/src/main/java/riot/writer/WriterGraphRIOTBase.java
      - copied, changed from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTBase.java
Removed:
    jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTBase.java
    jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTBase.java
    jena/Experimental/riot-output/src/main/java/riot/system/IndentedWriterWriter.java
Modified:
    jena/Experimental/riot-output/src/main/java/dev/ExRIOT_out3.java
    jena/Experimental/riot-output/src/main/java/dev/MainWriter.java
    jena/Experimental/riot-output/src/main/java/riot/RDFWriterRegistry.java
    jena/Experimental/riot-output/src/main/java/riot/system/RiotLib.java
    jena/Experimental/riot-output/src/main/java/riot/writer/NQuadsWriter.java
    jena/Experimental/riot-output/src/main/java/riot/writer/NTriplesWriter.java
    jena/Experimental/riot-output/src/main/java/riot/writer/RDFJSONWriter.java
    jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLAbbrevWriter.java
    jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLPlainWriter.java
    jena/Experimental/riot-output/src/main/java/riot/writer/TriGWriterBase.java
    jena/Experimental/riot-output/src/main/java/riot/writer/TurtleWriterBase.java
    jena/Experimental/riot-output/src/main/java/riot/writer/WriterStreamRDF.java

Modified: jena/Experimental/riot-output/src/main/java/dev/ExRIOT_out3.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/dev/ExRIOT_out3.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/dev/ExRIOT_out3.java (original)
+++ jena/Experimental/riot-output/src/main/java/dev/ExRIOT_out3.java Sun Feb 10 16:29:04 2013
@@ -25,7 +25,8 @@ import org.apache.jena.atlas.io.Indented
 import org.apache.jena.riot.* ;
 import org.apache.jena.riot.system.PrefixMap ;
 import riot.* ;
-import riot.system.IndentedWriterWriter ;
+import riot.system.RiotLib ;
+import riot.writer.WriterGraphRIOTBase ;
 
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.rdf.model.Model ;
@@ -92,7 +93,7 @@ public class ExRIOT_out3
         public void write(Writer out, Graph graph, PrefixMap prefixMap, String baseURI)
         {
             // Writers are discouraged : just hoe the charset is UTF-8.
-            IndentedWriter x = IndentedWriterWriter.create(out) ;
+            IndentedWriter x = RiotLib.create(out) ;
             SSE.write(x, graph) ;
         }
 

Added: jena/Experimental/riot-output/src/main/java/dev/IO_Ctl.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/dev/IO_Ctl.java?rev=1444562&view=auto
==============================================================================
--- jena/Experimental/riot-output/src/main/java/dev/IO_Ctl.java (added)
+++ jena/Experimental/riot-output/src/main/java/dev/IO_Ctl.java Sun Feb 10 16:29:04 2013
@@ -0,0 +1,62 @@
+/**
+ * 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
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package dev;
+
+
+public class IO_Ctl
+{
+    private static volatile boolean initialized = false ;
+    private static final Object initLock = new Object() ;
+    public static void init()
+    {
+        if ( initialized )
+            return ;
+        synchronized(initLock)
+        {
+            initialized = true ;
+//            RDFReaderFImpl.init();
+//            RDFWriterFImpl.init();
+            initByRefection("org.apache.jena.riot.RIOT") ;
+        }
+    }
+
+    // Initialize a class - assumes a () constructor
+    // This is safer than a reflection call to a static init
+    // which does not initialize all the class statics first.
+    private static void initByRefection(String className)
+    {
+        //System.err.println("INIT 1") ;
+        Class<? > cmd = null ;
+        try { cmd = Class.forName(className) ; }
+        catch (ClassNotFoundException ex) {
+            // System.err.println(className+" not on the classpath") ;
+            return ;
+        }
+        
+        try { cmd.newInstance() ; }
+        catch (IllegalAccessException ex) {
+            System.err.println("IllegalAccessException exception: " + ex.getMessage()) ;
+        }
+        catch (InstantiationException e) {
+            e.printStackTrace() ;
+        }
+        //System.err.println("INIT 2") ;
+    }
+}
+

Modified: jena/Experimental/riot-output/src/main/java/dev/MainWriter.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/dev/MainWriter.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/dev/MainWriter.java (original)
+++ jena/Experimental/riot-output/src/main/java/dev/MainWriter.java Sun Feb 10 16:29:04 2013
@@ -42,11 +42,21 @@ import com.hp.hpl.jena.rdf.model.ModelFa
 import com.hp.hpl.jena.shared.PrefixMapping ;
 import com.hp.hpl.jena.sparql.core.DatasetGraph ;
 import com.hp.hpl.jena.sparql.core.Quad ;
+import com.hp.hpl.jena.util.FileManager ;
 
 public class MainWriter
 {
     public static void main(String ...args)
     {
+        //RIOT.init() ;
+        
+        Model m = FileManager.get().loadModel("D.ttl") ;
+        //Model m = ModelFactory.createDefaultModel() ;
+        m.read("D.ttl", "TTL") ;
+        
+        System.out.println("DONE") ;
+        System.exit(0) ;
+        
         Dataset ds = RDFDataMgr.loadDataset("D.ttl") ;
         RDFWriterMgr.write(System.out, ds, Lang.TRIG) ;
         System.out.println("DONE") ;

Modified: jena/Experimental/riot-output/src/main/java/riot/RDFWriterRegistry.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/RDFWriterRegistry.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/RDFWriterRegistry.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/RDFWriterRegistry.java Sun Feb 10 16:29:04
2013
@@ -30,6 +30,7 @@ import org.apache.jena.riot.RIOT ;
 import org.apache.jena.riot.RiotException ;
 import org.apache.jena.riot.system.PrefixMap ;
 import riot.system.RiotLib ;
+import riot.writer.WriterGraphRIOTBase ;
 
 import com.hp.hpl.jena.graph.Graph ;
 
@@ -119,44 +120,43 @@ public class RDFWriterRegistry
     }} ;
 
      public static void init() {}
-    
      static { init$() ; }
-    private static void init$()
-    {
-        // Language to format.
-        register(RDFLanguages.TURTLE, RDFFormat.Turtle) ;
-        register(RDFLanguages.N3, RDFFormat.Turtle) ;
-        register(RDFLanguages.NTRIPLES, RDFFormat.NTriples) ;
-        register(RDFLanguages.RDFXML, RDFFormat.RDFXML) ;
-        register(RDFLanguages.RDFJSON, RDFFormat.RDFJSON) ;
-        
-        register(RDFLanguages.TRIG, RDFFormat.Trig) ;
-        register(RDFLanguages.NQUADS, RDFFormat.NQuads) ;
-
-        // Wrietr factories.
-        register(RDFFormat.TurtlePretty,  wgfactory) ;
-        register(RDFFormat.TurtleBlocks,  wgfactory) ;
-        register(RDFFormat.TurtleFlat,    wgfactory) ;
-        
-        register(RDFFormat.NTriples,      wgfactory) ;
-        register(RDFFormat.RDFJSON,       wgfactory) ;
+     private static void init$()
+     {
+         // Language to format.
+         register(RDFLanguages.TURTLE, RDFFormat.Turtle) ;
+         register(RDFLanguages.N3, RDFFormat.Turtle) ;
+         register(RDFLanguages.NTRIPLES, RDFFormat.NTriples) ;
+         register(RDFLanguages.RDFXML, RDFFormat.RDFXML) ;
+         register(RDFLanguages.RDFJSON, RDFFormat.RDFJSON) ;
+
+         register(RDFLanguages.TRIG, RDFFormat.Trig) ;
+         register(RDFLanguages.NQUADS, RDFFormat.NQuads) ;
+
+         // Wrietr factories.
+         register(RDFFormat.TurtlePretty,  wgfactory) ;
+         register(RDFFormat.TurtleBlocks,  wgfactory) ;
+         register(RDFFormat.TurtleFlat,    wgfactory) ;
+
+         register(RDFFormat.NTriples,      wgfactory) ;
+         register(RDFFormat.RDFJSON,       wgfactory) ;
+
+         register(RDFFormat.RDFXMLPretty,  wgfactory) ;
+         register(RDFFormat.RDFXMLPlain,   wgfactory) ;
+
+         register(RDFFormat.TrigPretty,    wgfactory) ;
+         register(RDFFormat.TrigBlocks,    wgfactory) ;
+         register(RDFFormat.TrigFlat,      wgfactory) ;
+
+         register(RDFFormat.NQuads,        wgfactory) ;
+
+         register(RDFFormat.TrigPretty,    wdsfactory) ;
+         register(RDFFormat.TrigBlocks,    wdsfactory) ;
+         register(RDFFormat.TrigFlat,      wdsfactory) ;
 
-        register(RDFFormat.RDFXMLPretty,  wgfactory) ;
-        register(RDFFormat.RDFXMLPlain,   wgfactory) ;
+         register(RDFFormat.NQuads,        wdsfactory) ;
 
-        register(RDFFormat.TrigPretty,    wgfactory) ;
-        register(RDFFormat.TrigBlocks,    wgfactory) ;
-        register(RDFFormat.TrigFlat,      wgfactory) ;
-        
-        register(RDFFormat.NQuads,        wgfactory) ;
-        
-        register(RDFFormat.TrigPretty,    wdsfactory) ;
-        register(RDFFormat.TrigBlocks,    wdsfactory) ;
-        register(RDFFormat.TrigFlat,      wdsfactory) ;
-        
-        register(RDFFormat.NQuads,        wdsfactory) ;
-
-    }
+     }
     
     public static void register(RDFFormat serialization, WriterGraphRIOTFactory wfactory)
     {

Modified: jena/Experimental/riot-output/src/main/java/riot/system/RiotLib.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/system/RiotLib.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/system/RiotLib.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/system/RiotLib.java Sun Feb 10 16:29:04
2013
@@ -20,6 +20,7 @@ package riot.system;
 
 import static riot.writer.WriterConst.PREFIX_IRI ;
 
+import java.io.Writer ;
 import java.util.ArrayList ;
 import java.util.Collection ;
 import java.util.List ;
@@ -113,6 +114,13 @@ public class RiotLib
     {
         return PrefixMapFactory.create(dsg.getDefaultGraph().getPrefixMapping()) ;
     }
+    
+    private static class IndentedWriterWriter extends IndentedWriter
+    {
+        IndentedWriterWriter(Writer w) { super(w) ; }
+    }
+
+    public static IndentedWriter create(Writer writer) { return new IndentedWriterWriter(writer)
; }
 
 }
 

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/NQuadsWriter.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/NQuadsWriter.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/NQuadsWriter.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/NQuadsWriter.java Sun Feb 10 16:29:04
2013
@@ -26,7 +26,6 @@ import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
 import org.apache.jena.riot.system.StreamRDF ;
 import org.apache.jena.riot.system.StreamRDFLib ;
-import riot.WriterDatasetRIOTBase ;
 
 import com.hp.hpl.jena.sparql.core.DatasetGraph ;
 import com.hp.hpl.jena.sparql.core.Quad ;

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/NTriplesWriter.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/NTriplesWriter.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/NTriplesWriter.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/NTriplesWriter.java Sun Feb 10
16:29:04 2013
@@ -26,7 +26,6 @@ import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
 import org.apache.jena.riot.system.StreamRDF ;
 import org.apache.jena.riot.system.StreamRDFLib ;
-import riot.WriterGraphRIOTBase ;
 
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.graph.Triple ;

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/RDFJSONWriter.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/RDFJSONWriter.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/RDFJSONWriter.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/RDFJSONWriter.java Sun Feb 10
16:29:04 2013
@@ -31,7 +31,6 @@ import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
 import org.apache.jena.riot.system.Prologue ;
 import org.apache.jena.riot.system.SyntaxLabels ;
-import riot.WriterGraphRIOTBase ;
 
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.graph.GraphUtil ;

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLAbbrevWriter.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLAbbrevWriter.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLAbbrevWriter.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLAbbrevWriter.java Sun Feb
10 16:29:04 2013
@@ -23,7 +23,6 @@ import java.io.Writer ;
 
 import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
-import riot.WriterGraphRIOTBase ;
 
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.rdf.model.ModelFactory ;

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLPlainWriter.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLPlainWriter.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLPlainWriter.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/RDFXMLPlainWriter.java Sun Feb
10 16:29:04 2013
@@ -23,7 +23,6 @@ import java.io.Writer ;
 
 import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
-import riot.WriterGraphRIOTBase ;
 
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.rdf.model.ModelFactory ;

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/TriGWriterBase.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/TriGWriterBase.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/TriGWriterBase.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/TriGWriterBase.java Sun Feb 10
16:29:04 2013
@@ -24,8 +24,7 @@ import java.io.Writer ;
 import org.apache.jena.atlas.io.IndentedWriter ;
 import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
-import riot.WriterDatasetRIOTBase ;
-import riot.system.IndentedWriterWriter ;
+import riot.system.RiotLib ;
 
 import com.hp.hpl.jena.sparql.core.DatasetGraph ;
 
@@ -41,7 +40,7 @@ public abstract class TriGWriterBase ext
     @Override
     public void write(Writer out, DatasetGraph dsg, PrefixMap prefixMap, String baseURI)
     {
-        IndentedWriter iOut = IndentedWriterWriter.create(out) ;
+        IndentedWriter iOut = RiotLib.create(out) ;
         output$(iOut, dsg, prefixMap, baseURI) ;
         iOut.flush() ;
     }

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/TurtleWriterBase.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/TurtleWriterBase.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/TurtleWriterBase.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/TurtleWriterBase.java Sun Feb
10 16:29:04 2013
@@ -24,8 +24,7 @@ import java.io.Writer ;
 import org.apache.jena.atlas.io.IndentedWriter ;
 import org.apache.jena.riot.Lang ;
 import org.apache.jena.riot.system.PrefixMap ;
-import riot.WriterGraphRIOTBase ;
-import riot.system.IndentedWriterWriter ;
+import riot.system.RiotLib ;
 
 import com.hp.hpl.jena.graph.Graph ;
 
@@ -40,7 +39,7 @@ public abstract class TurtleWriterBase e
     @Override
     public void write(Writer out, Graph graph, PrefixMap prefixMap, String baseURI)
     {
-        IndentedWriter iOut = IndentedWriterWriter.create(out) ;
+        IndentedWriter iOut = RiotLib.create(out) ;
         output$(iOut, graph, prefixMap, baseURI) ;
         iOut.flush() ;
     }

Copied: jena/Experimental/riot-output/src/main/java/riot/writer/WriterDatasetRIOTBase.java
(from r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTBase.java)
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/WriterDatasetRIOTBase.java?p2=jena/Experimental/riot-output/src/main/java/riot/writer/WriterDatasetRIOTBase.java&p1=jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTBase.java&r1=1444417&r2=1444562&rev=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/WriterDatasetRIOTBase.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/WriterDatasetRIOTBase.java Sun
Feb 10 16:29:04 2013
@@ -16,13 +16,14 @@
  * limitations under the License.
  */
 
-package riot;
+package riot.writer;
 
 import java.io.OutputStream ;
 import java.io.Writer ;
 
 import org.apache.jena.riot.system.PrefixMap ;
 import org.apache.jena.riot.system.PrefixMapFactory ;
+import riot.WriterDatasetRIOT ;
 
 import com.hp.hpl.jena.sparql.core.DatasetGraph ;
 

Copied: jena/Experimental/riot-output/src/main/java/riot/writer/WriterGraphRIOTBase.java (from
r1444417, jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTBase.java)
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/WriterGraphRIOTBase.java?p2=jena/Experimental/riot-output/src/main/java/riot/writer/WriterGraphRIOTBase.java&p1=jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTBase.java&r1=1444417&r2=1444562&rev=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/WriterGraphRIOTBase.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/WriterGraphRIOTBase.java Sun Feb
10 16:29:04 2013
@@ -16,13 +16,14 @@
  * limitations under the License.
  */
 
-package riot;
+package riot.writer;
 
 import java.io.OutputStream ;
 import java.io.Writer ;
 
 import org.apache.jena.riot.system.PrefixMap ;
 import org.apache.jena.riot.system.PrefixMapFactory ;
+import riot.WriterGraphRIOT ;
 
 import com.hp.hpl.jena.graph.Graph ;
 

Modified: jena/Experimental/riot-output/src/main/java/riot/writer/WriterStreamRDF.java
URL: http://svn.apache.org/viewvc/jena/Experimental/riot-output/src/main/java/riot/writer/WriterStreamRDF.java?rev=1444562&r1=1444561&r2=1444562&view=diff
==============================================================================
--- jena/Experimental/riot-output/src/main/java/riot/writer/WriterStreamRDF.java (original)
+++ jena/Experimental/riot-output/src/main/java/riot/writer/WriterStreamRDF.java Sun Feb 10
16:29:04 2013
@@ -31,7 +31,7 @@ import org.apache.jena.riot.system.Prefi
 import org.apache.jena.riot.system.PrefixMapFactory ;
 import org.apache.jena.riot.system.StreamRDF ;
 import riot.out.NodeFormatterTTL ;
-import riot.system.IndentedWriterWriter ;
+import riot.system.RiotLib ;
 
 import com.hp.hpl.jena.graph.Node ;
 import com.hp.hpl.jena.graph.Triple ;
@@ -111,7 +111,7 @@ public abstract class WriterStreamRDF im
     { 
         if ( ! ( output instanceof BufferedWriter ) )
             output = new BufferedWriter(output, 32*1024) ;
-        out = IndentedWriterWriter.create(output) ;
+        out = RiotLib.create(output) ;
         pMap = PrefixMapFactory.create() ;
         fmt = new NodeFormatterTTL(null, pMap, NodeToLabel.createScopeByDocument()) ; 
     }



Mime
View raw message