W3C home > Mailing lists > Public > www-archive@w3.org > August 2003

Cwm namespace/URI bug?

From: Ryan Lee <ryanlee@w3.org>
Date: Thu, 28 Aug 2003 16:14:50 -0400 (EDT)
To: www-archive+n3bugs@w3.org
Cc: Tim Berners-Lee <timbl@w3.org>, Dan Connolly <connolly@w3.org>
Message-ID: <Pine.LNX.4.55.0308071240300.3481@homer.w3.org>

(using the latest version of 2000/10/swap, with cwm.py 1.135, 2003/08/25)

Consider a file a.n3:

 % cwm --n3 a.n3

 result: [[
 @prefix : <http://www.example.org/ns#> .

 :s :p :o .
 # ENDS
 ]]

This is good.  But if I call cwm with the following (assuming
a.n3 is the same as above):

 % cwm --n3 http://www.example.org/a.n3 > o.n3

 result: [[
 @prefix : </ns#> .

 :s :p :o .
 # ENDS
 ]]

If I were to then use that output for something else, the namespace would
render it incorrect for most situations.  Perhaps cwm should not be so
eager to look for relative URIs when it comes to namespaces.  Or something
like that.

This is particularly troublesome when doing work with files coming off
www.w3.org that use at least one namespace that starts with
'http://www.w3.org/'.  It can be worked around by using cwm with
no-prefix, absolute URI flags, --n3=pr.  It does NOT work if the --n3=r
(suppress relative URIs) option is used on its own nor if --n3=p is used
on its own.  I would rather see 'http://' namespaces go untouched no
matter what flags are used.

Information on what I might be doing wrong would also be greatly
appreciated.

-- 
Ryan Lee          +1.617.253.5542 (MIT office)
ryanlee@w3.org    http://www.w3.org/People/ryanlee/
Received on Thursday, 28 August 2003 16:14:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:42:27 UTC