# RDF::Redland::LiteralNode - Redland RDF Literal Node Class - perldoc - [phpMan]

## NAME
    [RDF::Redland::LiteralNode](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3ALiteralNode/markdown) - Redland RDF Literal Node Class

## SYNOPSIS
      use [RDF::Redland](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland/markdown);
      my $node1=new [RDF::Redland::LiteralNode](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3ALiteralNode/markdown)("Hello, World!");
      my $node2=new [RDF::Redland::LiteralNode](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3ALiteralNode/markdown)("Bonjour monde!", undef, "fr");

## DESCRIPTION
    This class represents RDF literal and Typed Literals in the RDF graph. See [RDF::Redland::Node](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3ANode/markdown)
    for the methods on this object.

## CONSTRUCTOR
    new STRING [DATATYPE [XML_LANGUAGE]]
        Create a new literal node for a literal value *STRING*. Optional datatype URI *DATATYPE*
        ([RDF::Redland::URI](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3AURI/markdown), perl URI or string) and language (xml:lang attribute) *XML_LANGUAGE* may
        also be given.

## SEE ALSO
    [RDF::Redland::Node](https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3ANode/markdown)

## AUTHOR
    Dave Beckett - <http://www.dajobe.org/>

