You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2021/09/27 15:56:17 UTC

[jena-site] branch main updated: Some fixes

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 5ae8d21  Some fixes
5ae8d21 is described below

commit 5ae8d21026fe59955433ae478080c95728370918
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Mon Sep 27 16:55:34 2021 +0100

    Some fixes
---
 source/documentation/shacl/__index.md       |  2 +-
 source/documentation/sparql-apis/__index.md | 18 ++++++++----------
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/source/documentation/shacl/__index.md b/source/documentation/shacl/__index.md
index d47bcc2..1398623 100644
--- a/source/documentation/shacl/__index.md
+++ b/source/documentation/shacl/__index.md
@@ -42,7 +42,7 @@ separated by "," and format `all` outputs all 3 formats.
 Fuseki has a new service operation `fuseki:shacl`:
 
 <pre>
-&lt;#serviceInMemoryShacl&gt; rdf:type fuseki:Service ;
+&lt;#serviceWithShacl&gt; rdf:type fuseki:Service ;
     rdfs:label                   "Dataset with SHACL validation" ;
     fuseki:name                  "<i>ds</i>" ;
     fuseki:serviceReadWriteGraphStore "" ;
diff --git a/source/documentation/sparql-apis/__index.md b/source/documentation/sparql-apis/__index.md
index ccc594c..8649df4 100644
--- a/source/documentation/sparql-apis/__index.md
+++ b/source/documentation/sparql-apis/__index.md
@@ -354,7 +354,6 @@ The main function is `AuthEnv.get().registerUsernamePassword`.
 ```java
    ...
    try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL)
-        // No httpClient
         .endpoint(dataURL)
         .queryString("ASK{}")
         .build()) {
@@ -379,15 +378,14 @@ If the `userinfo` is of the form "username:password" then the information as giv
 used.
 
 ```
-        AuthEnv.get().registerUsernamePassword(URI.create("http://host/sparql"), "u", "p");
-
-        // Registration applies to SERVICE.
-        Query query = QueryFactory.create("SELECT * { SERVICE <http://host/sparql> { ?s ?p ?o } }");
-        try ( QueryExecution qExec = QueryExecution.create().query(query).dataset(...).build() ) {
-            System.out.println("Call using SERVICE...");
-            ResultSet rs = qExec.execSelect();
-            ResultSetFormatter.out(rs);
-        }
+    AuthEnv.get().registerUsernamePassword(URI.create("http://host/sparql"), "u", "p");
+     // Registration applies to SERVICE.
+    Query query = QueryFactory.create("SELECT * { SERVICE <http://host/sparql> { ?s ?p ?o } }");
+    try ( QueryExecution qExec = QueryExecution.create().query(query).dataset(...).build() ) {
+        System.out.println("Call using SERVICE...");
+        ResultSet rs = qExec.execSelect();
+        ResultSetFormatter.out(rs);
+    }
 ```
 
 ## Environment