summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index f2a3618..9d87c7a 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -2,6 +2,25 @@ LOGGER.progname = File.expand_path(__FILE__)
module OpenTox
module Algorithm
+
+
+ class Generic
+
+ attr_accessor :uri, :title, :date
+
+ def self.find(uri)
+ owl = OpenTox::Owl.from_uri(uri, "Algorithm")
+ return self.new(owl)
+ end
+
+ protected
+ def initialize(owl)
+ @title = owl.get("title")
+ @date = owl.get("date")
+ @uri = owl.uri
+ end
+
+ end
class Fminer