DOKK / manpages / debian 12 / libattean-perl / Attean::API::TermOrVariable.3pm.en
Attean::API::TermOrVariable(3pm) User Contributed Perl Documentation Attean::API::TermOrVariable(3pm)

Attean::API::TermOrVariable - Role representing terms and variables

This document describes Attean::API::TermOrVariable version 0.033

  use v5.14;
  use Attean;

This is a Moo role that both terms and variables consume, and is used as a constraint for nodes in triple and quad patterns.

"equals( $other )"
Returns true if the referent and $other are value-equal, false otherwise.
"is_bound"
Returns true if the referent is bound. Note that in pattern matching, "undef" may also be used, so typically, you would need to check

  if (defined($term) && $term->is_bound) { ...
    

to check.

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues>.

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.

2022-10-06 perl v5.34.0