NAME

RDF::Core::Statement - RDF statement

SYNOPSIS

  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"

DESCRIPTION

Interface

  • 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

LICENSE

This package is subject to the MPL (or the GPL alternatively).

AUTHOR

Ginger Alliance, rdf@gingerall.cz

SEE ALSO

RDF::Core::Resource, RDF::Core::Literal