Sha256: b12446fe6f860d30600b75427301b3b96c31179ce2ca30c08ea7ad7911437af4
Contents?: true
Size: 549 Bytes
Versions: 8
Compression:
Stored size: 549 Bytes
Contents
module PubliSci class 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
8 entries across 8 versions & 2 rubygems