jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: Update comments on RIOT examples
Date Sun, 26 Apr 2015 20:03:20 GMT
Repository: jena
Updated Branches:
  refs/heads/master adac5ceaf -> 2dbbc9913


Update comments on RIOT examples


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/2dbbc991
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/2dbbc991
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/2dbbc991

Branch: refs/heads/master
Commit: 2dbbc9913564c320d440095840ac73fe394d80ad
Parents: adac5ce
Author: Andy Seaborne <andy@apache.org>
Authored: Sun Apr 26 21:03:15 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sun Apr 26 21:03:15 2015 +0100

----------------------------------------------------------------------
 jena-arq/src-examples/arq/examples/riot/ExRIOT_1.java |  3 +--
 jena-arq/src-examples/arq/examples/riot/ExRIOT_2.java | 10 ++++------
 2 files changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/2dbbc991/jena-arq/src-examples/arq/examples/riot/ExRIOT_1.java
----------------------------------------------------------------------
diff --git a/jena-arq/src-examples/arq/examples/riot/ExRIOT_1.java b/jena-arq/src-examples/arq/examples/riot/ExRIOT_1.java
index 6a6b330..afec982 100644
--- a/jena-arq/src-examples/arq/examples/riot/ExRIOT_1.java
+++ b/jena-arq/src-examples/arq/examples/riot/ExRIOT_1.java
@@ -24,8 +24,7 @@ import org.apache.jena.riot.RDFDataMgr ;
 import org.apache.jena.riot.RDFLanguages ;
 
 /** Example of using RIOT with Jena readers.
- * Normally, the application just needs to call model.read and
- * not interact with RIOT directly. 
+ * An application can use model.read or RDFDataMgr.
  */
 public class ExRIOT_1
 {

http://git-wip-us.apache.org/repos/asf/jena/blob/2dbbc991/jena-arq/src-examples/arq/examples/riot/ExRIOT_2.java
----------------------------------------------------------------------
diff --git a/jena-arq/src-examples/arq/examples/riot/ExRIOT_2.java b/jena-arq/src-examples/arq/examples/riot/ExRIOT_2.java
index 25e87d2..7829a11 100644
--- a/jena-arq/src-examples/arq/examples/riot/ExRIOT_2.java
+++ b/jena-arq/src-examples/arq/examples/riot/ExRIOT_2.java
@@ -29,12 +29,10 @@ import org.apache.jena.riot.system.* ;
 
 /** Example of using RIOT directly.
  * 
- * RDFDataMgr is the general place to read data - see {@link ExRIOT_1}  
+ * RDFDataMgr is the general place to read data.
  * 
- * RiotReader is the place for making parsers and can be used to read
- * from files or InputStreams. It can give more detailed control of error handling
- * and specialised destination of parser output.
- * It does not perform HTTP content negotiation.  
+ * The parsers produce a stream of triples and quads so processing does not need
+ * to hold everything in memory at the same time. See also {@link ExRIOT_4}
  */
 public class ExRIOT_2
 {
@@ -51,7 +49,7 @@ public class ExRIOT_2
         // --- Or create a parser and do the parsing as separate steps.
         String baseURI = "http://example/base" ;
             
-        // It is always better to use an  InputStream, rather than a Java Reader.
+        // It is always better to use an InputStream, rather than a Java Reader.
         // The parsers will do the necessary character set conversion.  
         in = new FileInputStream("data.trig") ;
         


Mime
View raw message