diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-05-27 09:09:41 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-05-27 09:09:41 +0200 |
commit | b04a09d3f35589fea83fce5eecdb5c2c91e9c413 (patch) | |
tree | 4e2cc2880339309ea7fc4dea433d9a7bc8e6316e /lib/serializer.rb | |
parent | 65eb02eabeb7fece614d93ed4a2dcc9f62867bc5 (diff) | |
parent | 736b01c045331bb3787bf491bc4c11c222aea206 (diff) |
Merge branch 'development' into svm_matrix
Conflicts:
lib/model.rb
Diffstat (limited to 'lib/serializer.rb')
-rw-r--r-- | lib/serializer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/serializer.rb b/lib/serializer.rb index 62c1159..5a9fd0a 100644 --- a/lib/serializer.rb +++ b/lib/serializer.rb @@ -50,6 +50,7 @@ module OpenTox OT.parameters => { RDF["type"] => [{ "type" => "uri", "value" => OWL.ObjectProperty }] } , OT.featureDataset => { RDF["type"] => [{ "type" => "uri", "value" => OWL.ObjectProperty }] } , OT.dependentVariables => { RDF["type"] => [{ "type" => "uri", "value" => OWL.ObjectProperty }] } , + OT.predictedVariables => { RDF["type"] => [{ "type" => "uri", "value" => OWL.ObjectProperty }] } , OT.paramValue => { RDF["type"] => [{ "type" => "uri", "value" => OWL.ObjectProperty }] } , #object props for validation# @@ -191,6 +192,7 @@ module OpenTox @object[metadata[OT.featureDataset]] = { RDF["type"] => [{ "type" => "uri", "value" => OT.Dataset }] } @object[metadata[OT.trainingDataset]] = { RDF["type"] => [{ "type" => "uri", "value" => OT.Dataset }] } @object[metadata[OT.dependentVariables]] = { RDF["type"] => [{ "type" => "uri", "value" => OT.Feature }] } + metadata[OT.predictedVariables].each{|feature| @object[feature] = { RDF["type"] => [{ "type" => "uri", "value" => OT.Feature }] }} # TODO: add algorithms from parameters @object["http://ot-dev.in-silico.ch/algorithm/fminer/bbrc"] = { RDF["type"] => [{ "type" => "uri", "value" => OT.Algorithm }] } @object["http://ot-dev.in-silico.ch/algorithm/fminer/last"] = { RDF["type"] => [{ "type" => "uri", "value" => OT.Algorithm }] } |