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 SPARQL update parsing to handle arbitrary amounts of triples in inserts #1340

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Jun 20, 2021

pyparsing handling of recursive rules is limited by python's recursion limit
and the rule that should handle multiple triples in data inserts is
recursive.

The consequence of this is that the amount of triples that can be
inserted becomes limited by python's recursion limit.

To address this the rule has been rewritten to not be recursive.

@rchateauneu thanks for the help with rule rewriting.

Fixes #1336

Proposed Changes

@aucampia aucampia marked this pull request as ready for review June 20, 2021 15:34
@aucampia aucampia marked this pull request as draft June 20, 2021 18:55
@aucampia aucampia marked this pull request as ready for review June 20, 2021 20:19
@aucampia aucampia changed the title Add failing unit test for #1336 Fix SPARQL update parsing to handle arbitrary amounts of triples in inserts Jun 20, 2021
…nserts

pyparsing handling of recursive rules is limited by python's recursion limit
and the rule that should handle multiple triples in data inserts is
recursive.

The consequence of this is that the amount of triples that can be
inserted becomes limited by python's recursion limit.

To address this the rule has been rewritten to not be recursive.

@rchateauneu thanks for the help with rule rewriting.
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.

Good fix

@nicholascar nicholascar merged commit 531c3f0 into RDFLib:master Jun 29, 2021
@aucampia aucampia deleted the iwana-issue1336 branch November 17, 2021 19:30
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.

A Recursionerror exception is raised if the SPARQL UPDATE query string contains more than 90 triples
3 participants