You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by bu...@apache.org on 2018/05/05 07:54:31 UTC

svn commit: r1029445 - in /websites/staging/jena/trunk/content: ./ documentation/query/generate-json-from-sparql.html

Author: buildbot
Date: Sat May  5 07:54:31 2018
New Revision: 1029445

Log:
Staging update by buildbot for jena

Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/query/generate-json-from-sparql.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat May  5 07:54:31 2018
@@ -1 +1 @@
-1830954
+1830955

Modified: websites/staging/jena/trunk/content/documentation/query/generate-json-from-sparql.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/query/generate-json-from-sparql.html (original)
+++ websites/staging/jena/trunk/content/documentation/query/generate-json-from-sparql.html Sat May  5 07:54:31 2018
@@ -290,9 +290,18 @@ of ARQ beforehand, when creating the <co
 
 
 <h2 id="fuseki-support">Fuseki Support<a class="headerlink" href="#fuseki-support" title="Permanent link">&para;</a></h2>
-<p>JSON queries work correctly in the Fuseki web interface, but at the moment the support for
-remote calls has not been implemented. The web interface editor parses the SPARQL implementation
-syntax, so syntax errors are expected at this moment when using the 'JSON' clause.</p>
+<p>Users are able to use Fuseki web interface, as well as the other HTTP endpoints to submit
+queries using any programming language. The following example shows how to POST to the query
+endpoint passing the query as a form data field.</p>
+<div class="codehilite"><pre><span class="n">curl</span> <span class="o">-</span><span class="n">XPOST</span> <span class="o">--</span><span class="n">data</span> &quot;<span class="n">query</span><span class="p">=</span><span class="n">JSON</span> <span class="p">{</span> <span class="s">&#39;name&#39;</span> <span class="p">:</span> ?<span class="n">name</span><span class="p">,</span> <span class="s">&#39;age&#39;</span><span class="p">:</span> ?<span class="n">age</span> <span class="p">}</span> <span class="n">WHERE</span> <span class="p">{</span>  <span class="p">}</span>&quot; <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">localhost</span><span class="p">:</span>3030<span class="o">/</span><span class="n">ds</span><span class="o">/</span><span class="n">query</span>
+</pre></div>
+
+
+<p>At the moment the support for remote calls has not been implemented in <code>QueryEngineHTTP</code>, so creating
+the <code>QueryExecutor</code> programmatically in Java for a remote call would result in an exception.</p>
+<p>The web interface editor parses the SPARQL implementation syntax, so syntax errors are expected
+in the web editor at this moment when using the <code>JSON</code> clause. The query should still be correctly
+executed, and the results displayed as with other normal SPARQL queries.</p>
 <p><a href="index.html">ARQ documentation index</a></p>
   </div>
 </div>