diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-05-14 15:35:00 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-05-14 15:35:00 +0200 |
commit | ed00a3437c645c9777c7cd56021da39fe9b9bf21 (patch) | |
tree | a80ea78c5a523c220c6bd6e6ad389a88ad78ec74 /lib/rdf_provider.rb | |
parent | b658bd223ac3dd161894d2b65949120bbf9b7f9c (diff) |
modify nightly, dry run
Diffstat (limited to 'lib/rdf_provider.rb')
-rw-r--r-- | lib/rdf_provider.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdf_provider.rb b/lib/rdf_provider.rb index a0a09cf..34d761d 100644 --- a/lib/rdf_provider.rb +++ b/lib/rdf_provider.rb @@ -101,7 +101,7 @@ module Lib def add_class( property, node ) raise "no object prop: "+property.to_s unless @rdf_provider.object_property?(property) raise "no class name: "+property.to_s unless @rdf_provider.class_name(property) - res = @model.create_resource + res = Redland::Resource.new( File.join(node.uri.to_s,property.to_s) ) @model.add res, RDF['type'], @rdf_provider.class_name(property) @model.add res, DC['title'], @rdf_provider.class_name(property) @model.add node, @rdf_provider.object_property_name(property), res |