summaryrefslogtreecommitdiff
path: root/lib/dataset.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-06-12 19:08:21 +0200
committergebele <gebele@in-silico.ch>2013-06-12 19:08:21 +0200
commitcb390ae0091b416ef217aad1bd0645409b5657dc (patch)
treea7115f3c22dcbcff27bf14364d8f39c8a3d0e821 /lib/dataset.rb
parent1a78b5b282bdf274dcae8f6740e2fc258cab316a (diff)
add type to dataset metadata
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r--lib/dataset.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb
index 9efae20..5df20b4 100644
--- a/lib/dataset.rb
+++ b/lib/dataset.rb
@@ -221,7 +221,7 @@ module OpenTox
# redefine rdf serialization methods
send :define_method, "to_#{format}".to_sym do
- @metadata[RDF.type] = RDF::OT.OrderedDataset
+ @metadata[RDF.type] = [RDF::OT.Dataset, RDF::OT.OrderedDataset]
create_rdf
@features.each_with_index do |feature,i|
@rdf << [RDF::URI.new(feature.uri), RDF::URI.new(RDF.type), RDF::URI.new(RDF::OT.Feature)]