Skip to content

Instantly share code, notes, and snippets.

@albertmeronyo
Created January 18, 2016 08:37
Show Gist options
  • Save albertmeronyo/0261a85afc9a442a741b to your computer and use it in GitHub Desktop.
Save albertmeronyo/0261a85afc9a442a741b to your computer and use it in GitHub Desktop.
require 'rdf/tabular'
require 'rdf/ntriples'
graph = RDF::Graph.load("foo.csv", minimal: true)
output = RDF::Writer.for(:ntriples).buffer do |writer|
graph.each_statement do |statement|
writer << statement
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment