tab2rdf.py doesn't generate Turtle

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