W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > July 2006

A question about the str( ) function on IRI

From: Lu Jing <robert_lu00@hotmail.com>
Date: Fri, 14 Jul 2006 19:56:33 +0900
Message-ID: <BAY104-F35C54040FD07E1AC123B41956F0@phx.gbl>
To: public-rdf-dawg-comments@w3.org

Hi,
I believe this is a trivial question, but it did confuse me for a long 
time.  In the Section 11.4 "Operators Definitions", the description for 
str() says "returns the codepoint representation of rsrc (an IRI).".  I 
think the "codepoint" means the code of characters, in non-negative 
integers.  So I wonder why the "codepoint" is used here.  Also, I think 
some of the readers (include me) may think if the result of 
str(<mailto:alice@work.example>) is "<mailto:alice@work.example>", but not 
"mailto:alice@work.example".  Unfortunately, the following example uses a 
regex function to test the value, so that it can not be used to distinguish 
the above two possibilities. (Although I believe that the answer should be 
"mailto:alice@work.example")
Received on Friday, 14 July 2006 10:58:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:50 GMT