[redland-dev] rss-tag-soup parser throws error

Kai Bielenberg kai at bielenberg.info
Thu Feb 10 19:08:31 GMT 2005


Dave Beckett wrote:
> On Thu, 2005-02-10 at 17:51 +0100, Kai Bielenberg wrote:
> 
>>import RDF
>>model=RDF.Model(storage=RDF.MemoryStorage())
>>parser=RDF.Parser(name='rss-tag-soup',mime_type='application/rdf+xml') 
> 
> 
> That says give me a parse with name rss-tag-soup AND with the mime type
> of RDF/XML.  That condition isn't met since the rss-tag-soup covers
> multiple mime types so doesn't register itself as covering one only.
> So... parser return null.  (maybe the registration should cover multiple
> mime types in future, but it doesn't right now).
> 
> Fix:
> parser=RDF.Parser(name='rss-tag-soup',mime_type='') 
> 

Great. Works like a charm. Thanks,

Kai



More information about the redland-dev mailing list