Module | Redland::Util |
In: | rdf/redland/util.rb |
Given an Iterator, returns an array of all Nodes beyond it including this one
# File rdf/redland/util.rb, line 22 def get_node_array(node_iterator) node_array = [] while not node_iterator.end? node_array << node_iterator.current node_iterator.next end return node_array end
Return true if node is a blank node
# File rdf/redland/util.rb, line 15 def is_blank?(node) return (Redland.librdf_node_is_blank(node) !=0) end
Return true if node is a literal
# File rdf/redland/util.rb, line 5 def is_literal?(node) return (Redland.librdf_node_is_literal(node) !=0) end
(C) Copyright 2004-2011 Dave Beckett, (C) Copyright 2004-2005 University of Bristol