Scroll to navigation

Attean::API::TermOrVariable(3pm) User Contributed Perl Documentation Attean::API::TermOrVariable(3pm)

NAME

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

VERSION

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

SYNOPSIS

  use v5.14;
  use Attean;

DESCRIPTION

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

METHODS

"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.

BUGS

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

SEE ALSO

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.

2022-08-19 perl v5.34.0