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 2022/05/04 21:08:17 UTC

[jena-site] 01/06: Update for GSP and quads

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

commit 1435ccb54511138bc3283d09a10dbf754b23d8ee
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sun Feb 6 18:02:11 2022 +0000

    Update for GSP and quads
---
 .../fuseki2/fuseki-config-endpoint.md              |  8 ++--
 source/documentation/fuseki2/fuseki-embedded.md    | 43 +++++++++++-----------
 2 files changed, 25 insertions(+), 26 deletions(-)

diff --git a/source/documentation/fuseki2/fuseki-config-endpoint.md b/source/documentation/fuseki2/fuseki-config-endpoint.md
index 3813a6c82..42996def2 100644
--- a/source/documentation/fuseki2/fuseki-config-endpoint.md
+++ b/source/documentation/fuseki2/fuseki-config-endpoint.md
@@ -172,7 +172,7 @@ form with field "update=".
 
 A GSP operation has `?default` or `?graph=`.
 
-Quads operations have no query string and a have a `Content-Type` for a data in
+Quads operations are also provided by GSP endpoints when there is no query string and a have a `Content-Type` for a data in
 a RDF triples or quads syntax.
 
 So, for example "GET /dataset" is a request to get all the triples and quads in the
@@ -257,10 +257,10 @@ GET, POST, PUT (not DELETE, that would be the dataset itself),
 and the request or response is one of the syntaxes for datasets
 (TriG, N-Quads, JSON-LD, TriX).
 
-Fuseki also provides [/documentation/io/rdf-binary.html](RDF Binary) for triples and quads.
+The DSP ("Dataset Store Protocol") operations provide operations similar to GSP
+but operating on the dataset, not a speciifc graph.
 
-The quads extension applies when there is no `?default` or `?graph`. 
-`GET` fetches the dataset in quads format, and `PUT` and `POST` take quads format data (N-Quads and Trig).
+Fuseki also provides [/documentation/io/rdf-binary.html](RDF Binary) for triples and quads.
 
 ## Context
 
diff --git a/source/documentation/fuseki2/fuseki-embedded.md b/source/documentation/fuseki2/fuseki-embedded.md
index a74ed42df..c39b44875 100644
--- a/source/documentation/fuseki2/fuseki-embedded.md
+++ b/source/documentation/fuseki2/fuseki-embedded.md
@@ -91,7 +91,7 @@ To silence logging from Java, try:
 
 ## Building a server {#build}
 
-A ``FusekiServer`` is built by creating a configuration,
+A `FusekiServer` is built by creating a configuration,
 building the server, then running it.  The application needs to start
 the server.
 
@@ -112,16 +112,17 @@ dataset that can be updated via HTTP.
     ...
     server.stop() ;
 
+The services are avilable on a named endpoint and also on the dataset URL itself.
+
 URLs:
 
-| Service | Endpoint |
-|---------|----------|
-| SPARQL Query      | ``http://host:3330/ds/query``   |
-| SPARQL Query      | ``http://host:3330/ds/sparql``  |
-| SPARQL Update     | ``http://host:3330/ds/update``  |
-| File upload       | ``http://host:3330/ds/update``  |
-| GSP read-write    | ``http://host:3330/ds/data``    |
-| Read-write quads  | ``http://host:3330/ds``         |
+| Service | Endpoint1 | Endpoint2 |
+|---------|----------|------------|
+| SPARQL Query   | `http://host:3330/ds/query`   | `http://host:3330/ds` |
+| SPARQL Query   | `http://host:3330/ds/sparql`  | `http://host:3330/ds` |
+| SPARQL Update  | `http://host:3330/ds/update`  | `http://host:3330/ds` |
+| GSP read-write | `http://host:3330/ds/data`    | `http://host:3330/ds` |
+
 
 "GSP" = SPARQL Graph Store Protocol
 
@@ -132,16 +133,15 @@ set that is read-only over HTTP. The application can still update the dataset.
     Dataset ds = ... ;
     FusekiServer server = FusekiServer.create()
         .port(3332)
-        .add("/ds", ds, true)
+        .add("/ds", ds, false)
         .build() ;
     server.start() ;
 
-| Service | Endpoint |
-|---------|----------|
-| SPARQL Query   | ``http://host:3332/ds/query``   |
-| SPARQL Query   | ``http://host:3332/ds/sparql``  |
-| GSP read-only  | ``http://host:3332/ds/data``    |
-| GET quads      | ``http://host:3332/ds``         |
+| Service | Endpoint | Endpoint2 |
+|---------|----------|-----------|
+| SPARQL Query  | `http://host:3332/ds/query`  | `http://host:3332/ds` |
+| SPARQL Query  | `http://host:3332/ds/sparql` | `http://host:3332/ds` |
+| GSP read-only | `http://host:3332/ds/data`   | `http://host:3332/ds` |
 
 ### Example 3
 
@@ -149,7 +149,7 @@ Different combinations of services and endpoint names can be given using a `Data
 
     DatasetGraph dsg = ... ;
     DataService dataService = new DataService(dsg) ;
-    dataService.addEndpoint(OperationName.Quads_RW, "");
+    dataService.addEndpoint(OperationName.GSP_RW, "");
     dataService.addEndpoint(OperationName.Query, "");
     dataService.addEndpoint(OperationName.Update, "");
 
@@ -159,15 +159,14 @@ Different combinations of services and endpoint names can be given using a `Data
        .build() ;
     server.start() ;
 
-This setup puts all the operation on the dataset URL. The ``Content-type`` and any query
+This setup puts all the operation on the dataset URL. The `Content-type` and any query
 string is used to determine the operation.
 
 | Service | Endpoint |
 |---------|----------|
-| SPARQL Query    | ``http://host:3332/ds``  |
-| SPARQL Update   | ``http://host:3332/ds``  |
-| GSP read-only   | ``http://host:3332/ds``  |
-| GET/POST quads  | ``http://host:3332/ds``  |
+| SPARQL Query    | `http://host:3332/ds`  |
+| SPARQL Update   | `http://host:3332/ds`  |
+| GSP read-write  | `http://host:3332/ds`  |
 
 ### Example 4