Skip to content
Permalink
Browse files
Some fixes
  • Loading branch information
afs committed Sep 27, 2021
1 parent 52da1a6 commit 5ae8d21026fe59955433ae478080c95728370918
Showing 2 changed files with 9 additions and 11 deletions.
@@ -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 "" ;
@@ -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

0 comments on commit 5ae8d21

Please sign in to comment.