You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by gi...@apache.org on 2022/06/16 11:13:29 UTC

[jena-site] branch asf-site updated: Updated site from main (dd5095fde0cb0f1221cdfe6791b01f7a3fcbaad2)

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/jena-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 521b83b1d Updated site from main (dd5095fde0cb0f1221cdfe6791b01f7a3fcbaad2)
521b83b1d is described below

commit 521b83b1d2fddfedc5c3a6977f63002f3c7c5bfb
Author: jenkins <bu...@apache.org>
AuthorDate: Thu Jun 16 11:13:26 2022 +0000

    Updated site from main (dd5095fde0cb0f1221cdfe6791b01f7a3fcbaad2)
---
 content/documentation/rdfconnection/index.html | 27 +++++++++++++-------------
 content/sitemap.xml                            |  4 ++--
 2 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/content/documentation/rdfconnection/index.html b/content/documentation/rdfconnection/index.html
index e4c34fbe6..6b41be07d 100644
--- a/content/documentation/rdfconnection/index.html
+++ b/content/documentation/rdfconnection/index.html
@@ -195,9 +195,9 @@ passing styles, as well the more basic sequence of methods calls.</p>
 some data, and one to make a query can be written as:</p>
 <pre><code>try ( RDFConnection conn = RDFConnection.connect(...) ) {
     conn.load(&quot;data.ttl&quot;) ;
-    conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs)-&gt;
+    conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs) -&gt; {
        Resource subject = qs.getResource(&quot;s&quot;) ;
-       System.out.println(&quot;Subject: &quot;+subject) ;
+       System.out.println(&quot;Subject: &quot; + subject) ;
     }) ;
 }
 </code></pre>
@@ -210,7 +210,7 @@ ResultSet rs = qExec.execSelect() ;
 while(rs.hasNext()) {
     QuerySolution qs = rs.next() ;
     Resource subject = qs.getResource(&quot;s&quot;) ;
-    System.out.println(&quot;Subject: &quot;+subject) ;
+    System.out.println(&quot;Subject: &quot; + subject) ;
 }
 qExec.close() ;
 conn.close() ;
@@ -224,12 +224,12 @@ to excessive overhead.</p>
 <p>The <code>Txn</code> class provides a Java8-style transaction API.  Transactions are
 code passed in the <code>Txn</code> library that handles the transaction lifecycle.</p>
 <pre><code>try ( RDFConnection conn = RDFConnection.connect(...) ) {
-    Txn.execWrite(conn, ()-&gt; {
+    Txn.execWrite(conn, () -&gt; {
         conn.load(&quot;data1.ttl&quot;) ;
         conn.load(&quot;data2.ttl&quot;) ;
-        conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs)-&gt;
+        conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs) -&gt;
            Resource subject = qs.getResource(&quot;s&quot;) ;
-           System.out.println(&quot;Subject: &quot;+subject) ;
+           System.out.println(&quot;Subject: &quot; + subject) ;
         }) ;
     }) ;
 }
@@ -240,9 +240,9 @@ code passed in the <code>Txn</code> library that handles the transaction lifecyc
     try {
         conn.load(&quot;data1.ttl&quot;) ;
         conn.load(&quot;data2.ttl&quot;) ;
-        conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs)-&gt;
+        conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs) -&gt; {
            Resource subject = qs.getResource(&quot;s&quot;) ;
-           System.out.println(&quot;Subject: &quot;+subject) ;
+           System.out.println(&quot;Subject: &quot; + subject) ;
         }) ;
         conn.commit() ;
     } finally { conn.end() ; }
@@ -299,7 +299,7 @@ add more RDF data into a graph, and delete a graph from a dataset.</p>
 <pre><code>try ( RDFConnection conn = RDFConnection.connect(...) ) {
     conn.load(&quot;data1.ttl&quot;) ;
     conn.load(&quot;data2.nt&quot;) ;
-  }
+}
 </code></pre>
 <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
@@ -339,9 +339,9 @@ the application should create a copy which is not attached to any external syste
 with <code>ResultSetFactory.copyResults</code>.</p>
 <pre><code>  try ( RDFConnection conn = RDFConnection.connect(&quot;https://...&quot;) ) {
       ResultSet safeCopy =
-          Txn.execReadReturn(conn, ()-&gt; {
+          Txn.execReadReturn(conn, () -&gt; {
               // Process results by row:
-              conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs)-&gt;{
+              conn.querySelect(&quot;SELECT DISTINCT ?s { ?s ?p ?o }&quot;, (qs) -&gt; {
                   Resource subject = qs.getResource(&quot;s&quot;) ;
                   System.out.println(&quot;Subject: &quot;+subject) ;
               }) ;
@@ -353,10 +353,11 @@ with <code>ResultSetFactory.copyResults</code>.</p>
 <h2 id="update-usage">Update Usage</h2>
 <p>SPARQL Update operations can be performed and mixed with other operations.</p>
 <pre><code>  try ( RDFConnection conn = RDFConnection.connect(...) ) {
-      Txn.execWrite(conn, ()-&gt; {
+      Txn.execWrite(conn, () -&gt; {
          conn.update(&quot;DELETE DATA { ... }&quot; ) ;
          conn.load(&quot;data.ttl&quot;) ;
-         }) ;
+      }) ;
+  }
 </code></pre>
 <h2 id="dataset-operations">Dataset operations</h2>
 <p>In addition to the SPARQL Graph Store Protocol, operations on whole
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 113174cc2..0869644bc 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -329,7 +329,7 @@
   
   <url>
     <loc>https://jena.apache.org/documentation.html</loc>
-    <lastmod>2022-05-31T09:58:44+01:00</lastmod>
+    <lastmod>2022-06-15T14:52:32+02:00</lastmod>
   </url>
   
   <url>
@@ -679,7 +679,7 @@
   
   <url>
     <loc>https://jena.apache.org/documentation/rdfconnection/</loc>
-    <lastmod>2021-11-15T19:40:46+00:00</lastmod>
+    <lastmod>2022-06-15T14:52:32+02:00</lastmod>
   </url>
   
   <url>