W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > March 2002

Re: Proposed NTriples changes for literal notation

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Mon, 11 Mar 2002 13:20:45 +0000
To: RDF Core <w3c-rdfcore-wg@w3.org>
cc: Graham Klyne <Graham.Klyne@MIMEsweeper.com>
Message-ID: <11308.1015852845@tatooine.ilrt.bris.ac.uk>

>>>Dave Beckett said:
> >>>Graham Klyne said:
> >    xml("<b>foo</b>"-en)        XML content, language given "en"
> 
> Hmm.  Yeah, might be better.

Actually I realised the ()s are redundant, so this might be better:
   xml"<b>foo</b>"-en        XML content, language given "en"


Getting specific, I propose the following changes to production
  http://www.w3.org/TR/2001/rdf-testcases/#literal

changing to

  literal  ::=  langString | XMLstring

and adding new productions:

  langString   ::= '"' string '"' ('-' language)

  xmlString    ::= 'xml' langString

    ISSUE #1: OR maybe?
      xmlString    ::= 'xml"' string '"' ('-' language)

  language     ::= character+

    This is any allowed xml:lang content as defined in
    http://www.w3.org/TR/REC-xml#sec-lang-tag

    ISSUE #2: I don't think specifying this more precisely here is
    worth it.  If the consensus is to do this, it would be something
    like this (after RFC 1766):
       language ::= [a-zA-Z]{1,8} ('-' [a-zA-Z]{1,8})

Dave
Received on Monday, 11 March 2002 08:20:47 EST

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