Alberto Reggiori > RDFStore-0.42 > RDFStore::Literal

Download:
RDFStore-0.42.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 0.41   Source   Latest Release: RDFStore-0.51

NAME ^

RDFStore::Literal - An implementation of the Literal RDF API using Storable(3)

SYNOPSIS ^

        use RDFStore::Literal;
        my $literal = new RDFStore::Literal('Tim Berners-Lee');
        my $literal1 = new RDFStore::Literal('Dan Brickley');

        print $literal->toString." is ";
        print "not"
                unless $literal->equals($literal1);
        print " equal to ".$literal1->toString."\n";
 
        # or using BLOBs...
        my $literal = new RDFStore::Literal([ a,{ d => 'value'}, [ 1,2,3] ]);
        my $literal1 = new RDFStore::Literal([ a,{ d => 'value'}, [ 1,2,3] ]);
 
        print $literal->toString." is ";
        print "not"
                unless $literal->equals($literal1);
        print " equal to ".$literal1->toString."\n";

DESCRIPTION ^

An RDFStore::Stanford::Literal implementation using Storable(3). A Literal object can either contain plain (utf8) strings or plain BLOBs. Such an implementation allows to create really generic RDF statements about Perl data-structures or objects.

SEE ALSO ^

RDFStore::RDFNode(3) RDFStore::Stanford::Literal(3) Storable(3) Digest(3)

AUTHOR ^

        Alberto Reggiori <areggiori@webweaving.org>