From dedc46dcad1e362dddca5b13a3bba086ccc85344 Mon Sep 17 00:00:00 2001 From: Kjetil Kjernsmo Date: Fri, 15 Oct 2021 14:11:11 +0200 Subject: [PATCH 1/2] Suggest that other SPARQL Update operations shouldn't be supported --- protocol.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.html b/protocol.html index 5e143060..5d713e95 100644 --- a/protocol.html +++ b/protocol.html @@ -709,7 +709,7 @@

Writing Resources

Servers MAY further support SPARQL 1.1 Update [SPARQL], except that servers MUST NOT allow a request with a PATCH method to change other resources than the target resource. [Source] Servers that receives a request body containing a SPARQL query that falls outside of the subset they are able to process MUST respond with a 422 status code [RFC4918] and a message body that explains the error. - + SPARQL Update also defines operations LOAD, CLEAR, CREATE, DROP, and ADD that have an equivalent operation in this protocol. Servers that receives a PATCH request body containing these operations SHOULD respond with a 422 status code [RFC4918] and a message body that explains the error, or MUST ensure that any access control measures apply.

From 26caabebc9be54e0691183d29e7651daee1bd41a Mon Sep 17 00:00:00 2001 From: Kjetil Kjernsmo Date: Fri, 15 Oct 2021 14:18:07 +0200 Subject: [PATCH 2/2] Do not allow any other operations --- protocol.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.html b/protocol.html index 5d713e95..788f6f46 100644 --- a/protocol.html +++ b/protocol.html @@ -709,7 +709,7 @@

Writing Resources

Servers MAY further support SPARQL 1.1 Update [SPARQL], except that servers MUST NOT allow a request with a PATCH method to change other resources than the target resource. [Source] Servers that receives a request body containing a SPARQL query that falls outside of the subset they are able to process MUST respond with a 422 status code [RFC4918] and a message body that explains the error. - SPARQL Update also defines operations LOAD, CLEAR, CREATE, DROP, and ADD that have an equivalent operation in this protocol. Servers that receives a PATCH request body containing these operations SHOULD respond with a 422 status code [RFC4918] and a message body that explains the error, or MUST ensure that any access control measures apply. + SPARQL Update [SPARQL] also defines operations LOAD, CLEAR, CREATE, DROP, COPY, MOVE and ADD. Servers that receives a PATCH request body containing these operations SHOULD respond with a 422 status code [RFC4918] and a message body that explains the error, or MUST ensure that any access control measures apply.