From 1d49fe0da8e7d4dfc57fdbfffdc4e32db2ef0647 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 2 May 2012 20:06:16 +0000 Subject: initial task service --- lib/opentox-client.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/opentox-client.rb') diff --git a/lib/opentox-client.rb b/lib/opentox-client.rb index dec3512..0546634 100644 --- a/lib/opentox-client.rb +++ b/lib/opentox-client.rb @@ -7,6 +7,7 @@ require 'uri' require 'yaml' require 'json' require 'logger' +require "securerandom" # define constants and global variables #TODO: switch services to 1.2 @@ -17,6 +18,7 @@ RDF::OTA = RDF::Vocabulary.new 'http://www.opentox.org/algorithmTypes.owl#' #CLASSES = ["Compound", "Feature", "Dataset", "Algorithm", "Model", "Validation", "Task", "ErrorReport", "Investigation"] CLASSES = ["Generic", "Compound", "Feature", "Dataset", "Algorithm", "Model", "Validation", "Task", "Investigation"] RDF_FORMATS = [:rdfxml,:ntriples,:turtle] +#$default_rdf = "text/plain" $default_rdf = "application/rdf+xml" # Regular expressions for parsing classification data -- cgit v1.2.3