W3C home > Mailing lists > Public > www-rdf-interest@w3.org > July 2004

Re: A question for RDF parser implementers - whitespace

From: Graham Klyne <GK@ninebynine.org>
Date: Fri, 09 Jul 2004 14:09:40 +0100
Message-Id: <5.1.0.14.2.20040709140517.033296d0@127.0.0.1>
To: Norman Walsh <Norman.Walsh@Sun.COM>, www-rdf-interest@w3.org

At 07:42 09/07/04 -0400, Norman Walsh wrote:
>I think if you are parsing a typed literal and you know you're parsing
>a typed literal, you should collapse the whitespace before passing the
>value on to down-stream applications.
>
>Given that the RDF spec says that whitespace is eliminated by
>validation, I can easily imagine writing an application that assumes
>typed values like integers and URIs won't have insignificant
>whitespace around them.

Hmmm.  Let's try a test case.

Does this:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:dc="http://purl.org/dc/elements/1.1/">
   <rdf:Description rdf:about="http://www.example.org/">
      <dc:title>  The trouble with spaces   </dc:title>
   </rdf:Description>
</rdf:RDF>

RDF-entail this:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:dc="http://purl.org/dc/elements/1.1/">
   <rdf:Description rdf:about="http://www.example.org/">
      <dc:title 
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">  The trouble with 
spaces   </dc:title>
   </rdf:Description>
</rdf:RDF>

I think it should, but under your suggested regime I think it would not.

#g


------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact
Received on Sunday, 11 July 2004 04:33:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:58 UTC