W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2007

Re: basic-only langMatches test

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Tue, 07 Aug 2007 14:39:00 +0100
Message-ID: <46B875F4.6080606@hp.com>
To: Eric Prud'hommeaux <eric@w3.org>
CC: Lee Feigenbaum <lee@thefigtrees.net>, 'RDF Data Access Working Group' <public-rdf-dawg@w3.org>



Eric Prud'hommeaux wrote:
> * Lee Feigenbaum <lee@thefigtrees.net> [2007-08-06 09:01-0400]
>> ACTION: ericP to write a test showing that langMatches doens't do extended 
>> matching
> 
> I checked with i18n-core and it appears that there are no tests that
> basic matches but extended does not match.
>   http://www.w3.org/mid/46A62549.7010807@yahoo-inc.com
> 
> I propose:
> 
> http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest.ttl
>   LangMatches-basic
> 
> Data:
> @prefix : <http://example.org/#> .
> 
> :x :p3 "abc"@de .
> :x :p4 "abc"@de-DE .
> :x :p5 "abc"@de-Latn-DE .
> 
> Query:
> PREFIX : <http://example.org/#>
> 
> SELECT *
> { :x ?p ?v . FILTER langMatches(lang(?v), "de-DE") . }
> 
> Results:
> ┌────────────────────────┬───────────┐
> │                       p│          v│
> ├────────────────────────┼───────────┤
> │<http://example.org/#p4>│"abc"@de-de│
> └────────────────────────┴───────────┘
> 
> and i pass it...

ARQ does pass this test.

The results do not reflect the syntactic input which has de-DE.  (ARQ actually 
returns "abc"@de-DE for ?v. -- all matching and equality is done 
case-insensitively but not by forcing to lower case on data loading.)

Had it been the JSON results, the results would be different.

As the point of the test is the FILTER, I suggest changing the results to
reflect the data and use @de-DE

	Andy


-- 
Hewlett-Packard Limited
Registered Office: Cain Road, Bracknell, Berks RG12 1HN
Registered No: 690597 England
Received on Tuesday, 7 August 2007 13:39:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:00:51 UTC