diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-19 15:59:12 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-19 15:59:12 +0100 |
commit | 23d96df630689d122c023d76ec1d40d7688d2c96 (patch) | |
tree | a8e05aa31fadbfc295d506ced6002bfe877761e2 /lib/dataset.rb | |
parent | 97e3942191e1ab8f084ba8da475749a9609c37aa (diff) |
extend authorization and rdf serialization for validation
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index d45c821..ae86f5f 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -253,11 +253,12 @@ module OpenTox # @param [Array] compounds List of compound URIs # @param [Array] features List of feature URIs # @param [Hash] metadata Hash containing the metadata for the new dataset + # @param [String] subjectid # @return [OpenTox::Dataset] newly created dataset, already saved - def split( compounds, features, metadata) + def split( compounds, features, metadata, subjectid=nil) LOGGER.debug "split dataset using "+compounds.size.to_s+"/"+@compounds.size.to_s+" compounds" raise "no new compounds selected" unless compounds and compounds.size>0 - dataset = OpenTox::Dataset.create + dataset = OpenTox::Dataset.create(CONFIG[:services]["opentox-dataset"],subjectid) if features.size==0 compounds.each{ |c| dataset.add_compound(c) } else @@ -270,7 +271,7 @@ module OpenTox end end dataset.add_metadata(metadata) - dataset.save + dataset.save(subjectid) dataset end |