Sha256: 487aea338677e9963440b892be36456083ec39ed2278f891bb21eccc126a3d07
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
module PubliSci module Prov class Plan include Prov::Element def steps(steps=nil) if steps if File.exist? steps steps = Array[IO.read(steps).split("\n")] end @steps = Array[steps] else @steps end end def to_n3 str = "<#{subject}> a prov:Plan ;\n" if steps str << "\trdfs:comment (\"#{steps.join('" "')}\") ;\n" end add_custom(str) str << "\trdfs:label \"#{__label}\" .\n\n" end def to_s subject end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bio-publisci-0.0.6 | lib/bio-publisci/metadata/prov/plan.rb |