RDFLib/rdflibissueplayground — Issue #32: ParseException when DESCRIBEing URIs
Author: gjhiggins
Created: 2012-02-20 05:28:46+00:00
State: open
Labels: open

rupert.r...@gmail.com, 2011-03-17T13:05:15.000Z
When parsing a DESCRIBE query such as

DESCRIBE

with rdfextras.sparql.processor a ParseException is raised:

File "/opt/pythons/plingback/lib/python2.6/site-packages/rdfextras-0.1a-py2.6.egg/rdfextras/sparql/parser.py", line 758, in parse
return Query.parseString(stuff)[0]
File "/opt/pythons/plingback/lib/python2.6/site-packages/pyparsing-1.5.5-py2.6.egg/pyparsing.py", line 1100, in parseString
raise exc
ParseException: Expected "?" (at char 10), (line:1, col:10)

I'm new to this but surely such a query is valid (it runs against both Talis and Virtuoso...)

Am I missing something here?

Comment 1 by gromgull
Thanks for the bug report!

This really seems to be broken.

Fixing the parser is trivial - but I cannot quickly get the engine to do the right thing once the query is parsed.

Comment 2 by gromgull
I never get the commit message syntax right, but I added a test and parser fix for this here: http://code.google.com/p/rdfextras/source/detail?r=3d49f33a59c922bbb8c290c694837329ed37ef5c

Comment 3 by gjhigg...@gmail.com
Issue 28 has been merged into this issue.