diff options
Diffstat (limited to 'lib')
-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 30f9644..4d05e73 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -85,9 +85,9 @@ module OpenTox def self.find(uri) begin - RestClient.get uri, :accept => 'application/rdf+xml' # check if the resource is available dataset = Dataset.new - dataset.read uri.to_s + data = RestClient.get uri, :accept => 'application/rdf+xml' # check if the resource is available + dataset.rdf = data dataset rescue nil |