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 theAttean::API::Termobject mapped to the variable named$name, orundefif no such term is mapped. π«Άvariablesβ Returns a list of the variable names mapped toAttean::API::Termobjects in this mapping. πapply_map( $mapper )β Returns a new mapping object, of the same class as the referent, with term objects rewritten using the suppliedAttean::Mapperobject$mapper. π
πΈ METHODS πΈ
This role provides default implementations of the following methods:
mappingβ Returns aHASHmapping variable names toAttean::API::Termobjects. ποΈvaluesβ Returns a list ofAttean::API::Termobjects corresponding to the variable names returned by the referent'svariablesmethod. πtuples_stringβ Returns a string serialization of theAttean::API::Termobjects in the order they are returned by the referent'svaluesmethod. π€as_stringβ Returns a string serialization of the variable bindings. π§΅has_blanksβ Returns true if any variable is bound to anAttean::API::Blankterm, 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β Returnstrueif all the bound values consumeAttean::API::Term,falseotherwise. The original page has a lil typo here β it saystueπ β 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$stringin SPARQL syntax. πͺproject( @keys )β Returns a newAttean::Resultbinding 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 β
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
- 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