Redland RDF Application Framework - Ruby RDoc - Class: Redland::Namespace

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

Class | Redland::Namespace
In: | rdf/redland/node.rb
Parent: | Node

A helper class for namespace. Caches the nodes for a given namespaces

     foaf = Namespace.new('http://xmlns.com/0.1/foaf/')
     model.find(nil,foaf['name'],'Dominic')
     puts foaf['name'] => http://xmlns.com/0.1/foaf/name

### Methods

[] new

### Public Class methods

new(namespace)

[Source]

    # File rdf/redland/node.rb, line 198
        def initialize(namespace)
          super(:uri_string=>namespace)
          @nodecache = {}
        end

### Public Instance methods

[](item)

[Source]

    # File rdf/redland/node.rb, line 203
        def [](item)
          return the_node(item)
        end

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

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