W3C home > Mailing lists > Public > public-rdf-wg@w3.org > May 2012

Re: Turtle and predicate object lists.

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 14 May 2012 20:09:50 +0100
Message-ID: <4FB1587E.8000104@epimorphics.com>
To: public-rdf-wg@w3.org


On 14/05/12 20:04, Andy Seaborne wrote:
> A difference between Turtle and SPARQL.
>
> Turtle does not support top-level blank-predicate-object lists.
> SPARQL does.
>
> [
> foaf:name "Name" ;
> foaf:knows <http://example/another>
> ] .
>
> but Turtle does allow:
>
> [
> foaf:name "Name"
> ] foaf:knows <http://example/another> .
>
>
> This could be accommodated with two grammar rule changes:
>
>
> [6] triples ::= subject predicateObjectList
> ==>
> [6] triples ::=
> (subject predicateObjectList) |
> (blankNodePropertyList predicateObjectList?)
>
>
> [10] subject ::= iri | blank
> ==>
> [10] subject ::= iri

(failure to send the right email draft ...)

Correction:
[10] subject ::= iri | ANON

BTW The link to ANON in 3.3.1 is broken.

	Andy

>
> See
> http://www.w3.org/2005/01/yacker/uploads/turtleWithBlankNodePropertyList
>
> Andy
>
Received on Monday, 14 May 2012 19:10:20 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:48 GMT