Attean...leModel(3pm)
π NAME π
Attean::TripleModel β an RDF model backed by a set of triple-stores, periodt. This is the Attean...leModel(3pm) page from User Contributed Perl Documentation, bestie.
β VERSION β
This document describes Attean::TripleModel version 0.035, no cap.
π¦ SYNOPSIS π¦
okay so here's the whole setup, copy-paste ready:
use v5.14;
use Attean;
my $model = Attean::TripleModel->new( stores => {
'http://example.org/graph1' => $store1,
'http://example.org/graph2' => $store2,
} );
πΈ DESCRIPTION πΈ
The Attean::TripleModel class represents a model that is backed by a set of Attean::API::TripleStore objects, identified by an IRI string. It conforms to the Attean::API::Model role β iconic behavior, honestly.
The Attean::TripleModel constructor requires one named argument:
storesβ a hash mapping graph IRI values toAttean::API::TripleStoreobjects representing the backing triple-store for that graph. That's the whole required argument, bestie.
β¨ METHODS β¨
okay bestie, here's the full method lineup β no skipping, every single one is here:
sizeβ listed on the method roster πcount_quadsβ also on the roster.count_quads_estimateβ yep, here too.holdsβ listed, with no extra deets on this page.get_graphsβ listed, with no extra deets on this page.get_quads ( $subject, $predicate, $object, $graph )β returns anAttean::API::Iteratorfor quads in the model that match the supplied$subject,$predicate,$object, and$graph. Any of these terms may be undefined or aAttean::API::Variableobject, 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.
plans_for_algebra( $algebra, $planner, $active_graphs, $default_graphs )β delegates to an underlying store if the active graph is bound to the store, and the store consumesAttean::API::CostPlanner.cost_for_plan( $plan )β attempts to delegate to all the underlying stores if that store consumesAttean::API::CostPlanner.add_store( $graph => $store )β add theAttean::TripleStore$storeobject to the model using the IRI string value$graphas the graph name.create_graph( $graph )β create a newAttean::TripleStoreand add it to the model using theAttean::API::IRI$graphas the graph name.
The store is constructed by using this object's store_constructor attribute:
my $store = $self->store_constructor->($graph);
drop_graph( $graph )β removes the store associated with the given$graph.add_quad ( $quad )β adds the specified$quadto the underlying model.remove_quad ( $quad )β removes the specified$quadfrom the underlying store.drop_graph( $graph )β bestie, this one literally appears again in the original: removes the store associated with the given$graph.clear_graph( $graph )β removes all quads with the given$graph.
π BUGS π
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues> β yes bestie, the original says βto through,β and I am not about to erase its messy little moment.
π SEE ALSO π
This section is empty in the original β no references listed, not even one. It's giving βI have nothing to addβ energy π .
π«Ά AUTHOR π«Ά
Gregory Todd Williams <gwilliams@cpan.org> β that's the author contact from the page.
π 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.
okay bestie, that's the whole page. Footer vibes: perl v5.40.0, dated 2025-01-26, manual name Attean...leModel(3pm). byeeee πβ¨π¦
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms