Repository navigation
DELETE operation - #70
Open
namedgraph wants to merge 1 commit into
Open
namedgraph wants to merge 1 commit into
namedgraph wants to merge 1 commit into
Conversation
As the Graph Store Protocol's DELETE, sent conditionally with If-Match like every other write. Returns the one-row status/url result; a non-2xx answer (404 for a missing document) is an error, and a DELETE counts as a write to its URI for an enclosing ForEach. Destructive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
DELETE(url: URI) → Result, following the conventions ofPOST/PUT/PATCH.formal-semantics.md): a §4.4 entry;DELETEadded to the update effects (§3.6), the write row of the error table (§3.7) and the upper-case HTTP method names (§4). §5 notes that REST-VKG does not implement it yet.DELETE. It goes through the client's conditional write path (HEAD→If-Match). It returns the one-rowstatus/urlresult, withurlbeing the URI removed. Any non-2xx answer is aValueError,404for a missing document included; there is noif_absent. It counts as a write to its URI for theForEachsame-target rule. Kind:destructive.## DELETE(url: URI) → Resultsection with an example, which the guide tests run.DELETEjoins the shared write contract (test_write_contract.py). Newtests/unit/test_delete.pycovers the type errors, the404, the JSON arguments and theForEachcases. The name and kind tests include it.tests/test_client_writes.pyis removed: it existed because no operation sent a DELETE, and the write contract now covers itsIf-Matchcheck.CHANGELOG.md: a new2.0.4 - Unreleasedsection.README.md:DELETEadded to the operation list.ruff checkand the offline suite pass (1154 passed, 7 skipped). Not run yet:-m ldhagainst a LinkedDataHub, to see its answer toDELETE(e.g. on a container with children).🤖 Generated with Claude Code