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 2014/07/02 23:23:20 UTC

svn commit: r1607483 - /jena/site/trunk/content/documentation/io/rdf-output.mdtext

Author: andy
Date: Wed Jul  2 21:23:19 2014
New Revision: 1607483

URL: http://svn.apache.org/r1607483
Log:
JENA-735 - improve text about using model.write.

Modified:
    jena/site/trunk/content/documentation/io/rdf-output.mdtext

Modified: jena/site/trunk/content/documentation/io/rdf-output.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/io/rdf-output.mdtext?rev=1607483&r1=1607482&r2=1607483&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/io/rdf-output.mdtext (original)
+++ jena/site/trunk/content/documentation/io/rdf-output.mdtext Wed Jul  2 21:23:19 2014
@@ -7,7 +7,7 @@ See [Reading RDF](rdf-input.html) for de
 
 - [API](#API)
 - [`RDFFormat`](#rdfformat)
-- [`RDFFormat`s and Jena syntax names](#rdfformats-and-jena-syntax-names)
+- [`RDFFormat`s and Jena syntax names](#jena_model_write_formats)
 - [Formats](#formats)
   - [Normal Printing](#normal-printing)
   - [Pretty Printed Languages](#pretty-printed-languages)
@@ -26,15 +26,16 @@ for details of the Jena RDF/XML writer.
 There are two ways to write RDF data using Apache Jena RIOT, 
 either via the `RDFDataMgr` 
 
+    RDFDataMgr.write(OutputStream, Model, Lang) ;
+    RDFDataMgr.write(OutputStream, Dataset, Lang) ;
     RDFDataMgr.write(OutputStream, Model, RDFFormat) ;
     RDFDataMgr.write(OutputStream, Dataset, RDFFormat) ;
 
-or using the `model` API, where there is a limited set of format names
-(only for the formats which have Jena writer name):
+or the legacy way using the `model` API, where there is a limited set of `"format"` names
 
     model.write(output, "format") ;
 
-The *`format`* names are [described below](#jena_formats); they are a superset of the
+The *`format`* names are [described below](#jena_model_write_formats); they include the
 names Jena has supported before RIOT.
 
 Many variations of these methods exist.  See the full javadoc for details.
@@ -66,7 +67,7 @@ Note:
 * RDF/JSON is not JSON-LD. See the [description of RDF/JSON](rdf-json.html).
 * N3 is treated as Turtle for output.
 
-## `RDFFormat`s and Jena syntax names {#jena_formats}
+## `RDFFormat`s and Jena syntax names {#jena_model_write_formats}
 
 The string name traditionally used in `model.write` is mapped to RIOT `RDFFormat`
 as follows: