Attean...ession(3pm)

okay bestie, welcome to the Attean...ession(3pm) page β€” and yes, it’s filed under User Contributed Perl Documentation. ✨

πŸŽ€ NAME πŸŽ€

Attean::Expression β€” SPARQL Expressions. That’s the name, that’s the vibe. πŸ’…

✨ VERSION ✨

This document describes Attean::Expression version 0.035. 🫢

πŸ’… SYNOPSIS πŸ’…

Here’s the little demo from the page, copied exactly because code is sacred:

use v5.14;
use Attean;

my $binding = Attean::Result->new();
my $value = Attean::ValueExpression->new( value => Attean::Literal->integer(2) );
my $plus = Attean::BinaryExpression->new( children => [$value, $value], operator => '+' );
my $result = $plus->evaluate($binding);
say $result->numeric_value; # 4

And the comment says it all: # 4. Slay. πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

This is a utility package that defines all the Attean SPARQL expression classes β€” the ones made of logical, numeric, and function operators, constant terms, and variables. Expressions may be evaluated in the context of an Attean::API::Result object, and they either return an Attean::API::Term object or throw a type error exception. That’s the whole contract, no cap. πŸ’–

The expression classes are:

  • Attean::ValueExpression
  • Attean::UnaryExpression
  • Attean::BinaryExpression
  • Attean::FunctionExpression

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests through the GitHub web interface at https://github.com/kasei/attean/issues. πŸ›βœ¨

πŸ‘€ SEE ALSO πŸ‘€

Bestie, this section is literally empty in the original β€” no entries listed here. πŸ’€

🌸 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. 🌈


This page comes from perl v5.40.0, dated 2025-01-26, and its manual name is Attean...ession(3pm). Mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from