Hi,
I'm getting a segmentation fault using the following query taken from here: http://www.w3.org/TR/rdf-sparql-query/#GroupPatterns PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?mbox WHERE { { ?x foaf:name ?name . } { ?x foaf:mbox ?mbox . } } To repeat in the python interpreter: >>> x = """PREFIX foaf: <http://xmlns.com/foaf/0.1/> ... SELECT ?name ?mbox ... WHERE { { ?x foaf:name ?name . } ... { ?x foaf:mbox ?mbox . } ... }""" >>> from rdflib.sparql.bison import SPARQLParserc >>> p = SPARQLParserc.new(debug=1) >>> p.parse(x) . snippet . Entering state 130 Reading a token: using rule from SPARQLLexerPatterns.bgen.frag[122], using rule from SPARQLLiteralLexerPatterns.bgen.frag[165], accepting '}' (324) Next token is 324 (RIGHT_CURLY) Reducing via rule 55 (SPARQL.bgen: line 639), GroupGraphPattern -> GraphPatternNotTriples --GraphPatternNotTriples({ [<SPARQLParser.GraphPattern: [[?x [foaf:mbox([u'?mbox'])]]]>] }) state stack now 0 3 9 21 25 26 63 131 63 Entering state 131 Next token is 324 (RIGHT_CURLY) Reducing via rule 118 (SPARQLTurtleSuperSet.bgen.frag: line 6), -> FilteredBasicGraphPattern --FilteredBasicGraphPattern() state stack now 0 3 9 21 25 26 63 131 63 131 Entering state 63 Next token is 324 (RIGHT_CURLY) Reducing via rule 51 (SPARQL.bgen: line 563), FilteredBasicGraphPattern -> GraphPattern --GraphPattern([]) state stack now 0 3 9 21 25 26 63 131 63 131 Entering state 199 Reducing via rule 52 (SPARQL.bgen: line 571), FilteredBasicGraphPattern GraphPatternNotTriples GraphPattern -> GraphPattern --GraphPattern([], , [<SPARQLParser.EmptyGraphPattern>]) state stack now 0 3 9 21 25 26 63 131 Entering state 199 Reducing via rule 52 (SPARQL.bgen: line 571), FilteredBasicGraphPattern GraphPatternNotTriples GraphPattern -> GraphPattern --GraphPattern([], <refcnt 2560751698 at 0xb7b8886c>, [Segmentation fault
_______________________________________________ Dev mailing list Dev@rdflib.net http://rdflib.net/mailman/listinfo/dev