diff options
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 |