jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r866584 [15/21] - in /websites/staging/jena/trunk/content: ./ documentation/assembler/ documentation/inference/ documentation/io/ documentation/javadoc/arq/ documentation/javadoc/fuseki/ documentation/javadoc/jena/ documentation/javadoc/lar...
Date Thu, 20 Jun 2013 10:18:36 GMT
Modified: websites/staging/jena/trunk/content/documentation/tdb/quadfilter.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tdb/quadfilter.html (original)
+++ websites/staging/jena/trunk/content/documentation/tdb/quadfilter.html Thu Jun 20 10:18:34 2013
@@ -174,10 +174,10 @@ graph pattern processing.</p>
 <p>A rejected quad is simply no processed further in the basic graph
 pattern and it is as if it is not in the dataset.</p>
 <p>The filter has a signature of:</p>
-<div class="codehilite"><pre> <span class="sr">//</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">jena</span><span class="o">.</span><span class="n">atlas</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">Filter</span>
- <span class="n">interface</span> <span class="n">Filter</span><span class="sr">&lt;T&gt;</span>
+<div class="codehilite"><pre> <span class="o">//</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">jena</span><span class="p">.</span><span class="n">atlas</span><span class="p">.</span><span class="n">iterator</span><span class="p">.</span><span class="n">Filter</span>
+ <span class="n">interface</span> <span class="n">Filter</span><span class="o">&lt;</span><span class="n">T</span><span class="o">&gt;</span>
  <span class="p">{</span>
-    <span class="n">public</span> <span class="n">boolean</span> <span class="nb">accept</span><span class="p">(</span><span class="n">T</span> <span class="n">item</span><span class="p">)</span><span class="err"> </span><span class="p">;</span>
+    <span class="n">public</span> <span class="n">boolean</span> <span class="n">accept</span><span class="p">(</span><span class="n">T</span> <span class="n">item</span><span class="p">)</span> <span class="p">;</span>
  <span class="p">}</span>
 </pre></div>
 
@@ -185,26 +185,26 @@ pattern and it is as if it is not in the
 <p>with a type parameter of <code>Tuple&lt;NodeId&gt;</code>. <code>NodeId</code> is the low level
 internal identifier TDB uses for RDF terms. <code>Tuple</code> is a class for
 a immutable tuples of values of the same type.</p>
-<div class="codehilite"><pre>  <span class="sr">/** Create a filter to exclude the graph http://example/g</span><span class="mi">2</span> <span class="o">*/</span>
-  <span class="n">private</span> <span class="n">static</span> <span class="n">Filter</span><span class="sr">&lt;Tuple&lt;NodeId&gt;</span><span class="o">&gt;</span> <span class="n">createFilter</span><span class="p">(</span><span class="n">Dataset</span> <span class="n">ds</span><span class="p">)</span>
+<div class="codehilite"><pre>  <span class="o">/**</span> <span class="n">Create</span> <span class="n">a</span> <span class="n">filter</span> <span class="n">to</span> <span class="n">exclude</span> <span class="n">the</span> <span class="n">graph</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">example</span><span class="o">/</span><span class="n">g2</span> <span class="o">*/</span>
+  <span class="n">private</span> <span class="n">static</span> <span class="n">Filter</span><span class="o">&lt;</span><span class="n">Tuple</span><span class="o">&lt;</span><span class="n">NodeId</span><span class="o">&gt;&gt;</span> <span class="n">createFilter</span><span class="p">(</span><span class="n">Dataset</span> <span class="n">ds</span><span class="p">)</span>
   <span class="p">{</span>
-      <span class="n">DatasetGraphTransaction</span> <span class="n">dst</span> <span class="o">=</span> <span class="p">(</span><span class="n">DatasetGraphTransaction</span><span class="p">)(</span><span class="n">ds</span><span class="o">.</span><span class="n">asDatasetGraph</span><span class="p">())</span> <span class="p">;</span>
-      <span class="n">DatasetGraphTDB</span> <span class="n">dsg</span> <span class="o">=</span> <span class="n">dst</span><span class="o">.</span><span class="n">getBaseDatasetGraph</span><span class="p">();</span>
+      <span class="n">DatasetGraphTransaction</span> <span class="n">dst</span> <span class="p">=</span> <span class="p">(</span><span class="n">DatasetGraphTransaction</span><span class="p">)(</span><span class="n">ds</span><span class="p">.</span><span class="n">asDatasetGraph</span><span class="p">())</span> <span class="p">;</span>
+      <span class="n">DatasetGraphTDB</span> <span class="n">dsg</span> <span class="p">=</span> <span class="n">dst</span><span class="p">.</span><span class="n">getBaseDatasetGraph</span><span class="p">();</span>
 
-      <span class="n">NodeTable</span> <span class="n">nodeTable</span> <span class="o">=</span> <span class="n">dsg</span><span class="o">.</span><span class="n">getQuadTable</span><span class="p">()</span><span class="o">.</span><span class="n">getNodeTupleTable</span><span class="p">()</span><span class="o">.</span><span class="n">getNodeTable</span><span class="p">()</span> <span class="p">;</span>
-      <span class="sr">//</span> <span class="n">Filtering</span> <span class="n">operates</span> <span class="n">at</span> <span class="n">a</span> <span class="n">very</span> <span class="n">low</span> <span class="n">level:</span>
-      <span class="sr">//</span> <span class="n">need</span> <span class="n">to</span> <span class="n">know</span> <span class="n">the</span> <span class="n">internal</span> <span class="n">identifier</span> <span class="k">for</span> <span class="n">the</span> <span class="n">graph</span> <span class="n">name</span><span class="o">.</span>
-      <span class="n">final</span> <span class="n">NodeId</span> <span class="n">target</span> <span class="o">=</span> <span class="n">nodeTable</span><span class="o">.</span><span class="n">getNodeIdForNode</span><span class="p">(</span><span class="n">Node</span><span class="o">.</span><span class="n">createURI</span><span class="p">(</span><span class="s">&quot;http://example/g2&quot;</span><span class="p">))</span> <span class="p">;</span>
-
-      <span class="sr">//</span> <span class="n">Filter</span> <span class="k">for</span> <span class="nb">accept</span><span class="o">/</span><span class="n">reject</span> <span class="n">as</span> <span class="n">quad</span> <span class="n">as</span> <span class="n">being</span> <span class="n">visible</span><span class="o">.</span>
-      <span class="n">Filter</span><span class="sr">&lt;Tuple&lt;NodeId&gt;</span><span class="o">&gt;</span> <span class="n">filter</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Filter</span><span class="sr">&lt;Tuple&lt;NodeId&gt;</span><span class="o">&gt;</span><span class="p">()</span> <span class="p">{</span>
-          <span class="n">public</span> <span class="n">boolean</span> <span class="nb">accept</span><span class="p">(</span><span class="n">Tuple</span><span class="sr">&lt;NodeId&gt;</span> <span class="n">item</span><span class="p">)</span>
+      <span class="n">NodeTable</span> <span class="n">nodeTable</span> <span class="p">=</span> <span class="n">dsg</span><span class="p">.</span><span class="n">getQuadTable</span><span class="p">().</span><span class="n">getNodeTupleTable</span><span class="p">().</span><span class="n">getNodeTable</span><span class="p">()</span> <span class="p">;</span>
+      <span class="o">//</span> <span class="n">Filtering</span> <span class="n">operates</span> <span class="n">at</span> <span class="n">a</span> <span class="n">very</span> <span class="n">low</span> <span class="n">level</span><span class="p">:</span>
+      <span class="o">//</span> <span class="n">need</span> <span class="n">to</span> <span class="n">know</span> <span class="n">the</span> <span class="n">internal</span> <span class="n">identifier</span> <span class="k">for</span> <span class="n">the</span> <span class="n">graph</span> <span class="n">name</span><span class="p">.</span>
+      <span class="n">final</span> <span class="n">NodeId</span> <span class="n">target</span> <span class="p">=</span> <span class="n">nodeTable</span><span class="p">.</span><span class="n">getNodeIdForNode</span><span class="p">(</span><span class="n">Node</span><span class="p">.</span><span class="n">createURI</span><span class="p">(</span>&quot;<span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">example</span><span class="o">/</span><span class="n">g2</span>&quot;<span class="p">))</span> <span class="p">;</span>
+
+      <span class="o">//</span> <span class="n">Filter</span> <span class="k">for</span> <span class="n">accept</span><span class="o">/</span><span class="n">reject</span> <span class="n">as</span> <span class="n">quad</span> <span class="n">as</span> <span class="n">being</span> <span class="n">visible</span><span class="p">.</span>
+      <span class="n">Filter</span><span class="o">&lt;</span><span class="n">Tuple</span><span class="o">&lt;</span><span class="n">NodeId</span><span class="o">&gt;&gt;</span> <span class="n">filter</span> <span class="p">=</span> <span class="n">new</span> <span class="n">Filter</span><span class="o">&lt;</span><span class="n">Tuple</span><span class="o">&lt;</span><span class="n">NodeId</span><span class="o">&gt;&gt;</span><span class="p">()</span> <span class="p">{</span>
+          <span class="n">public</span> <span class="n">boolean</span> <span class="n">accept</span><span class="p">(</span><span class="n">Tuple</span><span class="o">&lt;</span><span class="n">NodeId</span><span class="o">&gt;</span> <span class="n">item</span><span class="p">)</span>
           <span class="p">{</span>
-              <span class="sr">//</span> <span class="n">Quads</span> <span class="n">are</span> <span class="mi">4</span><span class="o">-</span><span class="n">tuples</span><span class="p">,</span> <span class="n">triples</span> <span class="n">are</span> <span class="mi">3</span><span class="o">-</span><span class="n">tuples</span><span class="o">.</span>
-              <span class="k">if</span> <span class="p">(</span> <span class="n">item</span><span class="o">.</span><span class="n">size</span><span class="p">()</span> <span class="o">==</span> <span class="mi">4</span> <span class="o">&amp;&amp;</span> <span class="n">item</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">equals</span><span class="p">(</span><span class="n">target</span><span class="p">)</span> <span class="p">)</span>
-                  <span class="sr">//</span> <span class="n">reject</span>
+              <span class="o">//</span> <span class="n">Quads</span> <span class="n">are</span> 4<span class="o">-</span><span class="n">tuples</span><span class="p">,</span> <span class="n">triples</span> <span class="n">are</span> 3<span class="o">-</span><span class="n">tuples</span><span class="p">.</span>
+              <span class="k">if</span> <span class="p">(</span> <span class="n">item</span><span class="p">.</span><span class="nb">size</span><span class="p">()</span> <span class="o">==</span> 4 <span class="o">&amp;&amp;</span> <span class="n">item</span><span class="p">.</span><span class="n">get</span><span class="p">(</span>0<span class="p">).</span><span class="n">equals</span><span class="p">(</span><span class="n">target</span><span class="p">)</span> <span class="p">)</span>
+                  <span class="o">//</span> <span class="n">reject</span>
                   <span class="k">return</span> <span class="n">false</span> <span class="p">;</span>
-              <span class="sr">//</span> <span class="n">Accept</span>
+              <span class="o">//</span> <span class="n">Accept</span>
               <span class="k">return</span> <span class="n">true</span> <span class="p">;</span>
           <span class="p">}</span> <span class="p">}</span> <span class="p">;</span>
       <span class="k">return</span> <span class="n">filter</span> <span class="p">;</span>
@@ -214,11 +214,11 @@ a immutable tuples of values of the same
 
 <p>To install a filter, put it in the context of a query execution
 under the symbol <code>SystemTDB.symTupleFilter</code></p>
-<div class="codehilite"><pre>    <span class="n">Dataset</span> <span class="n">ds</span> <span class="o">=</span> <span class="o">...</span> <span class="p">;</span>
-    <span class="n">Filter</span><span class="sr">&lt;Tuple&lt;NodeId&gt;</span><span class="o">&gt;</span> <span class="n">filter</span> <span class="o">=</span> <span class="n">createFilter</span><span class="p">(</span><span class="n">ds</span><span class="p">)</span> <span class="p">;</span>
-    <span class="n">Query</span> <span class="n">query</span> <span class="o">=</span> <span class="o">...</span> <span class="p">;</span>
-    <span class="n">QueryExecution</span> <span class="n">qExec</span> <span class="o">=</span> <span class="n">QueryExecutionFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">query</span><span class="p">,</span> <span class="n">ds</span><span class="p">)</span> <span class="p">;</span>
-    <span class="n">qExec</span><span class="o">.</span><span class="n">getContext</span><span class="p">()</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">SystemTDB</span><span class="o">.</span><span class="n">symTupleFilter</span><span class="p">,</span> <span class="n">filter</span><span class="p">)</span> <span class="p">;</span>
+<div class="codehilite"><pre>    <span class="n">Dataset</span> <span class="n">ds</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
+    <span class="n">Filter</span><span class="o">&lt;</span><span class="n">Tuple</span><span class="o">&lt;</span><span class="n">NodeId</span><span class="o">&gt;&gt;</span> <span class="n">filter</span> <span class="p">=</span> <span class="n">createFilter</span><span class="p">(</span><span class="n">ds</span><span class="p">)</span> <span class="p">;</span>
+    <span class="n">Query</span> <span class="n">query</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
+    <span class="n">QueryExecution</span> <span class="n">qExec</span> <span class="p">=</span> <span class="n">QueryExecutionFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="n">query</span><span class="p">,</span> <span class="n">ds</span><span class="p">)</span> <span class="p">;</span>
+    <span class="n">qExec</span><span class="p">.</span><span class="n">getContext</span><span class="p">().</span><span class="n">set</span><span class="p">(</span><span class="n">SystemTDB</span><span class="p">.</span><span class="n">symTupleFilter</span><span class="p">,</span> <span class="n">filter</span><span class="p">)</span> <span class="p">;</span>
 </pre></div>
 
 

Modified: websites/staging/jena/trunk/content/documentation/tdb/tdb_transactions.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tdb/tdb_transactions.html (original)
+++ websites/staging/jena/trunk/content/documentation/tdb/tdb_transactions.html Thu Jun 20 10:18:34 2013
@@ -225,33 +225,33 @@ it should be used transactionally after 
 <h3 id="read-transactions">Read transactions</h3>
 <p>These are used for SPARQL queries and code using the Jena API
 actions that do not change the data.  The general pattern is:</p>
-<div class="codehilite"><pre> <span class="n">dataset</span><span class="o">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="o">.</span><span class="n">READ</span><span class="p">)</span> <span class="p">;</span>
- <span class="n">try</span> <span class="p">{</span>
-   <span class="o">...</span>
- <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="o">.</span><span class="n">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+<div class="codehilite"><pre> <span class="n">dataset</span><span class="p">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="p">.</span><span class="n">READ</span><span class="p">)</span> <span class="p">;</span>
+ <span class="k">try</span> <span class="p">{</span>
+   <span class="p">...</span>
+ <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="p">.</span><span class="k">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
 </pre></div>
 
 
 <p>The <code>dataset.end()</code> declares the end of the read transaction.  Applications may also call
 <code>dataset.commit()</code> or <code>dataset.abort()</code> which all have the same effect for a read transaction.</p>
-<div class="codehilite"><pre> <span class="n">Location</span> <span class="n">location</span> <span class="o">=</span> <span class="o">...</span> <span class="p">;</span>
- <span class="n">Dataset</span> <span class="n">dataset</span> <span class="o">=</span> <span class="o">...</span> <span class="p">;</span>
- <span class="n">dataset</span><span class="o">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="o">.</span><span class="n">READ</span><span class="p">)</span> <span class="p">;</span>
-
- <span class="n">try</span> <span class="p">{</span>
-     <span class="n">QueryExecution</span> <span class="n">qExec</span> <span class="o">=</span> <span class="n">QueryExecutionFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="s">&quot;SELECT * {?s ?p ?o} LIMIT 10&quot;</span><span class="p">,</span> <span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
-     <span class="n">ResultSet</span> <span class="n">rs</span> <span class="o">=</span> <span class="n">qExec</span><span class="o">.</span><span class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
-     <span class="n">try</span> <span class="p">{</span>
-         <span class="n">ResultSetFormatter</span><span class="o">.</span><span class="n">out</span><span class="p">(</span><span class="n">rs</span><span class="p">)</span> <span class="p">;</span>
-     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">qExec</span><span class="o">.</span><span class="nb">close</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
-
-     <span class="sr">//</span> <span class="n">Another</span> <span class="n">query</span> <span class="o">-</span> <span class="n">same</span> <span class="n">view</span> <span class="n">of</span> <span class="n">the</span> <span class="n">data</span><span class="o">.</span>
-     <span class="n">qExec</span> <span class="o">=</span> <span class="n">QueryExecutionFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="s">&quot;SELECT * {?s ?p ?o} OFFSET 10 LIMIT 10&quot;</span><span class="p">,</span> <span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
-     <span class="n">rs</span> <span class="o">=</span> <span class="n">qExec</span><span class="o">.</span><span class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
-     <span class="n">try</span> <span class="p">{</span>
-         <span class="n">ResultSetFormatter</span><span class="o">.</span><span class="n">out</span><span class="p">(</span><span class="n">rs</span><span class="p">)</span> <span class="p">;</span>
-     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">qExec</span><span class="o">.</span><span class="nb">close</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
- <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="o">.</span><span class="n">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+<div class="codehilite"><pre> <span class="n">Location</span> <span class="n">location</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
+ <span class="n">Dataset</span> <span class="n">dataset</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
+ <span class="n">dataset</span><span class="p">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="p">.</span><span class="n">READ</span><span class="p">)</span> <span class="p">;</span>
+
+ <span class="k">try</span> <span class="p">{</span>
+     <span class="n">QueryExecution</span> <span class="n">qExec</span> <span class="p">=</span> <span class="n">QueryExecutionFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span>&quot;<span class="n">SELECT</span> <span class="o">*</span> <span class="p">{</span>?<span class="n">s</span> ?<span class="n">p</span> ?<span class="n">o</span><span class="p">}</span> <span class="n">LIMIT</span> 10&quot;<span class="p">,</span> <span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
+     <span class="n">ResultSet</span> <span class="n">rs</span> <span class="p">=</span> <span class="n">qExec</span><span class="p">.</span><span class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
+     <span class="k">try</span> <span class="p">{</span>
+         <span class="n">ResultSetFormatter</span><span class="p">.</span><span class="n">out</span><span class="p">(</span><span class="n">rs</span><span class="p">)</span> <span class="p">;</span>
+     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">qExec</span><span class="p">.</span><span class="n">close</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+
+     <span class="o">//</span> <span class="n">Another</span> <span class="n">query</span> <span class="o">-</span> <span class="n">same</span> <span class="n">view</span> <span class="n">of</span> <span class="n">the</span> <span class="n">data</span><span class="p">.</span>
+     <span class="n">qExec</span> <span class="p">=</span> <span class="n">QueryExecutionFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span>&quot;<span class="n">SELECT</span> <span class="o">*</span> <span class="p">{</span>?<span class="n">s</span> ?<span class="n">p</span> ?<span class="n">o</span><span class="p">}</span> <span class="n">OFFSET</span> 10 <span class="n">LIMIT</span> 10&quot;<span class="p">,</span> <span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
+     <span class="n">rs</span> <span class="p">=</span> <span class="n">qExec</span><span class="p">.</span><span class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
+     <span class="k">try</span> <span class="p">{</span>
+         <span class="n">ResultSetFormatter</span><span class="p">.</span><span class="n">out</span><span class="p">(</span><span class="n">rs</span><span class="p">)</span> <span class="p">;</span>
+     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">qExec</span><span class="p">.</span><span class="n">close</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+ <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="p">.</span><span class="k">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
 </pre></div>
 
 
@@ -260,12 +260,12 @@ actions that do not change the data.  Th
 actions that modify the data.  Beware that large <code>model.read</code> 
 operations consume large amounts of temporary space.</p>
 <p>The general pattern is:</p>
-<div class="codehilite"><pre> <span class="n">dataset</span><span class="o">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="o">.</span><span class="n">WRITE</span><span class="p">)</span> <span class="p">;</span>
- <span class="n">try</span> <span class="p">{</span>
-   <span class="o">...</span>
-   <span class="n">dataset</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span> <span class="p">;</span>
+<div class="codehilite"><pre> <span class="n">dataset</span><span class="p">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="p">.</span><span class="n">WRITE</span><span class="p">)</span> <span class="p">;</span>
+ <span class="k">try</span> <span class="p">{</span>
+   <span class="p">...</span>
+   <span class="n">dataset</span><span class="p">.</span><span class="n">commit</span><span class="p">()</span> <span class="p">;</span>
  <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> 
-   <span class="n">dataset</span><span class="o">.</span><span class="n">end</span><span class="p">()</span> <span class="p">;</span> 
+   <span class="n">dataset</span><span class="p">.</span><span class="k">end</span><span class="p">()</span> <span class="p">;</span> 
  <span class="p">}</span>
 </pre></div>
 
@@ -275,41 +275,41 @@ operations consume large amounts of temp
 <p>Once <code>dataset.commit()</code> or <code>dataset.abort()</code> is called, the application
 needs to start a new transaction to perform further operations on the 
 dataset.</p>
-<div class="codehilite"><pre> <span class="n">Location</span> <span class="n">location</span> <span class="o">=</span> <span class="o">...</span> <span class="p">;</span>
- <span class="n">Dataset</span> <span class="n">dataset</span> <span class="o">=</span> <span class="o">...</span> <span class="p">;</span>
- <span class="n">dataset</span><span class="o">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="o">.</span><span class="n">WRITE</span><span class="p">)</span> <span class="p">;</span>
-
- <span class="n">try</span> <span class="p">{</span>
-     <span class="n">Model</span> <span class="n">model</span> <span class="o">=</span> <span class="n">dataset</span><span class="o">.</span><span class="n">getDefaultModel</span><span class="p">()</span> <span class="p">;</span>
-     <span class="sr">//</span> <span class="n">API</span> <span class="n">calls</span> <span class="n">to</span> <span class="n">a</span> <span class="n">model</span> <span class="n">in</span> <span class="n">the</span> <span class="n">dataset</span>
-
-     <span class="n">model</span><span class="o">.</span><span class="n">add</span><span class="p">(</span> <span class="o">...</span> <span class="p">)</span>
-
-     <span class="sr">//</span> <span class="n">A</span> <span class="n">SPARQL</span> <span class="n">query</span> <span class="n">will</span> <span class="n">see</span> <span class="n">the</span> <span class="k">new</span> <span class="n">statement</span> <span class="n">added</span><span class="o">.</span>
-     <span class="n">QueryExecution</span> <span class="n">qExec</span> <span class="o">=</span> <span class="n">QueryExecutionFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span>
-           <span class="s">&quot;SELECT (count(*) AS ?count) { ?s ?p ?o} LIMIT 10&quot;</span><span class="p">,</span> 
+<div class="codehilite"><pre> <span class="n">Location</span> <span class="n">location</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
+ <span class="n">Dataset</span> <span class="n">dataset</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
+ <span class="n">dataset</span><span class="p">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="p">.</span><span class="n">WRITE</span><span class="p">)</span> <span class="p">;</span>
+
+ <span class="k">try</span> <span class="p">{</span>
+     <span class="n">Model</span> <span class="n">model</span> <span class="p">=</span> <span class="n">dataset</span><span class="p">.</span><span class="n">getDefaultModel</span><span class="p">()</span> <span class="p">;</span>
+     <span class="o">//</span> <span class="n">API</span> <span class="n">calls</span> <span class="n">to</span> <span class="n">a</span> <span class="n">model</span> <span class="n">in</span> <span class="n">the</span> <span class="n">dataset</span>
+
+     <span class="n">model</span><span class="p">.</span><span class="n">add</span><span class="p">(</span> <span class="p">...</span> <span class="p">)</span>
+
+     <span class="o">//</span> <span class="n">A</span> <span class="n">SPARQL</span> <span class="n">query</span> <span class="n">will</span> <span class="n">see</span> <span class="n">the</span> <span class="n">new</span> <span class="n">statement</span> <span class="n">added</span><span class="p">.</span>
+     <span class="n">QueryExecution</span> <span class="n">qExec</span> <span class="p">=</span> <span class="n">QueryExecutionFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span>
+           &quot;<span class="n">SELECT</span> <span class="p">(</span><span class="n">count</span><span class="p">(</span><span class="o">*</span><span class="p">)</span> <span class="n">AS</span> ?<span class="n">count</span><span class="p">)</span> <span class="p">{</span> ?<span class="n">s</span> ?<span class="n">p</span> ?<span class="n">o</span><span class="p">}</span> <span class="n">LIMIT</span> 10&quot;<span class="p">,</span> 
            <span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
-     <span class="n">ResultSet</span> <span class="n">rs</span> <span class="o">=</span> <span class="n">qExec</span><span class="o">.</span><span class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
-     <span class="n">try</span> <span class="p">{</span>
-         <span class="n">ResultSetFormatter</span><span class="o">.</span><span class="n">out</span><span class="p">(</span><span class="n">rs</span><span class="p">)</span> <span class="p">;</span>
-     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">qExec</span><span class="o">.</span><span class="nb">close</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
-
-     <span class="sr">//</span> <span class="o">...</span> <span class="n">perform</span> <span class="n">a</span> <span class="n">SPARQL</span> <span class="n">Update</span>
-     <span class="n">GraphStore</span> <span class="n">graphStore</span> <span class="o">=</span> <span class="n">GraphStoreFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
-     <span class="n">String</span> <span class="n">sparqlUpdateString</span> <span class="o">=</span> <span class="n">StrUtils</span><span class="o">.</span><span class="n">strjoinNL</span><span class="p">(</span>
-          <span class="s">&quot;PREFIX . &lt;http://example/&gt;&quot;</span><span class="p">,</span>
-          <span class="s">&quot;INSERT { :s :p ?now } WHERE { BIND(now() AS ?now) }&quot;</span>
+     <span class="n">ResultSet</span> <span class="n">rs</span> <span class="p">=</span> <span class="n">qExec</span><span class="p">.</span><span class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
+     <span class="k">try</span> <span class="p">{</span>
+         <span class="n">ResultSetFormatter</span><span class="p">.</span><span class="n">out</span><span class="p">(</span><span class="n">rs</span><span class="p">)</span> <span class="p">;</span>
+     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">qExec</span><span class="p">.</span><span class="n">close</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+
+     <span class="o">//</span> <span class="p">...</span> <span class="n">perform</span> <span class="n">a</span> <span class="n">SPARQL</span> <span class="n">Update</span>
+     <span class="n">GraphStore</span> <span class="n">graphStore</span> <span class="p">=</span> <span class="n">GraphStoreFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="n">dataset</span><span class="p">)</span> <span class="p">;</span>
+     <span class="n">String</span> <span class="n">sparqlUpdateString</span> <span class="p">=</span> <span class="n">StrUtils</span><span class="p">.</span><span class="n">strjoinNL</span><span class="p">(</span>
+          &quot;<span class="n">PREFIX</span> <span class="p">.</span> <span class="o">&lt;</span><span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">example</span><span class="o">/&gt;</span>&quot;<span class="p">,</span>
+          &quot;<span class="n">INSERT</span> <span class="p">{</span> <span class="p">:</span><span class="n">s</span> <span class="p">:</span><span class="n">p</span> ?<span class="n">now</span> <span class="p">}</span> <span class="n">WHERE</span> <span class="p">{</span> <span class="n">BIND</span><span class="p">(</span><span class="n">now</span><span class="p">()</span> <span class="n">AS</span> ?<span class="n">now</span><span class="p">)</span> <span class="p">}</span>&quot;
           <span class="p">)</span> <span class="p">;</span>
 
-     <span class="n">UpdateRequest</span> <span class="n">request</span> <span class="o">=</span> <span class="n">UpdateFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">sparqlUpdateString</span><span class="p">)</span> <span class="p">;</span>
-     <span class="n">UpdateProcessor</span> <span class="n">proc</span> <span class="o">=</span> <span class="n">UpdateExecutionFactory</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">request</span><span class="p">,</span> <span class="n">graphStore</span><span class="p">)</span> <span class="p">;</span>
-     <span class="n">proc</span><span class="o">.</span><span class="n">execute</span><span class="p">()</span> <span class="p">;</span>
-
-     <span class="sr">//</span> <span class="n">Finally</span><span class="p">,</span> <span class="n">commit</span> <span class="n">the</span> <span class="n">transaction</span><span class="o">.</span> 
-     <span class="n">dataset</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span> <span class="p">;</span>
-     <span class="sr">//</span> <span class="n">Or</span> <span class="n">call</span> <span class="o">.</span><span class="n">abort</span><span class="p">()</span>
+     <span class="n">UpdateRequest</span> <span class="n">request</span> <span class="p">=</span> <span class="n">UpdateFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="n">sparqlUpdateString</span><span class="p">)</span> <span class="p">;</span>
+     <span class="n">UpdateProcessor</span> <span class="n">proc</span> <span class="p">=</span> <span class="n">UpdateExecutionFactory</span><span class="p">.</span><span class="n">create</span><span class="p">(</span><span class="n">request</span><span class="p">,</span> <span class="n">graphStore</span><span class="p">)</span> <span class="p">;</span>
+     <span class="n">proc</span><span class="p">.</span><span class="n">execute</span><span class="p">()</span> <span class="p">;</span>
+
+     <span class="o">//</span> <span class="n">Finally</span><span class="p">,</span> <span class="n">commit</span> <span class="n">the</span> <span class="n">transaction</span><span class="p">.</span> 
+     <span class="n">dataset</span><span class="p">.</span><span class="n">commit</span><span class="p">()</span> <span class="p">;</span>
+     <span class="o">//</span> <span class="n">Or</span> <span class="n">call</span> <span class="p">.</span><span class="n">abort</span><span class="p">()</span>
     <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> 
-        <span class="n">dataset</span><span class="o">.</span><span class="n">end</span><span class="p">()</span> <span class="p">;</span> 
+        <span class="n">dataset</span><span class="p">.</span><span class="k">end</span><span class="p">()</span> <span class="p">;</span> 
     <span class="p">}</span>
 </pre></div>
 
@@ -319,21 +319,21 @@ dataset.</p>
 The usual idiom within multi-threaded applications is to have 
 one dataset per thread, and so there is one transaction per thread.</p>
 <p>Thread 1:</p>
-<div class="codehilite"><pre> <span class="n">Dataset</span> <span class="n">dataset</span> <span class="o">=</span> <span class="n">TDBFactory</span><span class="o">.</span><span class="n">createDataset</span><span class="p">(</span><span class="n">location</span><span class="p">)</span> <span class="p">;</span>
- <span class="n">dataset</span><span class="o">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="o">.</span><span class="n">WRITE</span><span class="p">)</span> <span class="p">;</span>
- <span class="n">try</span> <span class="p">{</span>
-   <span class="o">...</span>
-   <span class="n">dataset</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span> <span class="p">;</span>
- <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="o">.</span><span class="n">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+<div class="codehilite"><pre> <span class="n">Dataset</span> <span class="n">dataset</span> <span class="p">=</span> <span class="n">TDBFactory</span><span class="p">.</span><span class="n">createDataset</span><span class="p">(</span><span class="n">location</span><span class="p">)</span> <span class="p">;</span>
+ <span class="n">dataset</span><span class="p">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="p">.</span><span class="n">WRITE</span><span class="p">)</span> <span class="p">;</span>
+ <span class="k">try</span> <span class="p">{</span>
+   <span class="p">...</span>
+   <span class="n">dataset</span><span class="p">.</span><span class="n">commit</span><span class="p">()</span> <span class="p">;</span>
+ <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="p">.</span><span class="k">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
 </pre></div>
 
 
 <p>Thread 2:</p>
-<div class="codehilite"><pre> <span class="n">Dataset</span> <span class="n">dataset</span> <span class="o">=</span> <span class="n">TDBFactory</span><span class="o">.</span><span class="n">createDataset</span><span class="p">(</span><span class="n">location</span><span class="p">)</span> <span class="p">;</span>
- <span class="n">dataset</span><span class="o">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="o">.</span><span class="n">READ</span><span class="p">)</span> <span class="p">;</span>
- <span class="n">try</span> <span class="p">{</span>
-   <span class="o">...</span>
- <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="o">.</span><span class="n">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
+<div class="codehilite"><pre> <span class="n">Dataset</span> <span class="n">dataset</span> <span class="p">=</span> <span class="n">TDBFactory</span><span class="p">.</span><span class="n">createDataset</span><span class="p">(</span><span class="n">location</span><span class="p">)</span> <span class="p">;</span>
+ <span class="n">dataset</span><span class="p">.</span><span class="n">begin</span><span class="p">(</span><span class="n">ReadWrite</span><span class="p">.</span><span class="n">READ</span><span class="p">)</span> <span class="p">;</span>
+ <span class="k">try</span> <span class="p">{</span>
+   <span class="p">...</span>
+ <span class="p">}</span> <span class="n">finally</span> <span class="p">{</span> <span class="n">dataset</span><span class="p">.</span><span class="k">end</span><span class="p">()</span> <span class="p">;</span> <span class="p">}</span>
 </pre></div>
 
 

Modified: websites/staging/jena/trunk/content/documentation/tools/eyeball-getting-started.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tools/eyeball-getting-started.html (original)
+++ websites/staging/jena/trunk/content/documentation/tools/eyeball-getting-started.html Thu Jun 20 10:18:34 2013
@@ -191,7 +191,7 @@ classpath.</p>
 <h2 id="trying-it-out">Trying it out</h2>
 <p>Pick one of your RDF files; we'll call it FOO for now. Run the
 command-line command</p>
-<div class="codehilite"><pre><span class="n">java</span> <span class="n">jena</span><span class="o">.</span><span class="n">eyeball</span> <span class="o">-</span><span class="n">check</span> <span class="n">FOO</span>
+<div class="codehilite"><pre><span class="n">java</span> <span class="n">jena</span><span class="p">.</span><span class="n">eyeball</span> <span class="o">-</span><span class="n">check</span> <span class="n">FOO</span>
 </pre></div>
 
 

Modified: websites/staging/jena/trunk/content/documentation/tools/eyeball-guide.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tools/eyeball-guide.html (original)
+++ websites/staging/jena/trunk/content/documentation/tools/eyeball-guide.html Thu Jun 20 10:18:34 2013
@@ -189,7 +189,7 @@ or <em>.rdf</em> or <em>.owl</em> for RD
 (basic Dublin Core), <em>dcterms</em> (Dublin Core terms) and <em>dc-all</em>
 (both). So you can construct your own schemas, which declare your
 own domain-specific property declarations, and invoke Eyeball with</p>
-<div class="codehilite"><pre><span class="o">-</span><span class="n">assume</span> <span class="n">owl</span> <span class="o">*</span><span class="n">mySchemaFile</span><span class="o">.</span><span class="n">n3</span><span class="o">*</span> <span class="o">*</span><span class="n">otherSchemaFile</span><span class="o">.</span><span class="n">rdf</span><span class="o">*</span>
+<div class="codehilite"><pre><span class="o">-</span><span class="n">assume</span> <span class="n">owl</span> <span class="o">*</span><span class="n">mySchemaFile</span><span class="p">.</span><span class="n">n3</span><span class="o">*</span> <span class="o">*</span><span class="n">otherSchemaFile</span><span class="p">.</span><span class="n">rdf</span><span class="o">*</span>
 </pre></div>
 
 
@@ -198,7 +198,7 @@ schemas, or collections of schemas, usin
 but you'll have to see the <a href="eyeball-manual.html">manual</a> to find out how.</p>
 <h2 id="unknown-class-reports">Unknown class reports</h2>
 <p>You may see messages like this:</p>
-<div class="codehilite"><pre><span class="n">class</span> <span class="ow">not</span> <span class="n">declared</span> <span class="n">in</span> <span class="n">any</span> <span class="n">schema:</span> <span class="n">someClassURI</span>
+<div class="codehilite"><pre><span class="n">class</span> <span class="n">not</span> <span class="n">declared</span> <span class="n">in</span> <span class="n">any</span> <span class="n">schema</span><span class="p">:</span> <span class="n">someClassURI</span>
 </pre></div>
 
 
@@ -208,10 +208,10 @@ declared OntClasses. Then anything used 
 of those declared classes is reported..</p>
 <p>And that's exactly it. "Used as a class" means appearing as <strong>C</strong>
 or <strong>D</strong> in any statement of the form:</p>
-<div class="codehilite"><pre><span class="o">\</span><span class="n">_</span> <span class="n">rdf:type</span> <span class="n">C</span>
-<span class="o">\</span><span class="n">_</span> <span class="n">rdfs:domain</span> <span class="n">C</span>
-<span class="o">\</span><span class="n">_</span> <span class="n">rdfs:range</span> <span class="n">C</span>
-<span class="n">C</span> <span class="n">rdfs:subClassOf</span> <span class="n">D</span>
+<div class="codehilite"><pre><span class="o">\</span><span class="n">_</span> <span class="n">rdf</span><span class="p">:</span><span class="n">type</span> <span class="n">C</span>
+<span class="o">\</span><span class="n">_</span> <span class="n">rdfs</span><span class="p">:</span><span class="n">domain</span> <span class="n">C</span>
+<span class="o">\</span><span class="n">_</span> <span class="n">rdfs</span><span class="p">:</span><span class="n">range</span> <span class="n">C</span>
+<span class="n">C</span> <span class="n">rdfs</span><span class="p">:</span><span class="n">subClassOf</span> <span class="n">D</span>
 </pre></div>
 
 
@@ -236,9 +236,9 @@ the "unknown class" inspector.</p>
 <p>Eyeball checks all the URIs in the model, including (if available)
 those used for namespaces. (And literals, but see below.) Here's an
 example:</p>
-<div class="codehilite"><pre><span class="n">bad</span> <span class="n">namespace</span> <span class="n">URI:</span> <span class="s">&quot;file:some-filename&quot;</span>
-    <span class="n">on</span> <span class="n">prefix:</span> <span class="s">&quot;pqr&quot;</span>
-    <span class="k">for</span> <span class="n">reason:</span> <span class="n">file</span> <span class="n">URI</span> <span class="n">inappropriate</span> <span class="k">for</span> <span class="n">namespace</span>
+<div class="codehilite"><pre><span class="n">bad</span> <span class="n">namespace</span> <span class="n">URI</span><span class="p">:</span> &quot;<span class="n">file</span><span class="p">:</span><span class="n">some</span><span class="o">-</span><span class="n">filename</span>&quot;
+    <span class="n">on</span> <span class="n">prefix</span><span class="p">:</span> &quot;<span class="n">pqr</span>&quot;
+    <span class="k">for</span> <span class="n">reason</span><span class="p">:</span> <span class="n">file</span> <span class="n">URI</span> <span class="n">inappropriate</span> <span class="k">for</span> <span class="n">namespace</span>
 </pre></div>
 
 
@@ -289,8 +289,8 @@ are some possibilities:</p>
 name is <strong>literal</strong> if you want to switch it off), but the checking
 is quite weak because it doesn't understand types at the moment.
 You can get two different classes of error.</p>
-<div class="codehilite"><pre><span class="n">bad</span> <span class="n">language:</span> <span class="n">someLanguageCode</span>
-<span class="n">on</span> <span class="n">literal:</span> <span class="n">theLiteralInQuestion</span>
+<div class="codehilite"><pre><span class="n">bad</span> <span class="n">language</span><span class="p">:</span> <span class="n">someLanguageCode</span>
+<span class="n">on</span> <span class="n">literal</span><span class="p">:</span> <span class="n">theLiteralInQuestion</span>
 </pre></div>
 
 
@@ -301,9 +301,9 @@ with the first containing no digits.</p>
 <p>(Later versions of Eyeball will likely allow you to specify <em>which</em>
 language codes you want to permit in your models. But we haven't
 got there yet.)</p>
-<div class="codehilite"><pre><span class="n">bad</span> <span class="n">datatype</span> <span class="n">URI:</span> <span class="n">someURI</span>
-<span class="n">on</span> <span class="n">literal:</span> <span class="n">theLiteralInQuestion</span>
-<span class="k">for</span> <span class="n">reason:</span> <span class="n">theReason</span>
+<div class="codehilite"><pre><span class="n">bad</span> <span class="n">datatype</span> <span class="n">URI</span><span class="p">:</span> <span class="n">someURI</span>
+<span class="n">on</span> <span class="n">literal</span><span class="p">:</span> <span class="n">theLiteralInQuestion</span>
+<span class="k">for</span> <span class="n">reason</span><span class="p">:</span> <span class="n">theReason</span>
 </pre></div>
 
 
@@ -360,7 +360,7 @@ Eyeball will run by adding to the comman
 
 
 <p>The <strong>all-typed</strong> inspector will generate a message</p>
-<div class="codehilite"><pre><span class="n">resource</span> <span class="n">has</span> <span class="nb">no</span> <span class="n">rdf:type</span>
+<div class="codehilite"><pre><span class="n">resource</span> <span class="n">has</span> <span class="n">no</span> <span class="n">rdf</span><span class="p">:</span><span class="n">type</span>
 </pre></div>
 
 
@@ -383,9 +383,9 @@ the same way as the <strong>all-typed</s
 <p>It checks that every resource which has been given at least one
 type has a type which is a subtype of all its types, under an
 additional assumption:</p>
-<div class="codehilite"><pre><span class="n">Types</span> <span class="n">in</span> <span class="n">the</span> <span class="n">type</span> <span class="n">graph</span> <span class="p">(</span><span class="n">the</span> <span class="n">network</span> <span class="n">of</span> <span class="n">rdfs:subClassOf</span> <span class="n">statements</span><span class="p">)</span>
-<span class="n">are</span> <span class="n">disjoint</span> <span class="p">(</span><span class="n">share</span> <span class="nb">no</span> <span class="n">instances</span><span class="p">)</span> <span class="k">unless</span> <span class="n">the</span> <span class="n">type</span> <span class="n">graph</span> <span class="n">says</span>
-<span class="n">they</span><span class="err">&#39;</span><span class="n">re</span> <span class="ow">not</span><span class="o">.</span>
+<div class="codehilite"><pre><span class="n">Types</span> <span class="n">in</span> <span class="n">the</span> <span class="n">type</span> <span class="n">graph</span> <span class="p">(</span><span class="n">the</span> <span class="n">network</span> <span class="n">of</span> <span class="n">rdfs</span><span class="p">:</span><span class="n">subClassOf</span> <span class="n">statements</span><span class="p">)</span>
+<span class="n">are</span> <span class="n">disjoint</span> <span class="p">(</span><span class="n">share</span> <span class="n">no</span> <span class="n">instances</span><span class="p">)</span> <span class="n">unless</span> <span class="n">the</span> <span class="n">type</span> <span class="n">graph</span> <span class="n">says</span>
+<span class="n">they</span><span class="o">&#39;</span><span class="n">re</span> <span class="n">not</span><span class="p">.</span>
 </pre></div>
 
 
@@ -395,10 +395,10 @@ additional assumption:</p>
 resources which have both <strong>A</strong> and <strong>B</strong> as types. If it finds a
 resource <strong>X</strong> which <em>does</em> have both types, it generates a message
 like this:</p>
-<div class="codehilite"><pre><span class="nb">no</span> <span class="n">consistent</span> <span class="n">type</span> <span class="k">for</span><span class="p">:</span> <span class="n">X</span>
-<span class="n">has</span> <span class="n">associated</span> <span class="n">type:</span> <span class="n">A</span>
-<span class="n">has</span> <span class="n">associated</span> <span class="n">type:</span> <span class="n">B</span>
-<span class="n">has</span> <span class="n">associated</span> <span class="n">type:</span> <span class="n">Top</span>
+<div class="codehilite"><pre><span class="n">no</span> <span class="n">consistent</span> <span class="n">type</span> <span class="k">for</span><span class="p">:</span> <span class="n">X</span>
+<span class="n">has</span> <span class="n">associated</span> <span class="n">type</span><span class="p">:</span> <span class="n">A</span>
+<span class="n">has</span> <span class="n">associated</span> <span class="n">type</span><span class="p">:</span> <span class="n">B</span>
+<span class="n">has</span> <span class="n">associated</span> <span class="n">type</span><span class="p">:</span> <span class="n">Top</span>
 </pre></div>
 
 
@@ -415,8 +415,8 @@ things of a certain type: say, that a bo
 organisation has more than ten managers, a Jena contrib has at
 least a <code>dc:creator</code>, a <code>dc:name</code>, and a <code>dc:description</code>. You
 write some OWL <em>cardinality constraints</em>:</p>
-<div class="codehilite"><pre><span class="err">my:Type</span> <span class="err">rdfs:subClassOf</span> <span class="err">[owl:onProperty</span> <span class="err">my:track;</span>
-<span class="err">owl:minCardinality</span> <span class="err">1]</span>
+<div class="codehilite"><pre><span class="n">my</span><span class="o">:</span><span class="n">Type</span> <span class="n">rdfs</span><span class="o">:</span><span class="n">subClassOf</span> <span class="o">[</span><span class="n">owl</span><span class="o">:</span><span class="n">onProperty</span> <span class="n">my</span><span class="o">:</span><span class="n">track</span><span class="o">;</span>
+<span class="n">owl</span><span class="o">:</span><span class="n">minCardinality</span> <span class="mi">1</span><span class="o">]</span>
 </pre></div>
 
 
@@ -432,12 +432,12 @@ You can enable Eyeball's <em>cardinality
 resource that has <code>rdf:type</code> your restricted type (<code>my:Type</code> above)
 but doesn't have the right (at least one) value for the property.
 It will look something like:</p>
-<div class="codehilite"><pre><span class="n">cardinality</span> <span class="n">failure</span> <span class="k">for</span><span class="p">:</span> <span class="k">my</span><span class="p">:</span><span class="n">Instance</span>
-    <span class="n">on</span> <span class="n">type:</span> <span class="k">my</span><span class="p">:</span><span class="n">Type</span>
-    <span class="n">on</span> <span class="n">property:</span> <span class="k">my</span><span class="p">:</span><span class="n">track</span>
-    <span class="n">cardinality</span> <span class="n">range:</span> <span class="p">[</span><span class="n">min:</span> <span class="mi">1</span><span class="p">]</span>
-    <span class="n">number</span> <span class="n">of</span> <span class="nb">values</span><span class="p">:</span> <span class="mi">0</span>
-    <span class="nb">values</span><span class="p">:</span> <span class="p">{}</span>
+<div class="codehilite"><pre><span class="n">cardinality</span> <span class="n">failure</span> <span class="k">for</span><span class="p">:</span> <span class="n">my</span><span class="p">:</span><span class="n">Instance</span>
+    <span class="n">on</span> <span class="n">type</span><span class="p">:</span> <span class="n">my</span><span class="p">:</span><span class="n">Type</span>
+    <span class="n">on</span> <span class="n">property</span><span class="p">:</span> <span class="n">my</span><span class="p">:</span><span class="n">track</span>
+    <span class="n">cardinality</span> <span class="n">range</span><span class="p">:</span> <span class="p">[</span><span class="n">min</span><span class="p">:</span> 1<span class="p">]</span>
+    <span class="n">number</span> <span class="n">of</span> <span class="n">values</span><span class="p">:</span> 0
+    <span class="n">values</span><span class="p">:</span> <span class="p">{}</span>
 </pre></div>
 
 



Mime
View raw message