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

Feature prepareupdate #1624

Merged
merged 3 commits into from Dec 28, 2021
Merged

Feature prepareupdate #1624

merged 3 commits into from Dec 28, 2021

Conversation

ghost
Copy link

@ghost ghost commented Dec 28, 2021

Fixes #272
Slightly speculative, other option is close #272 with wontfix

Proposed Changes

Basically, follow the pattern established in prepareQuery

  • Create an Update class
  • Add a prepareUpdate to processor.py
  • Propagate pattern
  • Add test.

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.

Looks great.

Notes for other reviewers: I checked that all uses of rdflib.plugins.sparql.algebra.translateUpdate will work with new return value, and they will since they all just pass to rdflib.plugins.sparql.update.evalUpdate's second parameter, update and this function was updated to access update.algebra instead of update.

@nicholascar nicholascar self-requested a review December 28, 2021 23:06
@nicholascar nicholascar merged commit 75c545e into RDFLib:master Dec 28, 2021
@ghost ghost deleted the feature-prepareupdate branch December 29, 2021 15:45
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.

prepareUpdate method for pre-parsing SPARQL update statements
3 participants