diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2013-06-06 12:44:21 +0200 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2013-06-06 12:44:21 +0200 |
commit | fa108ccae6f824b4b38b7ea1cd8ea5ece87c1d66 (patch) | |
tree | 12741ca6cbc021dfd35d838a1dfdf9f884e7b3af /lib | |
parent | 5dab9d972bedb4319de39ee17253902fb37f8667 (diff) |
commenting to_turtle and to_html
Diffstat (limited to 'lib')
-rw-r--r-- | lib/opentox.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index adf0030..9d908bc 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -165,6 +165,7 @@ module OpenTox end end + # @return [String] converts object to turtle-string def to_turtle # redefined to use prefixes (not supported by RDF::Writer) prefixes = {:rdf => "http://www.w3.org/1999/02/22-rdf-syntax-ns#"} ['OT', 'DC', 'XSD', 'OLO'].each{|p| prefixes[p.downcase.to_sym] = eval("RDF::#{p}.to_s") } @@ -174,6 +175,7 @@ module OpenTox end end + # @return [String] converts OpenTox object into html document (by first converting it to a string) def to_html to_turtle.to_html end |