# File lib/rdf/redland/node.rb, line 38 def node_from_hash(hash) h = {:blank,:uri_string} if hash.key?(:blank) node = Redland.librdf_new_node_from_blank_identifier($world.world,hash[:blank]) end if hash.key?(:from_object) if hash.key?(:do_not_copy) node = hash[:from_object] else node = Redland.librdf_new_node_from_node(hash[:from_object]) end end if hash.key?(:uri_string) node = Redland.librdf_new_node_from_uri_string($world.world,hash[:uri_string]) end if hash.key?(:literal) node = node_from_literal(hash) end return node end