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

[Source]

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

Public Instance methods

[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