-
Notifications
You must be signed in to change notification settings - Fork 18
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
SPARQL update support #19
Conversation
The builds seem to be failing because of a missing SonarCloud key? |
1bc23d5
to
1e2d82f
Compare
Yes, no problem, I'll fix the workflow so that it does not try to push coverage when it's a PR, you should be able to rebase easily since you made no changes to the workflows Thanks a lot @steve-bate! Really nice improvements! Users can easily choose to enable or disable update, and set an API key. Just one thing: I know Would it be possible to make the changes to have only a |
Yasgui uses an
However, after rereading that section, it appears that |
1e2d82f
to
856d9ad
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #19 +/- ##
==========================================
- Coverage 94.37% 94.20% -0.17%
==========================================
Files 4 4
Lines 231 259 +28
==========================================
+ Hits 218 244 +26
- Misses 13 15 +2 ☔ View full report in Codecov by Sentry. |
Thanks for digging up the specs @steve-bate ! They don't make it really clear, but I think there is nothing in there that prevents to use the same API endpoint for query and update, they never mention they should be distinct endpoints I asked chatGPT 4 to preprocess it for us and according to it: Based on the specification for the SPARQL Protocol that you provided, it is indeed possible to use the same API endpoint to serve both query and update operations. The protocol defines different HTTP methods and content types for distinguishing between query and update requests, allowing them to be processed differently even if they are sent to the same endpoint. Key Points:
Implementation Considerations:
I noticed that to push changes you are fixing and force-pushing the original commit, which makes it really hard to see the evolution of your implementation Please don't do it in the future! Especially when contributing to another repository (even for you own repo, you will see with the time it is nicer to have many commits to manage your code) It is much better for the reviewers (and you!) to create multiple commits, even if some of the changes you made in the first commits are overridden latter. This way we can better see the different changes that the code went through |
Maybe I'm misunderstanding your comments. This PR supports both types of requests being performed with the same URL. For example a POST to |
You are right @steve-bate, I just checked it more in details on my laptop, and your implementation seems to fit perfectly the specs defined on the w3c website for update And I see that YASGUI automatically set the Really nice job, thanks for all the improvements! |
RDFLIB_APIKEY
can be used to authorize updates.data
arguments so the content-type will be set correctly.@vemonet
Closes #17