summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-04-05 19:12:04 +0200
committerChristoph Helma <helma@in-silico.ch>2011-04-05 19:12:04 +0200
commit80c2562c0f84f65b0e3ed02c3293c530d0dc4ce2 (patch)
tree97a16e629d1ec1f3073c47635df2b180a128255c
parent1daec5badcff31c591377017b32055aac775dbb7 (diff)
Parser.load_features fixed for Substructures
-rw-r--r--lib/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parser.rb b/lib/parser.rb
index cc5f1c8..db746c1 100644
--- a/lib/parser.rb
+++ b/lib/parser.rb
@@ -230,7 +230,7 @@ module OpenTox
`rapper -i rdfxml -o ntriples #{file.path} 2>/dev/null`.each_line do |line|
triple = line.chomp.split('> ').collect{|i| i.sub(/\s+.$/,'').gsub(/[<>"]/,'')}[0..2]
statements << triple
- features << triple[0] if triple[1] == RDF['type'] and (triple[2] == OT.Feature || triple[2] == OT.NumericFeature)
+ features << triple[0] if triple[1] == RDF.type and (triple[2] =~ /Feature|Substructure/)
end
File.delete(to_delete) if to_delete
statements.each do |triple|