Re: Test cases to check

On 3 Feb 2011, at 04:23, Eric Prud'hommeaux <eric@w3.org> wrote:

> Alexandre set up an endpoint to test these with life code:
>  http://this-db-really.does-not-exist.org/
> There are form-fill buttons for all of the spec examples and the tests mentioned here.

Cool!

Ivan

> 
> * Eric Prud'hommeaux <eric@w3.org> [2011-02-01 12:02-0500]
>> * Boris Villazón Terrazas <bvillazon@fi.upm.es> [2011-02-01 03:08+0100]
>>> Hi all
>>> 
>>> Following the protocol for the test cases [1] (from now on the test
>>> cases should be sent by email), I would like to invite you the check
>>> the following Direct Mapping test cases:
>> 
>> I'm running into some odd set equivalence failure in
>>  https://dvcs.w3.org/hg/FeDeRate/file/f839901e8183/directmapping/src/main/scala/DirectMapping.scala
>> so I've only machine-checked the first 3 (notes below).
>> 
>>>   * for the database 1table0rows [2], Direct Graph TC0000 [3]
>> 
>> () == (). all fine here
>> 
>>>   * for the database 1table1row[4], Direct Graph TC0001 [5]
>> 
>> The direct mapping document uses simple turtle (no shortcut syntaxes)
>> with relative IRIs. To be consistent, I propose this as the result:
>>  _:a <Student#Name> "Venus" .
>>  _:a a <Student> .
>> (It's also a bit simpler).
>> 
>>>   * for the database 1table2columns1row[6], Direct Graph TC0002 [7]
>> 
>> Following the precedent above, and noting that "10"^^xsd:integer is just 10,
>> I propose:
>>  _:a a <Student> .
>>  _:a <Student#id> 10 .
>>  _:a <Student#name> "Venus" .
>> 
>> 
>>>   * for the database 1table3columns1row[8], Direct Graph TC0003 [9]
> 
> propose some simplifying type and integer expression:
>  _:a a <Student> .
>  _:a <Student#ID> 10 .
>  _:a <Student#FirstName> "Venus" .
>  _:a <Student#LastName> "Williams" .
> 
> 
>>>   * for the database 1table2columns1rowa[10], Direct Graph TC0004 [11]
> 
> propose:
>  _:a a <Student_Sport> .
>  _:a <Student_Sport#Student> "Venus" .
>  _:a <Student_Sport#Sport> "Tennis" .
> 
> 
>>>   * for the database 1table3columns3rows[12], Direct Graph TC0005
>>>     [13]     // this is related to ISSUE-9 [14]
> 
> propose:
>  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> 
>  _:a a <IOUs> .
>  _:a <IOUs#fname> "Bob" .
>  _:a <IOUs#lname> "Smith" .
>  _:a <IOUs#amount> "30"^^xsd:float .
> 
>  _:b a <IOUs> .
>  _:b <IOUs#fname> "Sue" .
>  _:b <IOUs#lname> "Jones" .
>  _:b <IOUs#amount> "20"^^xsd:float .
> 
>  _:c a <IOUs> .
>  _:c <IOUs#fname> "Bob" .
>  _:c <IOUs#lname> "Smith" .
>  _:c <IOUs#amount> "30"^^xsd:float .
> 
> 
> 
>>> Thanks to Juan for helping me with these Direct Mapping test cases
>>> (related to ACTION-81 [15])
>>> 
>>> Unless there is a negative review within a week these will become
>>> official test cases.
>>> 
>>> Thank you in advance and regards.
>>> 
>>> Boris
>>> 
>>> [1] http://www.w3.org/2001/sw/rdb2rdf/wiki/TestCases
>>> [2] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#1table0rows
>>> [3] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#Direct_Graph_TC0000
>>> [4] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#1table1row
>>> [5] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#Direct_Graph_TC0001
>>> [6] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#1table2columns1row
>>> [7] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#Direct_Graph_TC0002
>>> [8] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#1table3columns1row
>>> [9] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#Default_graph_TC0003
>>> [10] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#1table2columns1rowa
>>> [11] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#Default_graph_TC0004
>>> [12] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#1table3columns3rows
>>> [13] http://www.w3.org/2001/sw/rdb2rdf/wiki/R2RML_Test_Cases_v1#Default_graph_TC0005
>>> [14] http://www.w3.org/2001/sw/rdb2rdf/track/issues/9
>>> [15] http://www.w3.org/2001/sw/rdb2rdf/track/actions/81
>> 
>> -- 
>> -ericP
> 
> -- 
> -ericP
> 

Received on Thursday, 3 February 2011 05:51:50 UTC