Attean::SimpleQueryEvaluator(3pm) | User Contributed Perl Documentation | Attean::SimpleQueryEvaluator(3pm) |
Attean::SimpleQueryEvaluator - Simple query evaluator
This document describes Attean::SimpleQueryEvaluator version 0.033
use v5.14; use Attean; my $algebra = Attean->get_parser('SPARQL')->parse('SELECT * WHERE { ... }'); my $active_graph = Attean::IRI->new('http://example.org/'); my $e = Attean::SimpleQueryEvaluator->new( model => $model ); my $iter = $e->evaluate( $algebra, $active_graph );
The Attean::SimpleQueryEvaluator class implements a simple query evaluator that, given an Attean::API::Algebra and a Attean::API::Model object, evaluates the query represented by the algebra using data from the model, and returns a query result.
If the "ground_blanks" option is false, replaces blank nodes in the pattern with fresh variables before evaluation, and populates %blanks with pairs ($variable_name => $variable_node). Each new variable is also appended to @new_vars as it is created.
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues>.
Gregory Todd Williams "<gwilliams@cpan.org>"
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-10-06 | perl v5.34.0 |