Re: tab2rdf.py doesn't generate Turtle

SPARQL allows

[ :p 123 ] .
(1 2 3 4) .

but does not allow the triple-less forms:

[] .
() .

	Andy

On 02/08/2010 11:04 PM, Tim Berners-Lee wrote:
> SIgh.  A random and unnecessary departure of turtle from N3 IMHO.
>
> Changed the code anyway.  Almost 10 years on
>
> Tim
>
>
> total revisions: 6;	selected revisions: 6
> description:
> ----------------------------
> revision 1.6
> date: 2010/08/02 22:01:22;  author: timbl;  state: Exp;  lines: +31 -8
> See mail from JAR to public-cwm-talk mid:AANLkTingr3WLyjOFVQqz-v5AASMe4sFbqkhn4ap26DiG@mail.gmail.com
> ----------------------------
> revision 1.5
> date: 2007/10/18 20:55:41;  author: timbl;  state: Exp;  lines: +38 -17
> doublequote escaping
> ----------------------------
> revision 1.4
> date: 2007/06/26 02:36:15;  author: syosi;  state: Exp;  lines: +55 -55
> fix tabs
> ----------------------------
> revision 1.3
> date: 2000/11/10 23:04:18;  author: timbl;  state: Exp;  lines: +1 -1
> Starting basis for qualifiers
> ----------------------------
> revision 1.2
> date: 2000/11/02 20:48:45;  author: timbl;  state: Exp;  lines: +10 -0
> first schema hack
> ----------------------------
> revision 1.1
> date: 2000/10/31 15:56:37;  author: timbl;  state: Exp;
> Hacked TabDelimted-windows format to n3 converter
> =============================================================================
>
> On 2010-08 -02, at 16:37, Jonathan Rees wrote:
>
>> I'm trying to use http://www.w3.org/2000/10/swap/tab2n3.py
>> and have discovered the hard way that it doesn't generate Turtle...
>> not that it claims to, but I felt like complaining.
>>
>> Apparently the Turtle grammar requires a predicate and object
>> following each subject, and in the output of tab2n3 there are subjects
>> with no predicate and object. E.g.
>>
>> # headings found:  3 ['strain_id', 'strain_name', 'strain_type']
>> [
>>     :strain_id "MGI:2164743";
>>     :strain_name "(C57BL/6JEiJ x C3Sn.BLiA-Pde6b<+>)F1";
>>     :strain_type "Not Specified";
>> ] .
>>
>> Here's what the Turtle submission says:
>>
>> [6]	triples	::=	subject predicateObjectList
>> [7]	predicateObjectList	::=	verb objectList ( ';' verb objectList )* ( ';')?
>>
>> To generate correct Turtle is possible but awkward. You could say
>> tab2n3 is working as designed, and was never meant to generate Turtle,
>> only N3, but... wouldn't it be nice?
>>
>> Jonathan
>>
>
>

Received on Tuesday, 3 August 2010 13:44:37 UTC