RDF::Trine::Model::StatementFilter - Model for filtering statements based on a user-specified criteria
This document describes RDF::Trine::Model::StatementFilter version 0.117
new ( $store )
Returns a new statement-filter model.
count_statements ($subject, $predicate, $object)
Returns a count of all the statements matching the specified subject, predicate and objects. Any of the arguments may be undef to match any value.
get_statements ($subject, $predicate, $object [, $context] )
Returns a stream object of all statements matching the specified subject, predicate and objects from all of the rdf stores. Any of the arguments may be undef to match any value.
get_pattern ( $bgp [, $context] )
Returns a stream object of all bindings matching the specified graph pattern.
apply_rules ( $statement )
rules
Returns a list of all rules in the inferencing model.
add_rule ( \&rule )
Adds a rule to the inferencing model. The rule should be a CODE reference that, when passed a statement object, will return true if the statement should be allowed in the model, false if it should be filtered out.
Gregory Todd Williams <gwilliams@cpan.org>
<gwilliams@cpan.org>
Copyright (c) 2006-2010 Gregory Todd Williams. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::Trine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Trine
CPAN shell
perl -MCPAN -e shell install RDF::Trine
For more information on module installation, please visit the detailed CPAN module installation guide.