Re: Getting the Address Book to work with read-write-web servers

On Thu, 27 Oct 2011 14:44:13 +0200
Henry Story <henry.story@bblfish.net> wrote:

>  1. POSTing a SPARQL query or update on an rdf resource updates it

Seen this? http://www.w3.org/TR/sparql11-http-rdf-update/ Summary...
(and where I say text/turtle, assume other RDF is allowed too)

1. retrieve a graph:
   GET /resource
2. create or replace a graph:
   PUT /resource
   Content-Type: text/turtle
3. delete a graph:
   DELETE /resource
4. append to a graph:
   POST /resource
   Content-Type: text/turtle
5. otherwise modify a graph:
   PATCH /resource
   Content-Type: application/sparql-update

My current DataWiki implementation supports all of the above, plus:

6. otherwise modify a graph (alternative):
   POST /resource
   Content-Type: application/sparql-update
7. otherwise modify a graph (alternative 2):
   POST /resource
   Content-Type: application/x-www-form-urlencoded
   update=...
8. query
   POST /resource
   Content-Type: application/sparql-query
9. query (alternative)
   POST /resource
   Content-Type: application/x-www-form-urlencoded
   query=...
10. query (alternative 2)
   GET /resource?query=...


-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Sunday, 13 November 2011 00:52:43 UTC