Are RDFa parsers responsible for URL-encoding values when generating URLs?

Hey Toby,

Noticed you made a change on the RDFa wiki, correcting a mistake I had made:

http://rdfa.info/mediawiki/index.php?title=Common-publishing-mistakes&diff=567&oldid=566

Specifically, you changed this:

http://example.org/people.htmlWesley Wyndham-Pryce

to this:

http://example.org/Wesley%20Wyndham-Pryce

Good catch as my mind failed me completely when writing the example. It
also highlights a test that I don't think we have in the RDFa Test
Suite. We don't ensure that RDFa parsers URL-encode URLs that they
generate.

I believe that my reading on RFC 3986 is the same as yours, an RDFa
parser MUST URL-encode URLs that it generates:

http://tools.ietf.org/html/rfc3986#section-2.4

If there are no objections, I can create a test case to ensure that
percent-encoding is performed before the RDFa parser generates a triple.

-- manu

-- 
Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: Absorbing Costs Considered Harmful
http://blog.digitalbazaar.com/2009/02/27/absorbing-costs-harmful

Received on Friday, 27 March 2009 23:29:01 UTC