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 390bb3ec1 Updated site from main 
(71dbf25b4a601b5dbbe199abddfc33c098dfd6e3)
390bb3ec1 is described below

commit 390bb3ec16f73cb96456de227e3bc2f80461a589
Author: jenkins <[email protected]>
AuthorDate: Wed Jun 7 16:49:19 2023 +0000

    Updated site from main (71dbf25b4a601b5dbbe199abddfc33c098dfd6e3)
---
 .../documentation/notes/event-handler-howto.html   | 40 ++++++++++------------
 content/index.json                                 |  2 +-
 content/sitemap.xml                                |  4 +--
 3 files changed, 22 insertions(+), 24 deletions(-)

diff --git a/content/documentation/notes/event-handler-howto.html 
b/content/documentation/notes/event-handler-howto.html
index 10afdacfb..5bc622699 100644
--- a/content/documentation/notes/event-handler-howto.html
+++ b/content/documentation/notes/event-handler-howto.html
@@ -202,28 +202,26 @@ refine or reduce the implementation as more experience is 
gained with
 it.</p>
 <p>To monitor a Model, you must <em>register</em> a 
<em>ModelChangedListener</em>
 with that Model:</p>
-<pre><code>    Model m = ModelFactory.createDefaultModel();
-    ModelChangedListener L = new MyListener();
-    m.register( L );
-</code></pre>
-<p><em>MyListener</em> must be an implementation of 
<em>ModelChangedListener</em>,
+<div class="highlight"><pre tabindex="0" 
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
 class="language-java" data-lang="java"><span style="display:flex;"><span>Model 
m <span style="color:#666">=</span> ModelFactory<span 
style="color:#666">.</span><span 
style="color:#b44">createDefaultModel</span><span style="color:#666">();</span>
+</span></span><span style="display:flex;"><span>ModelChangedListener L <span 
style="color:#666">=</span> <span 
style="color:#a2f;font-weight:bold">new</span> MyListener<span 
style="color:#666">();</span>
+</span></span><span style="display:flex;"><span>m<span 
style="color:#666">.</span><span style="color:#b44">register</span><span 
style="color:#666">(</span> L <span style="color:#666">);</span>
+</span></span></code></pre></div><p><em>MyListener</em> must be an 
implementation of <em>ModelChangedListener</em>,
 for example:</p>
-<pre><code>    class MyListener implements ModelChangedListener
-        {
-        public void addedStatement( Statement s )
-            { System.out.println( &quot;&gt;&gt; added statement &quot; + s ); 
}
-        public void addedStatements( Statement [] statements ) {}
-        public void addedStatements( List statements ) {}
-        public void addedStatements( StmtIterator statements ) {}
-        public void addedStatements( Model m ) {}
-        public void removedStatement( Statement s ) {}
-        public void removedStatements( Statement [] statements ) {}
-        public void removedStatements( List statements ) {}
-        public void removedStatements( StmtIterator statements ) {}
-        public void removedStatements( Model m ) {}
-        }
-</code></pre>
-<p>This listener ignores everything except the addition of single
+<div class="highlight"><pre tabindex="0" 
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
 class="language-java" data-lang="java"><span style="display:flex;"><span><span 
style="color:#a2f;font-weight:bold">class</span> <span 
style="color:#00f">MyListener</span> <span 
style="color:#a2f;font-weight:bold">implements</span> ModelChangedListener
+</span></span><span style="display:flex;"><span><span 
style="color:#666">{</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">addedStatement</span><span style="color:#666">(</span> 
Statement s <span style="color:#666">)</span>
+</span></span><span style="display:flex;"><span>        <span 
style="color:#666">{</span> System<span style="color:#666">.</span><span 
style="color:#b44">out</span><span style="color:#666">.</span><span 
style="color:#b44">println</span><span style="color:#666">(</span> <span 
style="color:#b44">&#34;&gt;&gt; added statement &#34;</span> <span 
style="color:#666">+</span> s <span style="color:#666">);</span> <span 
style="color:#666">}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">addedStatements</span><span style="color:#666">(</span> 
Statement <span style="color:#666">[]</span> statements <span 
style="color:#666">)</span> <span style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">addedStatements</span><span style="color:#666">(</span> 
List statements <span style="color:#666">)</span> <span 
style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">addedStatements</span><span style="color:#666">(</span> 
StmtIterator statements <span style="color:#666">)</span> <span 
style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">addedStatements</span><span style="color:#666">(</span> 
Model m <span style="color:#666">)</span> <span style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">removedStatement</span><span style="color:#666">(</span> 
Statement s <span style="color:#666">)</span> <span style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">removedStatements</span><span style="color:#666">(</span> 
Statement <span style="color:#666">[]</span> statements <span 
style="color:#666">)</span> <span style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">removedStatements</span><span style="color:#666">(</span> 
List statements <span style="color:#666">)</span> <span 
style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">removedStatements</span><span style="color:#666">(</span> 
StmtIterator statements <span style="color:#666">)</span> <span 
style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span>    <span 
style="color:#a2f;font-weight:bold">public</span> <span 
style="color:#0b0;font-weight:bold">void</span> <span 
style="color:#00a000">removedStatements</span><span style="color:#666">(</span> 
Model m <span style="color:#666">)</span> <span style="color:#666">{}</span>
+</span></span><span style="display:flex;"><span><span 
style="color:#666">}</span>
+</span></span></code></pre></div><p>This listener ignores everything except 
the addition of single
 statements to <em>m</em>; those it prints out. The listener has a method
 for each of the ways that statements can be added to a Model:</p>
 <ul>
diff --git a/content/index.json b/content/index.json
index 390bde4dd..2225c7766 100644
--- a/content/index.json
+++ b/content/index.json
@@ -1 +1 @@
-[{"categories":null,"contents":"This page is historical \u0026ldquo;for 
information only\u0026rdquo; - there is no Apache release of Eyeball and the 
code has not been updated for Jena3.\nThe original source code is available. So 
you\u0026rsquo;ve got Eyeball installed and you\u0026rsquo;ve run it on one of 
your files, and Eyeball doesn\u0026rsquo;t like it. You\u0026rsquo;re not sure 
why, or what to do about it. Here\u0026rsquo;s what\u0026rsquo;s going 
on.\nEyeball inspects your model a [...]
\ No newline at end of file
+[{"categories":null,"contents":"This page is historical \u0026ldquo;for 
information only\u0026rdquo; - there is no Apache release of Eyeball and the 
code has not been updated for Jena3.\nThe original source code is available. So 
you\u0026rsquo;ve got Eyeball installed and you\u0026rsquo;ve run it on one of 
your files, and Eyeball doesn\u0026rsquo;t like it. You\u0026rsquo;re not sure 
why, or what to do about it. Here\u0026rsquo;s what\u0026rsquo;s going 
on.\nEyeball inspects your model a [...]
\ No newline at end of file
diff --git a/content/sitemap.xml b/content/sitemap.xml
index ba6cac99e..3c6df8739 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -201,13 +201,13 @@
     <lastmod>2023-04-09T15:11:22+02:00</lastmod>
   </url><url>
     <loc>https://jena.apache.org/documentation.html</loc>
-    <lastmod>2023-04-26T11:23:47+01:00</lastmod>
+    <lastmod>2023-06-06T21:08:29+02:00</lastmod>
   </url><url>
     <loc>https://jena.apache.org/download.html</loc>
     <lastmod>2023-04-16T17:26:15+01:00</lastmod>
   </url><url>
     
<loc>https://jena.apache.org/documentation/notes/event-handler-howto.html</loc>
-    <lastmod>2020-02-28T13:09:12+01:00</lastmod>
+    <lastmod>2023-06-06T21:08:29+02:00</lastmod>
   </url><url>
     <loc>https://jena.apache.org/documentation/query/explain.html</loc>
     <lastmod>2023-02-26T22:14:57+01:00</lastmod>

Reply via email to