sparql-kernel icon indicating copy to clipboard operation
sparql-kernel copied to clipboard

Bug when results contain an empty string

Open alexisdimi opened this issue 6 years ago • 2 comments

It seems that SELECT results in sparql-results+xml format are handled incorrectly when they include an empty string literal (I have not tested with langString, just String literals). On trying to display such results (display: table), the following error arises:

Error: Response processing error: 'NoneType' object has no attribute 'replace'

When I change the result format from sparql-results+xml to application/json, the query succeeds and the results are displayed.

alexisdimi avatar Dec 06 '19 12:12 alexisdimi

I receive the same error and would like to debug it further. How do I get the stack track in jupyter notebook for such an error?

white-gecko avatar Aug 30 '20 17:08 white-gecko

I still get this error. A fix for me was to change the result format with %http_header Accept application/json, but it would be nice to take a look at #46 to fix it.

thomas-bc avatar Jun 21 '22 18:06 thomas-bc