Re: Ntriples syntax Was: Draft Partitioning

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 UTC