Skip to content

SPARQLStore returns Exception when query from fuseki #1632

Answered by ghost
cz23773 asked this question in Q&A
Discussion options

You must be logged in to vote

The error suggests that your issue is caused by backwards-incompatible changes in pyparsing 3.0 which you can resolve by reverting to pyparsing 2.4.7

$ pip uninstall pyparsing
$ pip install pyparsing==2.4.7

or, if that's a problem, applying the following patch:

diff --git a/rdflib/plugins/sparql/parserutils.py b/rdflib/plugins/sparql/parserutils.py
index 29804eea..24ad6d9b 100644
--- a/rdflib/plugins/sparql/parserutils.py
+++ b/rdflib/plugins/sparql/parserutils.py
@@ -111,9 +111,9 @@ class Param(TokenConverter):
     """
 
     def __init__(self, name, expr, isList=False):
-        self.name = name
         self.isList = isList
         TokenConverter.__init__(self, expr)
+        self.se…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CaptSolo
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1458 on December 29, 2021 16:47.