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

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

From: David Robillard <d@drobilla.net>
Date: Fri, 01 Mar 2013 22:20:19 -0500
Message-ID: <1362194419.5476.228.camel@verne.drobilla.net>
To: Gregory Williams <greg@evilfunhouse.com>
Cc: public-rdf-comments@w3.org
On Thu, 2013-02-28 at 10:34 -0500, Gregory Williams wrote:
> 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".

Perhaps of interest, though I don't know how suitable in scope such a
thing is for the suite, is a Turtle version of the examples from
RFC3986.  This tests the relative URI resolution of implementations.

Attached is one I made for my implementation's test suite which includes
all the normal examples, some of the abnormal examples, and some
additional stuff to cover specific cases.

Note the owl:sameAs used here may not be strictly correct, it seemed
sensible but doesn't really mean anything.  This is a simple
triple-based .ttl => .nt test like the others.

Cheers,

-dr


<g:h> <http://www.w3.org/2002/07/owl#sameAs> <g:h> .
<http://a/b/c/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g> .
<http://a/b/c/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g> .
<http://a/b/c/g/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g/> .
<http://a/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/g> .
<http://g> <http://www.w3.org/2002/07/owl#sameAs> <http://g> .
<http://a/b/c/d;p?y> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?y> .
<http://a/b/c/g?y> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g?y> .
<http://a/b/c/d;p?q#s> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?q#s> .
<http://a/b/c/g#s> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g#s> .
<http://a/b/c/g?y#s> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g?y#s> .
<http://a/b/c/;x> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/;x> .
<http://a/b/c/g;x> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g;x> .
<http://a/b/c/g;x?y#s> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g;x?y#s> .
<http://a/b/c/d;p?q> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?q> .
<http://a/b/c/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/> .
<http://a/b/c/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/> .
<http://a/b/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/> .
<http://a/b/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/> .
<http://a/b/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/g> .
<http://a/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/> .
<http://a/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/> .
<http://a/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/g> .
<http://a/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/g> .
<http://a/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/g> .
<http://a/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/g> .
<http://a/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/g> .
<http://a/b/c/g.> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g.> .
<http://a/b/c/.g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/.g> .
<http://a/b/c/g..> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g..> .
<http://a/b/c/..g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/..g> .
<http://a/b/g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/g> .
<http://a/b/c/g?y/./x> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g?y/./x> .
<http://a/b/c/g?y/../x> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g?y/../x> .
<http://a/b/c/g#s/./x> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g#s/./x> .
<http://a/b/c/g#s/../x> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/g#s/../x> .
<http://a/.g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/.g> .
<http://a/..g> <http://www.w3.org/2002/07/owl#sameAs> <http://a/..g> .
<http://A?aquery> <http://www.w3.org/2002/07/owl#sameAs> <http://A?aquery> .
<http://A#afragment> <http://www.w3.org/2002/07/owl#sameAs> <http://A#afragment> .
<http://a/b/c/d;p?aquery> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?aquery> .
<http://a/b/c/d;p?q#afragment> <http://www.w3.org/2002/07/owl#sameAs> <http://a/b/c/d;p?q#afragment> .
<http://a/> <http://www.w3.org/2002/07/owl#sameAs> <http://a/> .
<http://B/foo> <http://www.w3.org/2002/07/owl#sameAs> <http://B/foo> .
<http://C/bar> <http://www.w3.org/2002/07/owl#sameAs> <http://C/bar> .



Received on Saturday, 2 March 2013 03:21:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:55 UTC