W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > August 2010

tab2rdf.py doesn't generate Turtle

From: Jonathan Rees <jar@creativecommons.org>
Date: Mon, 2 Aug 2010 16:37:55 -0400
Message-ID: <AANLkTingr3WLyjOFVQqz-v5AASMe4sFbqkhn4ap26DiG@mail.gmail.com>
To: Tim Berners-Lee <timbl@w3.org>
Cc: public-cwm-bugs@w3.org
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 Monday, 2 August 2010 20:38:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:01 UTC