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

svn commit: r1830955 - /jena/site/trunk/content/documentation/query/generate-json-from-sparql.mdtext

Author: kinow
Date: Sat May  5 07:53:52 2018
New Revision: 1830955

URL: http://svn.apache.org/viewvc?rev=1830955&view=rev
Log:
JENA-632: re-word last paragraph, adding a Linux shell example call

Modified:
    jena/site/trunk/content/documentation/query/generate-json-from-sparql.mdtext

Modified: jena/site/trunk/content/documentation/query/generate-json-from-sparql.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/query/generate-json-from-sparql.mdtext?rev=1830955&r1=1830954&r2=1830955&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/query/generate-json-from-sparql.mdtext (original)
+++ jena/site/trunk/content/documentation/query/generate-json-from-sparql.mdtext Sat May  5 07:53:52 2018
@@ -113,8 +113,17 @@ of ARQ beforehand, when creating the `Qu
 
 ## Fuseki Support
 
-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.
+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.
+
+    curl -XPOST --data "query=JSON { 'name' : ?name, 'age': ?age } WHERE {  }" http://localhost:3030/ds/query
+
+At the moment the support for remote calls has not been implemented in `QueryEngineHTTP`, so creating
+the `QueryExecutor` programmatically in Java for a remote call would result in an exception.
+
+The web interface editor parses the SPARQL implementation syntax, so syntax errors are expected
+in the web editor at this moment when using the `JSON` clause. The query should still be correctly
+executed, and the results displayed as with other normal SPARQL queries.
 
 [ARQ documentation index](index.html)