W3C home > Mailing lists > Public > public-rdf-comments@w3.org > February 2012

Suggested addition to Turtle test suite

From: David Robillard <d@drobilla.net>
Date: Sun, 19 Feb 2012 18:06:45 -0500
Message-ID: <1329692805.16266.5.camel@verne.drobilla.net>
To: public-rdf-comments@w3.org

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.


[1] http://bugs.librdf.org/mantis/view.php?id=496
Received on Sunday, 19 February 2012 23:07:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:59:30 UTC