Redland RDF Application Framework - Ruby RDoc - Class: Redland::BNode

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

Class | Redland::BNode
In: | rdf/redland/node.rb
Parent: | Node

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.

### Methods

new

### Public Class methods

new(id=nil)

[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-2011 Dave Beckett, (C) Copyright 2004-2005 University of Bristol