RDFLib/rdflibissueplayground — Issue #18: Sparql construct query fails if "construct" in lower case
Author: gjhiggins
Created: 2012-02-20 07:43:38+00:00
State: open

gromgull, 2011-01-28T21:50:09.000Z

(copied from http://code.google.com/p/rdflib/issues/detail?id=124)

What steps will reproduce the problem?
1. Try a sparql query using "construct" instead of "CONSTRUCT"
2.
3.

What is the expected output? What do you see instead?
Example error...
SyntaxError: lexical error at line 1, column 58: no action found for
'construct { ?s swb:label ?o } where { ?s swb:label ?o . }'

What version of the product are you using? On what operating system?
2.4.1. From inspecting source it looks like annoyance exists in 2.4.2 as well.
Suse linux 10.1

Please provide any additional information below.

The probable cause is line 51 of lexical analyzer:

./src/bison/SPARQLLiteralLexerPatterns.bgen.frag

CONSTRUCT

should be

Probably need to also fix DESCRIBE and ASK

Comment 1 by gromgull
Actually - this may not even be valid anymore, since the current sparql impl. is pure python. Someone must confirm/close as invalid.

Comment 2 by gromgull
This is no longer the case - in the new python parser it's "caseless"