|
NAMERDFStore::Resource - An RDF Resource Node implementation SYNOPSIS use RDFStore::Resource;
my $resource = new RDFStore::Resource("http://pen.jrc.it/index.html");
my $resource1 = new RDFStore::Resource("http://pen.jrc.it/","index.html");
print $resource->toString." is ";
print "not"
unless $resource->equals($resource1);
print " equal to ".$resource1->toString."\n";
# or from URI object
use URI;
$resource = new RDFStore::Resource("http://www.w3.org/1999/02/22-rdf-syntax-ns#","Description");
$resource1 = new RDFStore::Resource( new URI("http://www.w3.org/1999/02/22-rdf-syntax-ns#Description") );
print $resource->toString." is ";
print "not"
unless $resource->equals($resource1);
print " equal to ".$resource1->toString."\n";
my $resource = new RDFStore::Resource([ a,{ d => 'value'}, [ 1,2,3] ]);
print $resource->toString." is ";
print "not"
unless($resource->isbNode);
print " anonymous\n";
DESCRIPTIONAn RDF Resource Node implementation which support the so called anonymous-resources or bNodes (blankNodes) METHODS
SEE ALSORDFStore::RDFNode(3) ABOUT RDFhttp://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) AUTHORAlberto Reggiori <areggiori@webweaving.org> POD ERRORSHey! The above document had some coding errors, which are explained below:
|