gjhiggins/rdfextras — Issue #19: Sparql construct query fails if "construct" in lower case
Author: gjhiggins
Created: 2011-10-19 03:00:21+00:00
State: open
Labels: Type-Defect

Originally filed by gromgull on 2011-01-28T21:50:09

(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