Author: buildbot
Date: Sun Oct 16 10:59:24 2016
New Revision: 999509

Log:
Staging update by buildbot for jena

Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/io/rdf-output.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Oct 16 10:59:24 2016
@@ -1 +1 @@
-1763896
+1765139

Modified: websites/staging/jena/trunk/content/documentation/io/rdf-output.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/io/rdf-output.html 
(original)
+++ websites/staging/jena/trunk/content/documentation/io/rdf-output.html Sun 
Oct 16 10:59:24 2016
@@ -155,8 +155,7 @@
   visibility: hidden;
 }
 h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, 
h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, 
dt:hover > .elementid-permalink { visibility: visible }</style>
-<p>This page describes the RIOT (RDF I/O technology) output capabilities
-introduced in Jena 2.10.1.</p>
+<p>This page describes the RIOT (RDF I/O technology) output capabilities.</p>
 <p>See <a href="rdf-input.html">Reading RDF</a> for details of the RIOT Reader 
system.</p>
 <ul>
 <li><a href="#api">API</a></li>
@@ -168,6 +167,7 @@ introduced in Jena 2.10.1.</p>
 <li><a href="#streamed-block-formats">Streamed Block Formats</a></li>
 <li><a href="#line-printed-formats">Line printed formats</a></li>
 <li><a href="#n-triples-and-n-quads">N-Triples and N-Quads</a></li>
+<li><a href="#json-ld">JSON-LD</a></li>
 <li><a href="#rdf-thrift">RDF Binary</a></li>
 <li><a href="#rdfxml">RDF/XML</a></li>
 <li><a href="#examples">Examples</a></li>
@@ -201,11 +201,11 @@ are available as part of the standard se
 <ul>
 <li>Turtle</li>
 <li>N-Triples</li>
-<li>RDF/XML</li>
+<li>NQuads</li>
+<li>TriG</li>
 <li>JSON-LD</li>
+<li>RDF/XML</li>
 <li>RDF/JSON</li>
-<li>TriG</li>
-<li>NQuads</li>
 <li>TriX</li>
 <li>RDF Binary</li>
 </ul>
@@ -534,8 +534,6 @@ needing any writer state.</p>
 </table>
 <p>&nbsp;</p>
 
-<p><small>Introduced in version: Jena 2.10.2</small></p>
-
 <p>The main N-Triples and N-Quads writers follow RDF 1.1 and output using 
UTF-8.<br />
 For compatibility with old software, writers are provided that output
 in ASCII (using <code>\u</code> escape sequences for non-ASCI characters where 
necessary).</p>
@@ -554,6 +552,51 @@ in ASCII (using <code>\u</code> escape s
 </tr>
 </tbody>
 </table>
+<h3 id="json-ld">JSON-LD<a class="headerlink" href="#json-ld" title="Permanent 
link">&para;</a></h3>
+<p>JSON-LD output is supported, in its various flavors 
+("compacted", "expanded", "flattened", "framed"), 
+by using one of the following RDFFormats:</p>
+<table class="table">
+<thead>
+<tr>
+<th>RDFFormat</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>JSONLD_EXPAND_PRETTY</td>
+</tr>
+<tr>
+<td>JSONLD_EXPAND_FLAT</td>
+</tr>
+<tr>
+<td>JSONLD_COMPACT_PRETTY</td>
+</tr>
+<tr>
+<td>JSONLD_COMPACT_FLAT</td>
+</tr>
+<tr>
+<td>JSONLD_FLATTEN_PRETTY</td>
+</tr>
+<tr>
+<td>JSONLD_FLATTEN_FLAT</td>
+</tr>
+<tr>
+<td>JSONLD_FRAME_PRETTY</td>
+</tr>
+<tr>
+<td>JSONLD_FRAME_FLAT</td>
+</tr>
+</tbody>
+</table>
+<p>Teh default registration for <code>JSONLD</code> is 
<code>JSONLD_PRETTY</code> and
+<code>JSONLD_PRETTY</code> is identical to 
<code>JSONLD_COMPACT_PRETTY</code>.</p>
+<p>Output can be customized, passing more info to the writer by using the
+"Context" mechanism provided by Jena.  The same mechanism is used to
+pass the "frame" in the <code>JSONLD_FRAME_PRETTY</code> and 
<code>JSONLD_FRAME_FLAT</code>
+cases.</p>
+<p>What can be done, and how it can be, is explained in the 
+<a 
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExJsonLD.java";>sample
 code</a>.</p>
 <h3 id="rdf-binary">RDF Binary<a class="headerlink" href="#rdf-binary" 
title="Permanent link">&para;</a></h3>
 <p><a href="rdf-binary.html">This is a binary encoding</a> using 
 <a href="https://thrift.apache.org/";>Apache Thrift</a> for RDF Graphs


Reply via email to