Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RDFStore::RDFNode(3)  User Contributed Perl Documentation RDFStore::RDFNode(3)

NAME
       RDFStore::RDFNode - An RDF graph	node

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
       RDFStore::RDFNode is the	base abstract class for	RDFStore::Literal and
       RDFStore::Resource.

METHODS
       new This	is a class method, the constructor for RDFStore::RDFNode.

       getLabel
	   Return the label of the RDFNode as perl scalar

       toString
	   Return the textual represention of the RDFNode

       getDigest
	   Return a Cryptographic Digest (SHA-1	by default) of the node	label
	   - see RDFStore::Digest::Digestable(3)

       equals
	   Compare two RDFNodes.

SEE ALSO
       RDFStore::Literal(3) RDFStore::Resource(3) RDFStore(3)
       RDFStore::Digest::Digestable(3)

ABOUT RDF
	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)

AUTHOR
	       Alberto Reggiori	<areggiori@webweaving.org>

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 118:
	   You forgot a	'=back'	before '=head1'

perl v5.32.0			  2006-06-19		  RDFStore::RDFNode(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | ABOUT RDF | AUTHOR | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=RDFStore::RDFNode&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help