summaryrefslogtreecommitdiff
path: root/lib/owl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/owl.rb')
-rw-r--r--lib/owl.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/owl.rb b/lib/owl.rb
index 9cb73f2..a843e59 100644
--- a/lib/owl.rb
+++ b/lib/owl.rb
@@ -42,7 +42,8 @@ module OpenTox
# I have no idea, why 2 subjects are returned
# iterating over all subjects leads to memory allocation problems
# SPARQL queries also do not work
- me = @model.subjects(RDF['type'],OT[self.owl_class])[1]
+ #me = @model.subjects(RDF['type'],OT[self.owl_class])[1]
+ me = @model.subject(RDF['type'],OT[self.owl_class])
@model.object(me, DC['title']).to_s
end