Class Redland::Literal
In: lib/rdf/redland/node.rb
Parent: Node

A literal node

Methods

from_node   from_xml   new  

Included Modules

Redland

Attributes

language  [R]  the language of the literal
value  [R]  the string value of the literal

Public Class methods

create a literal from another Node

create a literal from and xml string

 literal = Literal.from_xml('<em>This is emphasized</em>')

create a new Literal node

 literal = Literal.new('Dominic')
 label = Literal.new('Name','en')

[Validate]