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

Optionally validate output with ruby-rdf #27

Open
wstrinz opened this issue Oct 25, 2013 · 0 comments
Open

Optionally validate output with ruby-rdf #27

wstrinz opened this issue Oct 25, 2013 · 0 comments

Comments

@wstrinz
Copy link
Owner

wstrinz commented Oct 25, 2013

Currently the gem does not check whether its output is syntactically valid turtle rdf. Ruby-rdf's Repository class normally just ignores invalid statements, but it can be set to raise an error on invalid input by passing the validate: true parameter to an RDF::Repository.load() call.

The gem DSLs to_repository method (see here) uses the RDF::Repository interface, so adding the option to validate output should be as simple as adding the validate: true flag to the repo.load call, and handling and informing users about potential errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant