Re: RDF 1.1 / rdf:langString (test change)

On 15/11/11 13:33, Axel Polleres wrote:
> Hi all,
>
> Just to understand the impact here: didn't we decide to stick with RDF1.0 for SPARQL1.1 and reflect such things only in a separate Note?

For the graph matching (and maybe the parsing) implications, yes.

> Maybe we can discuss this briebly under the liaison item in today's TelCo.
>
DATATYPE is a bit different because we define the function so it is all 
under our control (we get to decide the return value).

REGEX, REPLACE are already changed to be compatible.

We could add a note in rq25 to note it was a SPARQL 1.0 error.

 Andy

> best,
> Axel
>
> On 15 Nov 2011, at 12:39, Andy Seaborne wrote:
>
>> RDF 1.1 will have datatypes for all literals.  Plain literals are either
>> xsd;String (no lang tag) or rdf:langString (with language tag).
>>
>> I've changed SPARQL's DATATYPE to reflect this.
>>
>> Two tests are affected: one in SPARQL 1.0, one in SPARQL 1.1
>>
>>   From SPARQL 1.0:
>>
>> http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-datatype-2.rq
>>
>>   From SPARQL 1.1:
>> functions/if01.rq
>>
>> I've changed if01.rq so that it records what I think is the correct
>> answers but has this lost some of the intention of the test?
>>
>> == Query
>>
>> BASE<http://example.org/>
>> PREFIX  xsd:<http://www.w3.org/2001/XMLSchema#>
>>
>> SELECT  ?o (if(( datatype(?o) = xsd:integer ), true, false) AS ?integer)
>> WHERE
>>     { ?s ?p ?o }
>>
>> == Old results
>> ------------------------------
>> | o                 | integer |
>> ===============================
>> | "123"             | false   |
>> | "日本語"@ja          |         |
>> | "english"@en      |         |
>> | "français"@fr     |         |
>> | "abc"^^xsd:string | false   |
>> | "def"^^xsd:string | false   |
>> | 7                 | true    |
>> -------------------------------
>>
>> == New results
>> ------------------------------
>> | o                 | integer |
>> ===============================
>> | "123"             | false   |
>> | "def"^^xsd:string | false   |
>> | "français"@fr     | false   |
>> | "日本語"@ja          | false   |
>> | 7                 | true    |
>> | "abc"^^xsd:string | false   |
>> | "english"@en      | false   |
>> -------------------------------
>>
>>
>
>

Received on Tuesday, 15 November 2011 14:24:20 UTC