RDF::Core::Statement - RDF statement
require RDF::Core::Statement;
my $subject = new RDF::Core::Resource('http://www.gingerall.cz/employees/Jim');
my $predicate = $subject->new('http://www.gingerall.cz/rdfns#name');
my $object = new RDF::Core::Literal('Jim Brown');
my $statement = new RDF::Core::Statement($subject, $predicate, $object);
print $statement->getObject->getLabel."\n"
- new($subject, $predicate,
$object)
Variables $subject and
$predicate are resources,
$object can be resource or literal
- getSubject
- getPredicate
- getObject
- getLabel
returns a content of statement in n-triple format.
- clone
returns copy of statement
This package is subject to the MPL (or the GPL alternatively).
Ginger Alliance, rdf@gingerall.cz
RDF::Core::Resource, RDF::Core::Literal