# File lib/rdf/redland/node.rb, line 62 def node_from_literal(hash) xml_language = hash.key?(:xml_language) ? hash[:xml_language] : "" wf_xml = hash.key?(:wf_xml?) ? 1 : 0 if hash.key?(:datatype) datatype = hash[:datatype] node = Redland.librdf_new_node_from_typed_literal($world.world,hash[:literal],xml_language,datatype.uri) else node = Redland.librdf_new_node_from_literal($world.world,hash[:literal],xml_language,wf_xml) end return node end