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

Replace manual generation of turtle strings with ruby-rdf where possible #10

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

Comments

@wstrinz
Copy link

wstrinz commented Oct 27, 2013

Any part of the core data_cube.rb module that can be rewritten to use ruby-rdf rather than string manipulation would help with future development of the gem (as long as the tests still pass and performance doesn't take too big a hit)

Early on I made the decision to generate the rdf turtle output for the gem using mostly string manipulation. Ruby makes this easy and pretty, but ultimately it is a less flexible, testable, and reliable way than using good object oriented design to build up an output graph.

In retrospect, I should have used the excellent ruby-rdf gem more often for building statements, Converting ruby literals to RDF literals, and serializing or loading the output.

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