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 the Attean::API::Quad $quad to the model. 🫢
  • remove_quad( $quad ) β€” Removes the Attean::API::Quad $quad from the model. ✨
  • create_graph( $graph ) β€” Creates a new, empty graph in the model with the Attean::API::BlankOrIRI identifier $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 the Attean::API::BlankOrIRI identifier $graph. πŸ’€
  • clear_graph( $graph ) β€” Removes all quads that belong to the graph in the model with the Attean::API::BlankOrIRI identifier $graph. If the model does not support empty graphs, this operation may be an alias for drop_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 $data using the $format parser (see "get_parser" in Attean). Triples resulting from parsing are turned into quads using the $graph identifier, and added to the model. πŸ”₯
  • load_triples_from_io( $format, $graph => $data ) β€” Parses the serialized triples read from the filehandle $io using the $format parser (see "get_parser" in Attean). Triples resulting from parsing are turned into quads using the $graph identifier, and added to the model. πŸ¦‹
  • add_iter( $iter ) β€” Adds all the quads from the Attean::API::QuadIterator $iter to the model. πŸ’œ
  • add_list( $graph, @elements ) β€” Adds an rdf:List encoded list of @elements to the model in the $graph. Returns the Attean::API::Blank head 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 (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