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

Re: Ntriples syntax Was: Draft Partitioning

From: Jan Grant <Jan.Grant@bristol.ac.uk>
Date: Mon, 18 Jun 2001 14:52:31 +0100 (BST)
To: Art Barstow <barstow@w3.org>
cc: Brian McBride <bwm@hplb.hpl.hp.com>, rdf core <w3c-rdfcore-wg@w3.org>
Message-ID: <Pine.GSO.4.31.0106181450010.27545-100000@mail.ilrt.bris.ac.uk>
On Fri, 15 Jun 2001, Art Barstow wrote:

> On Fri, Jun 15, 2001 at 06:06:00PM +0100, Brian McBride wrote:
> > I took an action to draft a partioning of our problem space.
>
> Looks good!
> >
> > RDFCore: A base abstract syntax and a semantics for it.  The abstract syntax
> > is equivalent to n-triple (can n-triple be that abstract syntax).  Nothing
> > more - does not include type, containers, reification.
>
> WRT the n-triple syntax, below is a pseudo-BNF I created
> while thinking about how to add support for n-triples
> in SiRPAC.  Perhaps a starting point ...
>
> Art
> ---
>
> ntriple		::= comment* | blankline* | triple*

As I think has already been mentioned (a gazillion messages to catch up
on!) this outght to be
	(comment | blankline | triple) *

> comment		::= ws* '#' string eoln
> ws		::= (a space character)  	// no tabs?
> string		::= (0 or more characters)
> eoln		::= cr | cr-lf
> blankline	::= ws* eoln
> triple		::= ws* subject ws+ predicate ws+ object ws+ '.' ws* eoln

Although my test cases match this, some of the ones I've seen thus far
don't. I'd say
	... object ws* '.' ...

> subject		::= uriref | anonNode
> predicate	::= uriref
> object		::= uriref | anonNode | qString
> uriref		::= '<' absoluteURI '>' 	// see [1]
> qString		::= '"' string '"'
> anonNode	::= '_' ':' Nmtoken		// see [2]
>
> [1] http://www.isi.edu/in-notes/rfc2396.txt
> [2] http://www.w3.org/TR/REC-xml#NT-Nmtoken



-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
Not as randy or clumsom as a blaster.
Received on Monday, 18 June 2001 09:53:47 EDT

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