diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-08-02 15:20:44 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-08-02 15:20:44 +0200 |
commit | 87c815a3eedd87d08f7dc74c3dbfdaf9867103a6 (patch) | |
tree | 8a939d7f33350cde9d22a46e869b0c4a5e42537a /lib/dataset.rb | |
parent | 92bb08ac2e9e21a7bade2c272740fe3a1691cb85 (diff) |
handle missing features, some more documentation for owl
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 3efff7d..257cc17 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -25,7 +25,7 @@ module OpenTox case accept_header when "application/x-yaml" - d = YAML.load RestClientWrapper.get(uri.to_s.strip, :accept => 'application/x-yaml').to_s + d = YAML.load RestClientWrapper.get(uri.to_s.strip, :accept => 'application/x-yaml').to_s d.uri = uri unless d.uri when "application/rdf+xml" owl = OpenTox::Owl.from_uri(uri.to_s.strip, "Dataset") @@ -172,7 +172,7 @@ module OpenTox raise "invalid internal value type" end end - raise "feature value no found: "+feature.to_s + return nil #missing value else raise "value is not an array\n"+ "value "+v.to_s+"\n"+ |