NAME
Attean::DatasetModel - RDF model that restricts the dataset of a sub-model
VERSION
This document describes Attean::DatasetModel version 0.039
SYNOPSIS
use v5.14;
use Attean;
my $model = Attean::DatasetModel->new( model => $model, graphs => \@named_graphs );
DESCRIPTION
The Attean::DatasetModel class represents a model that is backed by a sub-model. It restricts the available named graphs of the sub-model to only those configured during construction.
This class conforms to the Attean::API::Model role.
The Attean::DatasetModel constructor requires two named arguments:
- model
-
A Attean::API::Model object representing the sub-model.
- graphs
-
An array reference of Attean::API::IRI objects, enumerating the acceptable named graphs that can be queried.
METHODS
get_quads ( $subject, $predicate, $object, $graph )-
Returns an Attean::API::Iterator for quads in the model that match the supplied
$subject,$predicate,$object, and$graph. Any of these terms may be undefined or a Attean::API::Variable object, in which case that term will be considered as a wildcard for the purposes of matching.The returned iterator conforms to both Attean::API::Iterator and Attean::API::QuadIterator.
BUGS
Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/attean/issues.
SEE ALSO
AUTHOR
Gregory Todd Williams <gwilliams@cpan.org>
COPYRIGHT
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.