class Redland::Namespace
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
Public Class Methods
new(namespace)
click to toggle source
Calls superclass method
Redland::Node::new
# File lib/rdf/redland/node.rb, line 198 def initialize(namespace) super(:uri_string=>namespace) @nodecache = {} end
Public Instance Methods
[](item)
click to toggle source
# File lib/rdf/redland/node.rb, line 203 def [](item) return the_node(item) end