W3C home > Mailing lists > Public > public-rdf-comments@w3.org > July 2013

[RESOLVED] Re: Merging and improving the Turtle test suite(s)

From: Gregory Williams <greg@evilfunhouse.com>
Date: Thu, 4 Jul 2013 11:05:10 +0300
Cc: "public-rdf-comments@w3.org" <public-rdf-comments@w3.org>
Message-Id: <6E9512AB-992D-498B-9F90-36ACF67F7D6A@evilfunhouse.com>
To: Eric Prud'hommeaux <eric@w3.org>
On Jul 3, 2013, at 6:31 PM, Eric Prud'hommeaux <eric@w3.org> wrote:

> * Gregory Williams <greg@evilfunhouse.com> [2013-02-28 10:34-0500]
>> Gregg Kellogg wrote:
>>> Also the README at <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-ttl/README> references <http://www.w3.org/2011/rdf-wg/wiki/Turtle_Test_Suite>, which says that tests should all be run with an assumed base of <http://example/base/>. This could probably be more prominent, perhaps in a dc:comment within the Manifest.
>> I'm joining this conversation (and work towards implementing the new turtle) rather late, but I had similar problems to David. Base URI resolution has often thrown me in the past, but I had problems passing some turtle tests based just on what the docs say.
>> I found the claim that "the assumed base URI for the tests is <http://example/base/> if needed" to be very confusing, as I understand it to *always* be needed, but that the resolution rules require that the base URI used when parsing is based on both this URI (which these docs call the "assumed base URI," but which RFC 3986 calls "default base URI") and also the "URI used to retrieve the entity" (in this case the relative URI of the turtle document being parsed). If that's correct, I think the language used to introduce this default base URI should be improved to use language that aligns with RFC 3986 and to remove the phrase "if needed".
> The tests have been moved to <http://www.w3.org/2013/TurtleTests/> and
> the relative IRI resolution is against that location.  The README and
> <http://www.w3.org/2011/rdf-wg/wiki/Turtle_Test_Suite#Relative_IRI_Resolution>
> explain this as
> [[
> The home of the test suite is
> <http://www.w3.org/2013/TurtleTests/>. Per RFC 3986 section 5.1.3, the
> base IRI for parsing each file is the retrieval IRI for that file. For
> example, the tests turtle-subm-01 and turtle-subm-27 require relative
> IRI resolution against a base of
> <http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl> and
> <http://www.w3.org/2013/TurtleTests/turtle-subm-27.ttl> respectively.
> ]]
> If this resolution addresses your issues, please respond to this
> message with a subject line which starts with "[RESOLVED]". Thank you
> for your help in improving the Turtle specification.

I consider this issue resolved, but have a further suggestion for the test suite. Would it be possible to have the Turtle test suite manifest use fully qualified URIs for the test identifiers? Currently, all URIs in the manifest are relative, which means that a locally downloaded copy of the test suite does not contain enough data to produce an EARL report with correct test URIs, as the test URIs can end up being resolved against a local file: base.

Received on Thursday, 4 July 2013 08:05:35 UTC

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