Module: Muml_Element

Defined in:
lib/ontomde-uml2-kb/protege.rb

Instance Method Summary collapse

Instance Method Details

#append_commentObject

writes uml comment as and rdf comment



83
84
85
86
87
88
89
90
91
# File 'lib/ontomde-uml2-kb/protege.rb', line 83

def append_comment
  c=""
  uml_ownedComment.each { |comment|
    if comment.uml_body_one
      c=c+comment.uml_body_one
    end
  }
  write("<#{self.prot_uri}> <#{NS_RDF_2000}rdf-schema#comment> \"#{c.nt_escape}\".\n") if c!=""
end