Jakob Voß > RDF-Lazy > RDF::Lazy::Literal

Download:
RDF-Lazy-0.081.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.081   Source  

NAME ^

RDF::Lazy::Literal - Literal node in a RDF::Lazy graph

VERSION ^

version 0.081

DESCRIPTION ^

You should not directly create instances of this class. See RDF::Lazy::Node for general node properties.

METHODS ^

str

Return the literal string value of this node.

esc

Return the HTML-encoded literal string value.

lang ( [ $pattern ] )

Return the language tag (a BCP 47 language tag locator), if this node has one, or test whether the language tag matches a pattern. For instance use 'de' for plain German (but not 'de-AT') or 'de-' for plain German or any German dialect.

is_...

Return whether this node matches a given language tag, for instance

    $node->is_en   # equivalent to $node->lang('en')
    $node->is_en_  # equivalent to $node->lang('en-')

datatype ( [ @types ] )

Return the datatype (as RDF::Lazy::Resource, if this node has one. Can also be used to checks whether the datatype matches, for instance:

    $node->datatype('xsd:integer','xsd:double');

AUTHOR ^

Jakob Voß <voss@gbv.de>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Jakob Voß.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: