Object
The world object is the single global variable in Redland that all the classes, their factories and implementations reference.
In most programs there should be only one Redland world, using multiple models although multiple worlds are possible.
# File rdf/redland.rb, line 54 def World.create_finalizer(world) proc {|id| "Finalizer on #{id}" #log_final.info "closing world" # This is commented out because Ruby fails to guarantee this # is called after all other redland destructors #Redland::librdf_free_world world } end
Create new RDF World object (constructor)
# File rdf/redland.rb, line 48 def initialize() @world = Redland::librdf_new_world() Redland::librdf_world_open(@world) ObjectSpace.define_finalizer(self,World.create_finalizer(@world)) end
(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol