W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > June 2003

Re: question about XML markup in literals

From: Brian McBride <bwm@hplb.hpl.hp.com>
Date: 16 Jun 2003 13:55:03 +0100
To: pat hayes <phayes@ihmc.us>
Cc: rdf core <w3c-rdfcore-wg@w3.org>, Roland Schwaenzl <Roland.Schwaenzl@mathematik.Uni-Osnabrueck.DE>
Message-Id: <1055768103.3442.119.camel@dhcp-91-136.hpl.hp.com>

I think we are getting to the point where responses to questions like
this should refer to the text of the spec, with no adornment.

Brian

On Wed, 2003-06-11 at 16:48, pat hayes wrote:
> Is it legal to include XML markup inside non-XMLLiteral literal 
> strings? For example, suppose I wanted to define a datatype called 
> ex:XMLnumber whose lexical space was all strings of the form
> 
> <xmlnum>English-number-phrase</xmlnum>
> 
> and whose L2V mapping looked like
> 
> <xmlnum>one</xmlnum>  --> 1
> <xmlnum>two</xmlnum>  --> 2
> ...
> <xmlnum>three hundred and ninety seven</xmlnum>  --> 397
> ....
> 
> and write literals like
> 
> "<xmlnum>three hundred and ninety seven</xmlnum>"^^ex:XMLnumber
> 
> to refer to 397, would that be legal RDF? There are no semantic 
> reasons to exclude it.
> 
> Pat
> 
> PS> This information has been requested by Roland and I don't know the answer.
Received on Monday, 16 June 2003 08:55:25 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:57:55 EDT