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
To install RDF::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Core
CPAN shell
perl -MCPAN -e shell install RDF::Core
For more information on module installation, please visit the detailed CPAN module installation guide.