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

A question for RDF parser implementers - whitespace

From: Graham Klyne <gk@ninebynine.org>
Date: Tue, 06 Jul 2004 21:07:23 +0100
Message-Id: <5.1.0.14.2.20040706205734.00bcf830@127.0.0.1>
To: RDF Interest group <www-rdf-interest@w3.org>

Hi,

I've just noticed something the the RDF syntax which has me wondering how 
RDF parser implementers are dealing with whitespace in literals.

The RDF syntax spec 
(http://www.w3.org/TR/rdf-syntax-grammar/#section-Nodes), section 6.1.9 on 
typed literals, mentions "In XML Schema (part 1) [XML-SCHEMA1], white space 
normalization occurs during validation according to the value of the 
whiteSpace facet. The syntax mapping used in this document occurs after 
this, so the whiteSpace facet formally has no further effect."

But, given that RDF/XML an open-ended tag set, schema validation of RDF/XML 
doesn't make a lot of sense.  Further, I don't have an XML schema processor 
to do such validation.

How are other implementers dealing with this?  My inclination is to pass 
the original literal, with whitespace intact, and allow the subsequent 
datatype processing to treat it with the same effect as if the whiteSpace 
had been eliminated by schema validation.  For this purpose, the whitespace 
facet is implicitly part of the datatype.

Does anyone have any other ideas on this?

#g


------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact
Received on Wednesday, 7 July 2004 03:24:55 UTC

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