Redland RDF Language Bindings - Ruby RDoc - Class: Redland::World

### Home Classes Methods

### In Files

- rdf/redland.rb

### Parent

Object

### Methods

- ::create_finalizer
- ::new

### Files

- Makefile
- Makefile
- Makefile
- Makefile

### Class/Module Index

Quicksearch

- Redland
- Redland::BNode
- Redland::ContextParser
- Redland::FileStore
- Redland::HashOpen
- Redland::HashStore
- Redland::Literal
- Redland::MemoryStore
- Redland::MergedModel
- Redland::Model
- Redland::Namespace
- Redland::Node
- Redland::NodeIterator
- Redland::NodeTypeError
- Redland::OWL
- Redland::Parser
- Redland::Query
- Redland::QueryResults
- Redland::RDFS
- Redland::RedlandError
- Redland::Resource
- Redland::Serializer
- Redland::Statement
- Redland::Stream
- Redland::TripleStore
- Redland::Uri
- Redland::Util
- Redland::World
- DC
- FOAF

No matching classes.

# Redland::World

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.

### Attributes

world[RW]

include Singleton

### Public Class Methods

create_finalizer(world) click to toggle source

    # 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

new() click to toggle source

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

Go to Redland Home - Language Bindings Home - Ruby API Home

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol