class 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 lib/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