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

Turtle and predicate object lists.

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 14 May 2012 20:04:04 +0100
Message-ID: <4FB15724.7040003@epimorphics.com>
To: RDF-WG <public-rdf-wg@w3.org>
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 GMT

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