| RDFStore documentation | view source | Contained in the RDFStore distribution. |
RDFStore::Statement - An RDF Statement implementation
use RDFStore::Statement;
use RDFStore::Literal;
use RDFStore::Resource;
my $statement = new RDFStore::Statement(
new RDFStore::Resource("http://www.w3.org/Home/Lassila"),
new RDFStore::Resource("http://description.org/schema/","Creator"),
new RDFStore::Literal("Ora Lassila") );
my $statement1 = new RDFStore::Statement(
new RDFStore::Resource("http://www.w3.org"),
new RDFStore::Resource("http://description.org/schema/","Publisher"),
new RDFStore::Literal("World Wide Web Consortium") );
my $subject = $statement->subject;
my $predicate = $statement->predicate;
my $object = $statement->object;
print $statement->toString." is ";
print "not"
unless $statement->equals($statement1);
print " equal to ".$statement1->toString."\n";
An RDF Statement implementation.
This is a class method, the constructor for RDFStore::Statement. SUBJECT and PREDICATE must be two RDFStore::Resource while OBJECT is RDFStore::RDFNode
Return the RDFStore::Resource that is the RDF Subject/Resource of the Statement
Return the RDFStore::Resource that is the RDF Predicate/Property of the Statement/Resource
Return the RDFStore::RDFNode that is the RDF Object/Property-Value of the Statement/Resource
Return the URI identifing the RDF Statement; this is useful either for RDF reification (if ever it will be used :) and to treat RDF Statement as resources and then make "composite" statements....somehow ;)
Return undef
Return the label of the RDF Statement as a URN identifier with the digest hex encoded i.e. "urn:rdf:SHA-1:12uf2229829289229eee"
Return the label of the RDF Statement as a URN identifier with the digest hex encoded i.e. "urn:rdf:SHA-1:12uf2229829289229eee"
Return the textual represention of the RDF Statement i.e. triple("http://blaa.org", "http://purl.org/dc/elements/1.1/title", "Crapy site")
Return a Cryptographic Digest (SHA-1 by default) of the Statement as defined in http://nestroy.wi-inf.uni-essen.de/rdf/sum_rdf_api/#K31
Compare two RDF Statements.
RDFStore::Literal(3) RDFStore::Resource(3) RDFStore(3) RDFStore::Digest::Digestable(3) RDFStore::RDFNode(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>
| RDFStore documentation | view source | Contained in the RDFStore distribution. |