W3C home > Mailing lists > Public > public-rdf-comments@w3.org > December 2011

TriG Grammar issue

From: Gregg Kellogg <gregg@kellogg-assoc.com>
Date: Thu, 22 Dec 2011 20:17:50 -0500
To: "public-rdf-comments@w3.org" <public-rdf-comments@w3.org>
Message-ID: <6BB7EC9A-6D34-4010-A2C7-E10C889DEC44@greggkellogg.net>
Grammar rule [3g] is:

    [3g] graphIri? "{" ( triples "." )* "}"

However, the examples include statements within a graph that do not end with a ".", which seems like a pretty reasonable syntax. I used an updated grammar as follows:

    [3g] graph ::= graphIri? "{" (triples* "}"

   [6] triples ::= subject predicateObjectList ( "." ( subject predicateObjectList)? )*

Note that it could be simplified to the following, if empty statements are allowed:

   [6] triples ::= ( "." ( subject predicateObjectList)? )*

This is along the lines of the previous update I requested to [7] predicateObjectList for Turtle.

Gregg
Received on Friday, 23 December 2011 01:18:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 December 2011 01:18:56 GMT