Turtle and predicate object lists.

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

See
http://www.w3.org/2005/01/yacker/uploads/turtleWithBlankNodePropertyList

 Andy

Received on Monday, 14 May 2012 19:04:35 UTC