W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > October 2004

N3 to RDF/XML conversion generating bad 'xmlns' declarations

From: Aaron Straup Cope <asc@vineyard.net>
Date: Sun, 17 Oct 2004 15:35:30 -0400
To: public-cwm-bugs@w3.org
Message-Id: <1098041730.85036.42.camel@localhost>
Hi,

If I try to do 'cwm.py --n3 resto.n3 --rdf' with the following file :

 http://nospum.net/resto.n3

cwm will generate RDF/XML with bad xmlns declarations. Specifically,
stuff like this :

 # @prefix foo: <x-urn:foo.com#> .
 # equivalent N3 'foo:bar "baz";'

 <bar xmlns="foo:">baz</bar>

I poked around the code a bit and added a patch (attached) to
XMLWriter.figurePrefix in notation3.py -- I am not intimate with
everything that goes on in cwm-land so perhaps there is a more elegant
way to handle this.

Cheers,



Received on Sunday, 17 October 2004 19:34:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC