diff options
author | Christoph Helma <helma@in-silico.de> | 2009-12-19 13:28:55 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-12-19 13:28:55 +0100 |
commit | ca2e240e03a4e458f83281c28b529e44af81d132 (patch) | |
tree | 2729de0b81306ff9dfdaa5f2706b4b2dca91735d /lib/owl.rb | |
parent | 03b1a477aca26a8ba662474f16c7427052067d4e (diff) |
OWL-DL for fminer and datasets fixed
Diffstat (limited to 'lib/owl.rb')
-rw-r--r-- | lib/owl.rb | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -21,7 +21,6 @@ module OpenTox end def uri=(uri) - puts "assigning uri" @uri = uri uri = Redland::Uri.new(uri) # rewrite uri @@ -40,8 +39,11 @@ module OpenTox end def title - me = @model.subject(RDF['type'],OT[self.owl_class]) - @model.object(me, DC['title']).to_s unless me.nil? + # 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] + @model.object(me, DC['title']).to_s end def title=(title) |