The SPARQL Graph Store Protocol Test DELETE - existing graph has an incorrect expected result. The standard states If there is no such RDF graph content in the Graph Store, the server MUST respond with a 404 Not Found response code. The graph being deleted - <http://$HOST/$GRAPHSTORE$/person/2.ttl> - does not exist so the correct response should be 404 Not Found like it is for DELETE - non-existent graph.
The intent is clear though: a graph that exists and is DELETEd should result in response code 200 or 204. The interesting questions seems to me how to best resolve this. <http://$HOST$/$GRAPHSTORE$/person/1.ttl> is still required later on. So I see two ways to resolve this:
- Create a graph for this test to drop it
- Drop the default graph which is only used before this test
The SPARQL Graph Store Protocol Test
DELETE - existing graphhas an incorrect expected result. The standard statesIf there is no such RDF graph content in the Graph Store, the server MUST respond with a 404 Not Found response code.The graph being deleted -<http://$HOST/$GRAPHSTORE$/person/2.ttl>- does not exist so the correct response should be404 Not Foundlike it is forDELETE - non-existent graph.The intent is clear though: a graph that exists and is
DELETEd should result in response code200or204. The interesting questions seems to me how to best resolve this.<http://$HOST$/$GRAPHSTORE$/person/1.ttl>is still required later on. So I see two ways to resolve this: