RDF::Core::Statement - RDF statement


RDF-Core documentation  | view source Contained in the RDF-Core distribution.

Index


NAME

Top

RDF::Core::Statement - RDF statement

SYNOPSIS

Top

  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

Top

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

Top

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

AUTHOR

Top

Ginger Alliance, rdf@gingerall.cz

SEE ALSO

Top

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


RDF-Core documentation  | view source Contained in the RDF-Core distribution.