From fa108ccae6f824b4b38b7ea1cd8ea5ece87c1d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCtlein?= Date: Thu, 6 Jun 2013 12:44:21 +0200 Subject: commenting to_turtle and to_html --- lib/opentox.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3