diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-21 15:44:24 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-21 15:44:24 +0100 |
commit | 9bc9d1c5c11aa64d410200cc21d07acc39cc3019 (patch) | |
tree | f2f1f8ba9ca00b474cb7d22732d6a906e6cf58e0 /lib/parser.rb | |
parent | 53dec3e3b1a59760ac9440749d159edc7ac09359 (diff) |
fix for Datset#add false values, fix for parsing compounds without values
Diffstat (limited to 'lib/parser.rb')
-rw-r--r-- | lib/parser.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/parser.rb b/lib/parser.rb index f1249ad..f33017d 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -171,6 +171,10 @@ module OpenTox data[triple[0]][:compound] = triple[2] when /#{OT.feature}/i feature[triple[0]] = triple[2] + when /#{RDF.type}/i + if triple[2]=~/#{OT.Compound}/i and !data[triple[0]] + data[triple[0]] = {:compound => triple[0], :values => []} + end else end end |