-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for N3 Patch #1122
Conversation
One thing I forgot to do in this PR (just saw it in my notes but forgot to implement): the n3 patch and sparql update body parsers should be wrapped in a class that only can handle PATCH requests. Probably the same class as in #1119 . Otherwise it would be impossible to store non-patch N3 documents after this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! Good to have this in.
@@ -14,11 +14,11 @@ | |||
{ | |||
"comment": "Makes sure PATCH operations on containers target the metadata.", | |||
"@type": "ContainerPatcher", | |||
"patcher": { "@type": "SparqlUpdatePatcher" } | |||
"patcher": { "@id": "urn:solid-server:default:PatchHandler_Type" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the _Type
suffix weird. Why is it not just urn:solid-server:default:PatchHandlers
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find that to be a bit too generic. Could go for urn:solid-server:default:PatchHandler_RDF
since this is the handler that is wrapped by other patch handlers that convert to quads first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect.
7ddc716
to
e3e3982
Compare
4078642
to
ecb6681
Compare
📁 Related issues
Closes #1060
✍️ Description
Depends on #1119 due to changes in the PATCH configuration there.
Fully adds support for N3 patch as described in the spec.
Integration tests are based on those in NSS, making N3 Patch probably the most comprehensively tested part of the codebase.