Re: Turtle and predicate object lists.

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 UTC