summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-03-07 13:51:45 +0100
committerChristoph Helma <helma@in-silico.ch>2012-03-07 13:51:45 +0100
commit2e3db6f6532ded28dfada22d4445038b79271814 (patch)
tree89361d4f66daf70767d4bf45a185e2f237a4aafc /lib/opentox.rb
parent7588adffdbd48a73d8b22be2379a5afee79e5bea (diff)
actor for error reports, turtle output for error reports
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index 10c7895..566c458 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -2,10 +2,15 @@
RDF::OT = RDF::Vocabulary.new 'http://www.opentox.org/api/1.2#'
RDF::OT1 = RDF::Vocabulary.new 'http://www.opentox.org/api/1.1#'
RDF::OTA = RDF::Vocabulary.new 'http://www.opentox.org/algorithmTypes.owl#'
+
SERVICES = ["Compound", "Feature", "Dataset", "Algorithm", "Model", "Validation", "Task", "Investigation"]
-# defaults to stderr, may be changed to file output
-$logger = OTLogger.new(STDERR) # no rotation
+# Regular expressions for parsing classification data
+TRUE_REGEXP = /^(true|active|1|1.0|tox|activating|carcinogen|mutagenic)$/i
+FALSE_REGEXP = /^(false|inactive|0|0.0|low tox|deactivating|non-carcinogen|non-mutagenic)$/i
+
+# defaults to stderr, may be changed to file output (e.g in opentox-service)
+$logger = OTLogger.new(STDERR)
$logger.level = Logger::DEBUG
module OpenTox