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::ValueExpressionAttean::UnaryExpressionAttean::BinaryExpressionAttean::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 π
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
- 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