Re: csv to rdf

 open('a.csv').readlines.map{|l|l.chomp.split(/\t/)}.do{|t|
 t[0].do{|x|
 t[1..-1].each_with_index{|r,ow|r.each_with_index{|v,i|
 yield '#r'+ow.to_s,x[i],v
 }}}}
a minimalist option in Ruby,
just minting a URI for each row (ideas ther?)..
after a bit of code massaging the resulting model into HTML (http://element.rubyforge.org/git?p=element.git;a=blob;f=ruby/W/sw.rb)
http://blog.whats-your.name/public/16m.html

Received on Thursday, 16 December 2010 17:08:57 UTC

AltStyle によって変換されたページ (->オリジナル) /