Alberto Attilio Reggiori

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>