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

Proposed N-Triples changes for datatypes & (untidy) literals

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Fri, 20 Sep 2002 16:27:19 +0100
To: RDF Core <w3c-rdfcore-wg@w3.org>
Message-ID: <13805.1032535639@hoth.ilrt.bris.ac.uk>


I've bunched these up. There are still some decisions pending, since
these depend on what the abstract syntax will say.

Dave


Adding datatyped literals
=========================
Change 1

FROM
literal ::= langstring | xmlString
TO
literal ::= langstring | xmlString | datatypeString


Change 2

ADD
datatypeString ::= uriref '"' string '"'

OR

Change 3 (if datatypes can have language)

ADD
datatypeString ::= uriref '"' string '"' ( '-' language )?


Adding untidy literals (and bnodes are required)
================================================

Change 4

FROM
langString ::= '"' string '"' ( '-' language )?
TO
langString ::= ( nodeID )* '"' string '"' ( '-' language )?


Change 5

FROM
xmlString ::= 'xml' langString
TO
xmlString ::= ( nodeID )* 'xml' langString


Restricting xml language to 1+ characters
=========================================

No change needed, existing definition is correct:

language  ::=  ( character - ( '.' | ws  ) )+
  and containing any allowed xml:lang content as defined in
 http://www.w3.org/TR/REC-xml#sec-lang-tag
Received on Friday, 20 September 2002 11:29:50 EDT

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