ruby-rdf / rdf-turtle

Turtle reader/writer for Ruby
http://rubygems.org/gems/rdf-turtle
The Unlicense
31 stars 9 forks source link

Raises an error on an empty document #14

Closed no-reply closed 8 years ago

no-reply commented 8 years ago

RDF::Turtle::Reader.new('', validate: true).statements fails with RDF::ReaderError: Errors found during processing.

I believe a zero character string is a valid turtle document, and that this should parse to an empty set of statements. Is this correct?

no-reply commented 8 years ago

I'm having trouble repeating this in an isolated environment. It's probable that this is a dependency issue.

no-reply commented 8 years ago

Can't repeat in a base rdf or linkeddata environment. I'll reopen if I can figure out what dependency combination caused this behavior for me.

gkellogg commented 8 years ago

You should see more detailed messages on street, or whatever the log device is. No reason I can think of that an empty graph would be a problem.