Re: XML problems with percent encoding

On Tue, 2009-11-17 at 10:13 +0000, Damian Steer wrote:
> RDF/XML remains the only recommended rdf serialisation, but it can't
> serialise every rdf graph.
> Not a happy situation. 

Actually XHTML+RDFa is a W3C Recommendation, with the same (de jure)
status as RDF/XML. It's capable of representing almost every RDF graph.
(With the exception of literals containing certain Unicode control
characters which are completely illegal in XML.)

XHTML+RDFa uses CURIEs rather than QNames. CURIEs are a superset of
QNames and allow a much wider set of characters to be used.

For example, <> can be
serialised as:

 <div xmlns:dbp-ko=""

As it happens, some properties containing lots of percent-encoding can
be represented fine in RDF/XML. e.g. <
%B4%91%EC%9E%8F> which can be:

<foo:F xmlns:foo="">

The problems arise when neither hex digit of the last character is in
the range A-F.

Toby A Inkster

Received on Tuesday, 17 November 2009 12:54:30 UTC