jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r915095 - in /websites/staging/jena/trunk/content: ./ documentation/query/app_api.html
Date Sat, 05 Jul 2014 14:54:31 GMT
Author: buildbot
Date: Sat Jul  5 14:54:30 2014
New Revision: 915095

Log:
Staging update by buildbot for jena

Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/query/app_api.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Jul  5 14:54:30 2014
@@ -1 +1 @@
-1607483
+1608027

Modified: websites/staging/jena/trunk/content/documentation/query/app_api.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/query/app_api.html (original)
+++ websites/staging/jena/trunk/content/documentation/query/app_api.html Sat Jul  5 14:54:30
2014
@@ -162,8 +162,7 @@ package.</p>
 <li><code>QueryExecution</code> - represents one execution of a query.</li>
 <li><code>QueryExecutionFactory</code> - a place to get <code>QueryExecution</code>
     instances</li>
-<li><code>DatasetFactory</code> - a place to make datasets, including making
a
-    <code>DataSource</code> (an updatable <code>Dataset</code>)</li>
+<li><code>DatasetFactory</code> - a place to make datasets</li>
 <li>For SELECT queries:<ul>
 <li><code>QuerySolution</code> - A single solution to the query</li>
 <li><code>ResultSet</code> - All the QuerySolutions. An iterator.</li>
@@ -321,13 +320,12 @@ more named graphs. Datasets can be const
 </pre></div>
 
 
-<p>Already existing models can also be used: A <code>DataSource</code>
is an
-updatable dataset:</p>
-<div class="codehilite"><pre><span class="n">DataSource</span> <span
class="n">dataSource</span> <span class="p">=</span> <span class="n">DatsetFactory</span><span
class="p">.</span><span class="n">create</span><span class="p">()</span>
<span class="p">;</span>
-<span class="n">dataSource</span><span class="p">.</span><span
class="n">setDefaultModel</span><span class="p">(</span><span class="n">model</span><span
class="p">)</span> <span class="p">;</span>
-<span class="n">dataSource</span><span class="p">.</span><span
class="n">addNamedModel</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">named</span><span
class="o">-</span>1&quot;<span class="p">,</span> <span class="n">modelX</span><span
class="p">)</span> <span class="p">;</span>
-<span class="n">dataSource</span><span class="p">.</span><span
class="n">addNamedModel</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">named</span><span
class="o">-</span>2&quot;<span class="p">,</span> <span class="n">modelY</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">dataSource</span><span
class="p">)</span> <span class="p">;</span>
+<p>Already existing models can also be used:</p>
+<div class="codehilite"><pre><span class="n">Dataset</span> <span
class="n">dataset</span> <span class="p">=</span> <span class="n">DatasetFactory</span><span
class="p">.</span><span class="n">create</span><span class="p">()</span>
<span class="p">;</span>
+<span class="n">dataset</span><span class="p">.</span><span class="n">setDefaultModel</span><span
class="p">(</span><span class="n">model</span><span class="p">)</span>
<span class="p">;</span>
+<span class="n">dataset</span><span class="p">.</span><span class="n">addNamedModel</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">named</span><span class="o">-</span>1&quot;<span class="p">,</span>
<span class="n">modelX</span><span class="p">)</span> <span class="p">;</span>
+<span class="n">dataset</span><span class="p">.</span><span class="n">addNamedModel</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">named</span><span class="o">-</span>2&quot;<span class="p">,</span>
<span class="n">modelY</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">dataset</span><span
class="p">)</span> <span class="p">;</span>
 </pre></div>
 
 



Mime
View raw message