diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-09-14 20:52:04 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-09-14 20:52:04 +0200 |
commit | 5334912982dd06f61103025504a6f78438847ee0 (patch) | |
tree | 20e14847f5ed7f0690afa8a7d3991b007ee77222 /lazar.rb | |
parent | dc7c3474ce544f2f3fa3c23a483f6c24339999de (diff) |
simplified version of OwlSerializer, RDF/XML for algorithm/lazar, RDF/XML for annotations,compounds, features in dataset
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -216,14 +216,16 @@ class Lazar < Model activity_dataset = YAML.load(RestClient.get(data.trainingDataset, :accept => 'application/x-yaml').to_s) feature_dataset = YAML.load(RestClient.get(data.feature_dataset_uri, :accept => 'application/x-yaml').to_s) owl = OpenTox::OwlSerializer.create 'Model', uri - owl.annotate("creator","http://github.com/helma/opentox-model") + #owl.creator "helma@in-silico.ch" + #owl.contributor "helma@in-silico.ch" + owl.annotate("creator",data.algorithm,XSD.AnyUri) owl.annotate("title", URI.decode(data.dependentVariables.split(/#/).last) ) - owl.annotate("date",created_at.to_s) - owl.annotate("algorithm",data.algorithm) - owl.annotate("dependentVariables",activity_dataset.features.join(', ')) - owl.annotate("independentVariables",feature_dataset.features.join(', ')) - owl.annotate("predictedVariables", data.dependentVariables ) - owl.annotate("trainingDataset",data.trainingDataset) + owl.annotate("date",created_at.to_s,XSD.DateTime) + #owl.annotate("algorithm",data.algorithm) + #owl.annotate("dependentVariables",activity_dataset.features.join(', ')) + #owl.annotate("independentVariables",feature_dataset.features.join(', ')) + #owl.annotate("predictedVariables", data.dependentVariables ) + #owl.annotate("trainingDataset",data.trainingDataset) =begin owl.parameters = { "Dataset URI" => |