RDFLib/rdfextras — Issue #29: Failing test-test_sparql-test_describe.py marked as "known_issue"
Author: gjhiggins
Created: 2012-02-20 07:57:29+00:00
State: open

gjhigg...@gmail.com, 2011-09-20T15:14:11.000Z

More of an aide-memoire than anything else

What steps will reproduce the problem?
1.python ./run_tests.py

What is the expected output? What do you see instead?

Expected test to pass

{{{
ERROR: test_describe (test_describe.TestDescribe)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_sparql/test_describe.py", line 19, in test_describe
res=g.query("DESCRIBE ")
File "rdflib/graph.py", line 804, in query
return result(processor.query(query_object, initBindings, initNs, **kwargs))
File "rdfextras/sparql/processor.py", line 45, in query
extensionFunctions=extensionFunctions)
File "rdfextras/sparql/algebra.py", line 322, in TopEvaluate
expr = reduce(ReduceToAlgebra,query.query.whereClause.parsedGraphPattern.graphPatterns,
AttributeError: 'NoneType' object has no attribute 'parsedGraphPattern'

}}}

Please use labels and text to provide additional information.

Note log message in changeset 3d49f33a59c9 - "algebra still broken"

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.