From 87c815a3eedd87d08f7dc74c3dbfdaf9867103a6 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 2 Aug 2010 15:20:44 +0200 Subject: handle missing features, some more documentation for owl --- lib/dataset.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dataset.rb') 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"+ -- cgit v1.2.3