Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoders: better error handling on malformed input #1

Open
boutros opened this issue Apr 6, 2015 · 0 comments
Open

Decoders: better error handling on malformed input #1

boutros opened this issue Apr 6, 2015 · 0 comments

Comments

@boutros
Copy link
Member

boutros commented Apr 6, 2015

Right now the decoders all give up parsing when there is some malformed RDF input.

I'd like to also make it possible to ignore errors and try to continue parsing, discarding only the malformed parts. This is easy in line-based formats N-Triples & N-Quads, but more difficult in Turtle & RDF/XML.

Start by adding an ParserOption ("Strict"?), which should indicate the desired behaviour. Default to true, but if set to false, it will try to continue, skipping the malformed input.

Maybe also add an option (an io.Writer perhaps, defaults to nil) so consumers can decide where to print errors & warnings.

@boutros boutros changed the title Decoders error handling on malformed input Decoders: better error handling on malformed input Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant