Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the RDF-Trine CPAN distribution.

Report information
The Basics
Id: 65963
Status: resolved
Priority: 0/
Queue: RDF-Trine

People
Owner: Nobody in particular
Requestors: PHILKIME [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.133
Fixed in: (no value)



I can't seem to create a store from a .n3 file. Even if the .n3 is created by RDF::trine. I can read an RDF/XML without problem. If I then serialize this to Ntriples and try to read it in: readline() on unopened filehandle at /opt/local/lib/perl5/site_perl/5.12.2/RDF/Trine/Parser/NTriples.pm line 116. I have tried a few different RDF/XML files, serialized them to .n3 and them tried to read them in with RDF::Trine::Store->new_with_config or a straight parser call, same error.
Subject: Patch to RDF::Trine::Parser::NTriples
On Sun Feb 20 11:59:31 2011, PHILKIME wrote: Show quoted text
> I can't seem to create a store from a .n3 file. Even if the .n3 is > created by RDF::trine. I can read > an RDF/XML without problem. If I then serialize this to Ntriples and > try to read it in: > > readline() on unopened filehandle at > /opt/local/lib/perl5/site_perl/5.12.2/RDF/Trine/Parser/NTriples.pm > line 116. > > I have tried a few different RDF/XML files, serialized them to .n3 and > them tried to read them in > with RDF::Trine::Store->new_with_config or a straight parser call, > same error.
It seems I had never updated the NTriples parser to allow filename arguments (as new_with_config uses) -- it was expecting a filehandle. I believe I've fixed this problem and committed the change to github: https://github.com/kasei/perlrdf/commit/1e94c9f3583d8ed6ce6fdc5315a17e093eab8e7d It would be very helpful if you could confirm that this does indeed solve your problem. The change will appear in the next version of RDF::Trine. (Also, note that .n3 is the suffix generally used for N3. N-Triples, which it seems you're actually referring to, usually is given the suffix .nt.)
Thank you the patch fixes the problem. On Sun Feb 20 14:53:19 2011, GWILLIAMS wrote: Show quoted text
> It would be very helpful if you could confirm that this does indeed > solve your problem. > > The change will appear in the next version of RDF::Trine. > > (Also, note that .n3 is the suffix generally used for N3. N-Triples, > which it seems you're actually > referring to, usually is given the suffix .nt.)