Attean...leModel(3pm)
πΈ NAME πΈ
This is Attean::API::MutableModel β the role that represents mutable models, straight from the Attean...leModel(3pm) manual page (and yes, it's a User Contributed Perl Documentation situation, bestie π
).
β¨ VERSION β¨
This document describes Attean::API::MutableModel version 0.035.
π¦ SYNOPSIS π¦
use v5.14;
use Attean;
π DESCRIPTION π
Okay so this is a Moo role that mutable models consume. It defines the required methods for updating data, and it provides default functionality. Iconic behavior, no cap. π
π ROLES π
This role consumes the Attean::API::Model role. It's giving very main-character inheritance energy. π
π REQUIRED METHODS π
Classes consuming this role must provide the following methods β like, these are the non-negotiables:
add_quad( $quad )β Adds theAttean::API::Quad$quadto the model. π«Άremove_quad( $quad )β Removes theAttean::API::Quad$quadfrom the model. β¨create_graph( $graph )β Creates a new, empty graph in the model with theAttean::API::BlankOrIRIidentifier$graph. If the model does not support empty graphs, this operation may be a no-op. πdrop_graph( $graph )β Removes the graph in the model with theAttean::API::BlankOrIRIidentifier$graph. πclear_graph( $graph )β Removes all quads that belong to the graph in the model with theAttean::API::BlankOrIRIidentifier$graph. If the model does not support empty graphs, this operation may be an alias fordrop_graph( $graph ). π§
π METHODS π
This role provides default implementations of the following methods. Built-in bestie behavior, lowkey a gift:
load_triples( $format, $graph => $data )β Parses the serialized triples contained in the string$datausing the$formatparser (see"get_parser" in Attean). Triples resulting from parsing are turned into quads using the$graphidentifier, and added to the model. π₯load_triples_from_io( $format, $graph => $data )β Parses the serialized triples read from the filehandle$iousing the$formatparser (see"get_parser" in Attean). Triples resulting from parsing are turned into quads using the$graphidentifier, and added to the model. π¦add_iter( $iter )β Adds all the quads from theAttean::API::QuadIterator$iterto the model. πadd_list( $graph, @elements )β Adds anrdf:Listencoded list of@elementsto the model in the$graph. Returns theAttean::API::Blankhead of the list. π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues>. Do it for the plot, bestie. π
π¦ SEE ALSO π¦
The source page has a SEE ALSO section, but there are literally no entries under it β not one reference. That's the whole tea. π΅
π AUTHOR π
Gregory Todd Williams "gwilliams@cpan.org" β an icon. π
πΈ 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. It came from perl v5.40.0, dated 2025-01-26, with the footer label Attean...leModel(3pm). Mwah πβ¨
π¦ 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