Attean::Result(3pm)

✨ NAME ✨

Attean::Result β€” SPARQL Result πŸ’– You're reading the Attean::Result(3pm) page from User Contributed Perl Documentation, and this class is the main character for representing a SPARQL result.

🌸 VERSION 🌸

This document describes Attean::Result version 0.035 β€” that's the version tea, bestie. πŸ«–

πŸ¦‹ SYNOPSIS πŸ¦‹

use v5.14;
use Attean;
my $result = Attean::Result->new(bindings => { name => $literal, homepage => $iri } );
my @vars = $result->variables; # ('name', 'homepage')
my $term = $result->value('name'); # $term == $literal

πŸŽ€ DESCRIPTION πŸŽ€

The Attean::Result class represents a SPARQL result β€” a set of bindings from variable names to terms. It conforms to the Attean::API::Result role. No cap, that's the whole vibe. πŸ’…

πŸ”₯ METHODS πŸ”₯

  • bindings β€” returns the HASH reference containing the variable bindings for this result. Yes, the whole bindings hash, bestie. πŸ“
  • value( $name ) β€” returns the term object bound to the $named variable, or undef if the name does not map to a term. Term-or-undef energy. ✨
  • variables β€” returns a list of the variable names that are bound to terms in this result object. Iconic list behavior. πŸ’–
  • as_string β€” returns a string serialization of the variable bindings contained in the result. Stringify and slay. πŸŽ€

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues>. That's the exact bug-reporting line, bestie. πŸ’€

🌈 SEE ALSO 🌈

No SEE ALSO entries are listed on this page β€” it's giving mysterious empty-section energy. πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams "<gwilliams@cpan.org>" β€” 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. Periodt. πŸŽ€

mwah πŸ’– β€” this page is Attean::Result(3pm), built from perl v5.40.0, dated 2025-01-26. Bye bestie! πŸŽ€

πŸ“¦ where this page comes from