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/12/23 17:54:04 UTC

svn commit: r1003355 - in /websites/staging/jena/trunk/content: ./ documentation/notes/rdfconnection.html

Author: buildbot
Date: Fri Dec 23 17:54:03 2016
New Revision: 1003355

Log:
Staging update by buildbot for jena

Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/notes/rdfconnection.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Dec 23 17:54:03 2016
@@ -1 +1 @@
-1775862
+1775864

Modified: websites/staging/jena/trunk/content/documentation/notes/rdfconnection.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/notes/rdfconnection.html (original)
+++ websites/staging/jena/trunk/content/documentation/notes/rdfconnection.html Fri Dec 23 17:54:03 2016
@@ -257,18 +257,20 @@ Store Protocol</a> (GSP) is a set of ope
 dataset.  It provides a standardised way to manage the data in a dataset.</p>
 <p>The operations are to fetch a graph, set the RDF data in a graph,
 add more RDF data into a graph, and delete a graph from a dataset.</p>
-<p>For example: load two files:
-    try ( RDFConnection conn = RDFConnectionFactory.connect(...) ) {
-        conn.load("data1.ttl") ;
-        conn.load("data2.nt") ;
-      } </p>
+<p>For example: load two files:</p>
+<div class="codehilite"><pre><span class="k">try</span> <span class="p">(</span> <span class="n">RDFConnection</span> <span class="n">conn</span> <span class="p">=</span> <span class="n">RDFConnectionFactory</span><span class="p">.</span><span class="n">connect</span><span class="p">(...)</span> <span class="p">)</span> <span class="p">{</span>
+    <span class="n">conn</span><span class="p">.</span><span class="n">load</span><span class="p">(</span>&quot;<span class="n">data1</span><span class="p">.</span><span class="n">ttl</span>&quot;<span class="p">)</span> <span class="p">;</span>
+    <span class="n">conn</span><span class="p">.</span><span class="n">load</span><span class="p">(</span>&quot;<span class="n">data2</span><span class="p">.</span><span class="n">nt</span>&quot;<span class="p">)</span> <span class="p">;</span>
+  <span class="p">}</span>
+</pre></div>
+
+
 <p>The file extension is used to determine the syntax.</p>
 <p>There is also a set of scripts to help do these operations from the command
-line with &lt;a href="http://jena.apache.org/documentation/fuseki2/soh.html"</p>
-<blockquote>
-<p>SOH</a>. It is possible to write curl scripts as well.  The SPARQL Graph
+line with 
+<a href="http://jena.apache.org/documentation/fuseki2/soh.html">SOH</a>.
+It is possible to write curl scripts as well.  The SPARQL Graph
 Store Protocol provides a standardised way to manage the data in a dataset.</p>
-</blockquote>
 <p>In addition, <code>RDFConnection</code> provides an extension to give the same style
 of operation to work on a whole dataset (deleting the dataset is not
 provided).</p>
@@ -290,7 +292,9 @@ This provides a form of checking for lar
 <li>None &ndash; the models and datasets are passed back with no additional wrappers
 and they can be updated with the changes being made the underlying dataset.</li>
 </ul>
-<p>The default for a local <code>RDFConnection</code> is "none".  </p>
+<p>The default for a local <code>RDFConnection</code> is "none". When used with TDB,
+accessing returned models must be done with <a href="../txn">transactions</a>
+in this mode.</p>
 <h2 id="query-usage">Query Usage<a class="headerlink" href="#query-usage" title="Permanent link">&para;</a></h2>
 <p><code>RDFConnection</code> provides methods for each of the SPARQL query forms (<code>SELECT</code>,
 <code>CONSTRUCT</code>, <code>DESCRIBE</code>, <code>ASK</code>) as well as a way to get the lower level