Parent

Methods

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
# File rdf/redland/node.rb, line 198
def initialize(namespace)
  super(:uri_string=>namespace)
  @nodecache = {}
end

Public Instance Methods

[](item) click to toggle 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-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol