NAME
RDFStore::Statement - An RDF Statement implementation
SYNOPSIS
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";
DESCRIPTION
An RDF Statement implementation.
METHODS
- new ( SUBJECT, PREDICATE, OBJECT )
-
This is a class method, the constructor for RDFStore::Statement. SUBJECT and PREDICATE must be two RDFStore::Resource while OBJECT is RDFStore::RDFNode
- subject
-
Return the RDFStore::Resource that is the RDF Subject/Resource of the Statement
- predicate
-
Return the RDFStore::Resource that is the RDF Predicate/Property of the Statement/Resource
- object
-
Return the RDFStore::RDFNode that is the RDF Object/Property-Value of the Statement/Resource
- getURI
-
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 ;)
- getNamespace
-
Return undef
- getLocalName
-
Return the label of the RDF Statement as a URN identifier with the digest hex encoded i.e. "urn:rdf:SHA-1:12uf2229829289229eee"
- getLabel
-
Return the label of the RDF Statement as a URN identifier with the digest hex encoded i.e. "urn:rdf:SHA-1:12uf2229829289229eee"
- toString
-
Return the textual represention of the RDF Statement i.e. triple("http://blaa.org", "http://purl.org/dc/elements/1.1/title", "Crapy site")
- getDigest
-
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
- equals
-
Compare two RDF Statements.
SEE ALSO
RDFStore::Literal(3) RDFStore::Resource(3) RDFStore(3) RDFStore::Digest::Digestable(3) RDFStore::RDFNode(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>
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 162:
You forgot a '=back' before '=head1'