Sha256: b416e77228682b0c031d9e80326bc3fdfd9d2cedfb6ae7dca47c2bacb7470cdd
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
module PubliSci module Writers class JSON < Base def build_json(data) data.values.to_json end def from_turtle(file,select_dataset=nil,shorten_url=true) rb = turtle_to_ruby(file,select_dataset,shorten_url) build_json(rb[:data]) end def from_store(file,select_dataset=nil,shorten_url=true) build_json(repo_to_ruby(file,select_dataset,shorten_url)[:data]) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
publisci-0.1.2 | lib/bio-publisci/writers/json.rb |
bio-publisci-0.1.0 | lib/bio-publisci/writers/json.rb |