walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

Sparql construct query fails if "construct" in lower case #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

<pattern expression='CONSTRUCT'>
    <token>CONSTRUCT</token>
  </pattern>

should be <pattern expression='construct|CONSTRUCT'>

Probably need to also fix DESCRIBE and ASK

Original issue reported on code.google.com by apeck1...@gmail.com on 25 Feb 2010 at 12:45

GoogleCodeExporter commented 8 years ago
Sparql support has been moved to the rdfextras project

I moved this to http://code.google.com/p/rdfextras/issues/detail?id=19

Original comment by gromgull on 28 Jan 2011 at 9:50