Suggested addition to Turtle test suite

Hello,

The Turtle grammar allows subjects to be blanks, including collections.
However, the test suite does not test this case.  For example:

("apple" "banana") a <http://example.org/List> .

Produces these triples:

_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" .
_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:genid2 .
_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana" .
_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/List> .

It seems most implementations read this correctly, but do strange things
on writing.  Notably, raptor writes invalid Turtle in this case[1].

The above, or similar, should be added to the test suite to cover this.

-dr

[1] http://bugs.librdf.org/mantis/view.php?id=496

Received on Sunday, 19 February 2012 23:07:11 UTC