Skip to content
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

Fix issue1032 error on sparqlstore update #1623

Merged
merged 2 commits into from Dec 28, 2021
Merged

Fix issue1032 error on sparqlstore update #1623

merged 2 commits into from Dec 28, 2021

Conversation

ghost
Copy link

@ghost ghost commented Dec 28, 2021

Fixes #1032

Proposed Changes

  • Add missing update() method which returns "Store not writeable" Exception.

Graham Higgins and others added 2 commits December 27, 2021 13:23
Fixes uncontrolled TypeError produced by `SPARQLStore.update()`
@nicholascar nicholascar self-requested a review December 28, 2021 22:47
Copy link
Member

@nicholascar nicholascar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving and merging without a second review as it's a straightforward fix

@nicholascar nicholascar merged commit a863a72 into RDFLib:master Dec 28, 2021
Copy link
Member

@aucampia aucampia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a PR to add tests to your banch (https://github.com/gjhiggins/rdflib/pull/1)

Change looks good, TypeError may not be the best exception to raise for this situation and I think NotImplementedError may be better, but since all other modification methods raise TypeError it makes most sense to do the same for SPARQLStore.update. We can look at changing all exceptions later versions (noted here #1628). As a side note on this, TypeError is handled differently from other exceptions in many places: see #1524 for example.

@ghost ghost deleted the fix-issue1032-error-on-sparqlstore-update branch December 28, 2021 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graph.update with SPARQLStore should return Exception
2 participants