Skip to content

Instantly share code, notes, and snippets.

@rsinger
Created May 4, 2011 18:21
Show Gist options
  • Save rsinger/955713 to your computer and use it in GitHub Desktop.
Save rsinger/955713 to your computer and use it in GitHub Desktop.
Threach Code
def start_threading(triplers)
#puts "Start threading"
triplers.threach(triplers.length) do |tripler|
#triplers.each do |tripler|
parse_lines_or_warm_threads(tripler)
end
triplers.each do |tripler|
begin
@file << tripler.to_ntriples
rescue StandardError=>e
puts e
raise
end
tripler.clear_graph
end
#puts "End threading"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment