RDFStore::RDFNode - An RDF graph node
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";
RDFStore::RDFNode is the base abstract class for RDFStore::Literal and RDFStore::Resource.
This is a class method, the constructor for RDFStore::RDFNode.
Return the label of the RDFNode as perl scalar
Return the textual represention of the RDFNode
Return a Cryptographic Digest (SHA-1 by default) of the node label - see RDFStore::Digest::Digestable(3)
Compare two RDFNodes.
RDFStore::Literal(3) RDFStore::Resource(3) RDFStore(3) RDFStore::Digest::Digestable(3)
http://www.w3.org/TR/rdf-primer/ http://www.w3.org/TR/rdf-mt http://www.w3.org/TR/rdf-syntax-grammar/ http://www.w3.org/TR/rdf-schema/ http://www.w3.org/TR/1999/REC-rdf-syntax-19990222 (obsolete)
Alberto Reggiori <areggiori@webweaving.org>
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install RDFStore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDFStore
CPAN shell
perl -MCPAN -e shell install RDFStore
For more information on module installation, please visit the detailed CPAN module installation guide.