Alberto Attilio Reggiori

NAME

RDFStore::RDFNode - implementation of the RDFNode RDF API using Digest(3)

SYNOPSIS

        package myNode;

        use RDFStore::RDFNode;
        @myNode::ISA = qw ( RDFStore::RDFNode );

        sub new {
                my $self = $_[0]->SUPER::new();
                $self->{mylabel} = $_[1];
                bless $self,$_[0];
        };

        sub getLabel {
                return $_[0]->{mylabel};
        };

        package main;

        my $node = new myNode('My generic node');
        my $node1 = new myNode('Your generic node');

        print $node->toString." is ";
        print "not "
                unless $node->equals($node1);
        print " equal to ".$node1->toString."\n";
        

DESCRIPTION

An RDFStore::Stanford::RDFNode implementation using Digest(3). It is the basic class inherited by RDFStore::Literal and RDFStore::Resource. It provides general toString(), hashCode(), getDigest() and equals() methods.

SEE ALSO

RDFStore::Stanford::RDFNode(3) RDFStore::Stanford::Digest::Util(3) Digest(3) RDFStore::Literal(3) RDFStore::Resource(3)

AUTHOR

        Alberto Reggiori <areggiori@webweaving.org>