You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by bu...@apache.org on 2016/05/10 07:28:27 UTC

svn commit: r987885 - in /websites/staging/jena/trunk/content: ./ documentation/io/rdf-input.html

Author: buildbot
Date: Tue May 10 07:28:27 2016
New Revision: 987885

Log:
Staging update by buildbot for jena

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

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue May 10 07:28:27 2016
@@ -1 +1 @@
-1741059
+1743112

Modified: websites/staging/jena/trunk/content/documentation/io/rdf-input.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/io/rdf-input.html (original)
+++ websites/staging/jena/trunk/content/documentation/io/rdf-input.html Tue May 10 07:28:27 2016
@@ -294,8 +294,11 @@ as:</p>
 
 <h3 id="example-1-common-usage">Example 1 : Common usage<a class="headerlink" href="#example-1-common-usage" title="Permanent link">&para;</a></h3>
 <p>In this example, a file in the current directory is read as Turtle.</p>
-<p>Model model = ModelFactory.createDefaultModel() ;
-  model.read("data.ttl") ;</p>
+<div class="codehilite"><pre><span class="n">Model</span> <span class="n">model</span> <span class="p">=</span> <span class="n">ModelFactory</span><span class="p">.</span><span class="n">createDefaultModel</span><span class="p">()</span> <span class="p">;</span>
+<span class="n">model</span><span class="p">.</span><span class="n">read</span><span class="p">(</span>&quot;<span class="n">data</span><span class="p">.</span><span class="n">ttl</span>&quot;<span class="p">)</span> <span class="p">;</span>
+</pre></div>
+
+
 <p>If the syntax is not as the file extension, a language can be declared:</p>
 <div class="codehilite"><pre><span class="n">model</span><span class="p">.</span><span class="n">read</span><span class="p">(</span>&quot;<span class="n">data</span><span class="p">.</span><span class="n">foo</span>&quot;<span class="p">,</span> &quot;<span class="n">TURTLE</span>&quot;<span class="p">)</span> <span class="p">;</span>
 </pre></div>