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

Re: A question for RDF parser implementers - whitespace

From: Damian Steer <damian.steer@hp.com>
Date: Sun, 11 Jul 2004 10:10:20 +0100
Message-Id: <223FBDFC-D31A-11D8-9B3F-000D932B9016@hp.com>
Cc: www-rdf-interest@w3.org
To: Graham Klyne <GK@ninebynine.org>

On 9 Jul 2004, at 14:09, Graham Klyne wrote:

> Hmmm.  Let's try a test case.
> Does this:
>      <dc:title>  The trouble with spaces   </dc:title>


> RDF-entail this:
>      <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string"> 
>  The trouble with spaces   </dc:title>


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

I think the specs support Norm's regime here. Try this:

<dc:title xml:lang="en"> The trouble with spaces </dc:title>

A reasonable extension of your inference would give:

<dc:title xml:lang="en" 
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">  The trouble 
with spaces   </dc:title>

But (strangely, I confess) the latter is invalid rdf: only plain 
literals can have langs.

So you either maintain the orthogonality of plain- and 
datatyped-literals, or you get a weird restriction on rdf entailments 
("...except for lang-tagged literals").

> #g


PS I'm not saying I like this partition of literals, but that's what we 
Received on Sunday, 11 July 2004 05:10:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:50 UTC