W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > November 2008

problem of uripath.refTo

From: Albert Au yeung <albert08@csail.mit.edu>
Date: Wed, 5 Nov 2008 18:40:04 -0500
Message-ID: <e94644af0811051540y649f9cb0h81f9641cc2ff7505@mail.gmail.com>
To: public-cwm-bugs@w3.org

I used cwm in python and wanted to generate RDF without the base URL
appearing in the final output. However, even if I provide the base URL
in the output mehtods rdfString() and n3String(), sometimes it doesn't
work perfectly.

The problem may be due to the behaviour of the uripath.refTo method.
For example:

uripath.refTo('http://www.example.com/test', 'http://www.example.com/test#foo')

returns

'/test#foo'
Received on Thursday, 6 November 2008 08:07:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 6 November 2008 08:07:33 GMT