Attean...inding(3pm)

πŸ’– NAME πŸ’–

Attean::API::Binding β€” Name to term bindings. hii bestie, this is the Attean...inding(3pm) page from the User Contributed Perl Documentation crew, and we are keeping every lil detail. periodt. πŸ’…

✨ VERSION ✨

This document describes Attean::API::Binding version 0.035. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

The Attean::API::Binding role defines a common API for all objects that map names to Attean::API::Term objects. That includes triples, quads, and SPARQL results, aka variable bindings. it's giving shared interface excellence. ✨

πŸŽ€ REQUIRED METHODS πŸŽ€

If a class consumes this role, it must provide these methods β€” no cap, they are required:

  • value( $name ) β€” Returns the Attean::API::Term object mapped to the variable named $name, or undef if no such term is mapped. 🫢
  • variables β€” Returns a list of the variable names mapped to Attean::API::Term objects in this mapping. πŸ“‹
  • apply_map( $mapper ) β€” Returns a new mapping object, of the same class as the referent, with term objects rewritten using the supplied Attean::Mapper object $mapper. πŸ”

🌸 METHODS 🌸

This role provides default implementations of the following methods:

  • mapping β€” Returns a HASH mapping variable names to Attean::API::Term objects. πŸ—‚οΈ
  • values β€” Returns a list of Attean::API::Term objects corresponding to the variable names returned by the referent's variables method. πŸ’–
  • tuples_string β€” Returns a string serialization of the Attean::API::Term objects in the order they are returned by the referent's values method. πŸ”€
  • as_string β€” Returns a string serialization of the variable bindings. 🧡
  • has_blanks β€” Returns true if any variable is bound to an Attean::API::Blank term, false otherwise. πŸ•³οΈ
  • sameTerms( $other ) β€” listed as a default implementation here; the original does not give this one a separate description, and we are not inventing one, bestie. 🫢
  • equals( $other ) β€” same vibe: listed as a default implementation, no extra blurb in the original. πŸ’…
  • blanks β€” Returns all the values in this mapping, recursively if any values are embedded bindings, that are blank nodes. 🌫️
  • referenced_variables β€” Returns a list of the names of any variable values that are referenced in this binding, recursively if any values are embedded bindings. πŸ”Ž
  • is_ground β€” Returns true if all the bound values consume Attean::API::Term, false otherwise. The original page has a lil typo here β€” it says tue 😭 β€” but you get the vibe. ⚑
  • values_consuming_role( $role ) β€” Returns the list of bound values that consume $role. πŸ‘‘
  • tree_attributes β€” Returns the variables which are bound in this object. 🌳
  • apply_bindings( $binding ) β€” Construct a new binding by replacing variables with their bound values from $binding. 🧚
  • parse ( $string ) β€” Returns a triple or quad pattern object using the variables and/or terms parsed from $string in SPARQL syntax. πŸͺ„
  • project( @keys ) β€” Returns a new Attean::Result binding which contains variable-value mappings from the invocant for every variable name in @keys. 🎯

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/attean/issues β€” yes, the original wording says β€œto through”, so we are keeping that lil detail. do not come for me, I am just the messenger. 😭

πŸ‘€ SEE ALSO πŸ‘€

okay so this section is literally empty in the original β€” no entries listed, no cross-references, nothing. Not me skipping it; there is just nothing to put here, bestie. πŸ’€

🌈 AUTHOR 🌈

Gregory Todd Williams "<gwilliams@cpan.org>" 🫢

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. πŸŽ€

Later, bestie πŸ’– β€” this page is from perl v5.40.0, dated 2025-01-26, and it is the Attean...inding(3pm) manual. Slay. 🌈

πŸ“¦ where this page comes from