The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RDF::Core::Evaluator - gets a query object that RDF::Core::Query parsed and evaluates the query.

SYNOPSIS

  my %namespaces = (Default => 'http://myApp.gingerall.org/ns#',
                    ns     => 'http://myApp.gingerall.org/ns#',
                   );
  my $evaluator = new RDF::Core::Evaluator
    (Model => $model,            #an instance of RDF::Core::Model
     Factory => $factory,        #an instance of RDF::Core::NodeFactory
     Namespaces => \%namespaces,
    );
  my $query = new RDF::Core::Query(Evaluator=> $evaluator);

DESCRIPTION

The evaluator is just to be created and passed to query object, that uses it to evaluate the query.

Interface

  • new(%options)

    Available options are:

    • Model

      RDF::Core::Model object that contains data to be queried.

    • Functions

      RDF::Core::Function object is a functions library.

    • Factory

      RDF::Core::NodeFactory object, that produces resource and literal objects.

    • Namespaces

      A hash containing namespace prefixes as keys and URIs as values. See more in paragraph Names and URIs in RDF::Core::Query,

    • Row

      A code reference that is called every time a result row is found. The row elements are passed as parameters of the call. They can be undefined, RDF::Core::Resource or RDF::Core::Literal value. If Row is omitted, result is returned as a reference to array of rows

LICENSE

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

AUTHOR

Ginger Alliance, rdf@gingerall.cz

SEE ALSO

RDF::Core::Query