class PubliSci::Prov::Role
Public Instance Methods
comment(str=nil)
click to toggle source
# File lib/publisci/metadata/prov/role.rb, line 8 def comment(str=nil) if str @comment = str else @comment end end
to_n3()
click to toggle source
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
# File lib/publisci/metadata/prov/role.rb, line 27 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
to_s()
click to toggle source
# File lib/publisci/metadata/prov/role.rb, line 35 def to_s subject end