summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-03-26 11:00:33 +0100
committerChristoph Helma <helma@in-silico.ch>2013-03-26 11:00:33 +0100
commit4c23e95dab563d74b4e86404608cc356a9b20875 (patch)
tree0fffdab89f6d89ca84c6f5c50d0f76f512efbc4b /lib
parent3fd8236e4ce9cbf3232d05661f33def68895b3e0 (diff)
initial adjustments for refactored version
Diffstat (limited to 'lib')
-rw-r--r--lib/format_util.rb4
-rw-r--r--lib/prediction_data.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/format_util.rb b/lib/format_util.rb
index d7b737e..61c8ab4 100644
--- a/lib/format_util.rb
+++ b/lib/format_util.rb
@@ -24,11 +24,11 @@ class String
def to_owl_uri
if DC_KEYS.include?(self)
- DC[self].to_s
+ RDF::DC[self].to_s
elsif RDF_KEYS.include?(self)
RDF[self].to_s
else
- OT[self].to_s
+ RDF::OT[self].to_s
end
end
end
diff --git a/lib/prediction_data.rb b/lib/prediction_data.rb
index 95902a9..2f80e8e 100644
--- a/lib/prediction_data.rb
+++ b/lib/prediction_data.rb
@@ -94,7 +94,7 @@ module Lib
internal_server_error "prediction_feature not found in test_dataset\n"+
"prediction_feature: '"+prediction_feature.to_s+"'\n"+
"test_dataset: '"+test_dataset_uri.to_s+"'\n"+
- "available features are: "+test_dataset.features.inspect if test_dataset.find_feature(prediction_feature)==nil
+ "available features are: "+test_dataset.features.inspect if test_dataset.find_feature_uri(prediction_feature)==nil
$logger.debug "test dataset size: "+test_dataset.compounds.size.to_s
internal_server_error "test dataset is empty "+test_dataset_uri.to_s unless test_dataset.compounds.size>0