Parent

Methods

Redland::BNode

A class to make Blank Node creation easier

model = Model.new
dom = BNode.new('dom') # create with optional id

I will probably depreciate this and just use Resource.new() to generate blank nodes.

Public Class Methods

new(id=nil) click to toggle source
# File rdf/redland/node.rb, line 184
def initialize(id=nil)
  @node = Redland.librdf_new_node_from_blank_identifier($world.world,id)
  if not @node then raise RedlandError.new("Node construction failed")end
  ObjectSpace.define_finalizer(self,Node.create_finalizer(@node))
end

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

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