diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-11-11 09:31:27 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-11-11 09:31:27 +0100 |
commit | b93002b4ea50ff7e357da08abd10577347ce2d5f (patch) | |
tree | 840f1b8865032ce59917d8c5a3d6b2e499d19126 /lib/environment.rb | |
parent | d6811507c1c1339cc4fe7cdb429b9b34b97dc422 (diff) |
first steps towards version 2.0, yard documentation started, passes compound, dataset, feature, algorithm, fminer tests
Diffstat (limited to 'lib/environment.rb')
-rw-r--r-- | lib/environment.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/environment.rb b/lib/environment.rb index b16b62f..d66b062 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -61,3 +61,32 @@ FALSE_REGEXP = /^(false|inactive|0|0.0)$/i # Task durations DEFAULT_TASK_MAX_DURATION = 36000 EXTERNAL_TASK_MAX_DURATION = 36000 + +# OWL Namespaces +class OwlNamespace + + def initialize(uri) + @uri = uri + end + + def [](property) + @uri+property.to_s + end + + def type # for RDF.type + "#{@uri}type" + end + + def method_missing(property) + @uri+property.to_s + end + +end + +RDF = OwlNamespace.new 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' +OWL = OwlNamespace.new 'http://www.w3.org/2002/07/owl#' +DC = OwlNamespace.new 'http://purl.org/dc/elements/1.1/' +OT = OwlNamespace.new 'http://www.opentox.org/api/1.1#' +OTA = OwlNamespace.new 'http://www.opentox.org/algorithmTypes.owl#' +XSD = OwlNamespace.new 'http://www.w3.org/2001/XMLSchema#' + |