[redland-dev] [Redland Language Bindings 0000464]: RDF.Query() fails when using unicode string
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Thu Aug 25 17:34:58 CEST 2011
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=464
======================================================================
Reported By: moustaki
Assigned To:
======================================================================
Project: Redland Language Bindings
Issue ID: 464
Category: api
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Binding Language (java, perl, php, python, ruby, tcl): python
======================================================================
Date Submitted: 2011-08-25 15:34
Last Modified: 2011-08-25 15:34
======================================================================
Summary: RDF.Query() fails when using unicode string
Description:
When creating a new query using an UTF-8 string for the SPARQL query, the python
bindings fail.
Steps to Reproduce:
>>> import RDF
>>> RDF.Query(u'SELECT * WHERE {?a ?b ?c}', query_language="sparql")
Exception AttributeError: "'Query' object has no attribute '_query'" in <bound
method Query.__del__ of <RDF.Query object at 0x1df59d0>> ignored
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/RDF.py", line 1943, in __init__
self._query = Redland.librdf_new_query(_world._world, query_language, ruri,
querystring, rbase_uri)
TypeError: in method 'librdf_new_query', argument 4 of type 'char const *'
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-08-25 15:34 moustaki New Issue
======================================================================
More information about the redland-dev
mailing list