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

Re: Turtle tests : Case-sensitivity of base and prefix directives

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Fri, 16 Nov 2012 10:02:09 +0000
Message-ID: <50A60F21.6090903@epimorphics.com>
To: public-rdf-comments@w3.org


On 16/11/12 05:12, Peter Ansell wrote:
> Hi,

Hi Peter,

Thank you for the prompt feedback on the tests.

> In the current version of the tests, HG changeset 543:a3007d234b3b,
> date: Thu Nov 15 15:39:15 2012 +0000, there are two valid Turtle tests
> where the base is given without @ to demonstrate the inclusion of the
> Sparql Base and Prefix directives in Turtle.
>
> turtle-syntax-base-04.ttl
>
>      base <http://example/>
>
> turtle-syntax-base-02.ttl
>
>      BASE <http://example/>
>
> However, there is also a bad test where the base is given in upper-case with @.
>
> turtle-syntax-bad-base-02.ttl
>
>      @BASE <http://example/> .
>
> Is it possible to make @BASE and @PREFIX case-insensitive so that the
> traditional Turtle @ forms are equivalent to the the SPARQL forms?

The tests follow the grammar as it is at the moment so that is a request 
to make a grammar change - I'll forward your comment to the WG.

>
> In addition, the comment in turtle-syntax-bad-base-02.ttl doesn't seem
> to match the test, as it seems like there is a URI to go with the
> @BASE (as long as @BASE is case-insensitive):
>
>      # @base without URI.

Now fixed, thanks.

	Andy

>
> Thanks,
>
> Peter
>
Received on Friday, 16 November 2012 10:02:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 November 2012 10:02:48 GMT