Sha256: 5fe19f76ac68a3ba2eaca8f372a632f22ecdec4fa3d4312a971862cfae26999c
Contents?: true
Size: 741 Bytes
Versions: 8
Compression:
Stored size: 741 Bytes
Contents
module PubliSci class Prov class Role # attr_writer :comment include Prov::Element def comment(str=nil) if str @comment = str else @comment end end # 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:Role ;\n" str << "\trdfs:comment \"#{comment}\" ;\n" if comment 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