[redland-dev] python: RDF.Model.to_string() -> None

Darrin Thompson darrint at progeny.com
Tue Apr 12 16:48:20 BST 2005


Using the python bindings:

$ python
Python 2.3.5 (#2, Feb  9 2005, 00:38:15)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import RDF
>>> m = RDF.Model()
>>> print m.to_string(name='ntriples')
None
>>> print m.to_string(name='xml')
None
>>> print m.to_string()
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
</rdf:RDF>

Shouldn't the output of to_string() for an empty model always be
parsable and result in an empty model?

--
Darrin




More information about the redland-dev mailing list