jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1003355 - in /websites/staging/jena/trunk/content: ./ documentation/notes/rdfconnection.html
Date Fri, 23 Dec 2016 17:54:04 GMT
Author: buildbot
Date: Fri Dec 23 17:54:03 2016
New Revision: 1003355

Staging update by buildbot for jena

    websites/staging/jena/trunk/content/   (props changed)

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

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>
 <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=""</p>
-<p>SOH</a>. It is possible to write curl scripts as well.  The SPARQL Graph
+line with 
+<a href="">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>
 <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
@@ -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>
-<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
 <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

View raw message