Attean...ityTest(3pm)

πŸŽ€ NAME πŸŽ€

Attean::BindingEqualityTest β€” Test for equality of binding sets with bnode isomorphism.

This page is from User Contributed Perl Documentation and lives under the manual name Attean...ityTest(3pm). Hiii bestie, welcome to the binding-equality test page πŸ’–


✨ VERSION ✨

This document describes Attean::BindingEqualityTest version 0.035. Periodt.


🌸 SYNOPSIS 🌸

Okay so here’s the little code spell:

  use v5.14;
  use Attean;
  my $test      = Attean::BindingEqualityTest->new();
  if ($test->equals($iter_a, $iter_b)) {
    say "Iterators contain equivalent bindings";
  }

πŸ¦‹ DESCRIPTION πŸ¦‹

The DESCRIPTION here is literally just ... β€” that’s the whole vibe, no cap. ✨


πŸ’… METHODS πŸ’…

These are the methods, bestie. Keep the names and params exactly as written:

  • equals ( $graph1, $graph2 ) β€” returns true if the invocant and $graph represent two equal RDF graphs (e.g. there exists a bijection between the RDF statements of the invocant and $graph). Slay.
  • is_subgraph_of ( $graph1, $graph2 ) β€” returns true if the invocant is a subgraph of $graph (i.e. there exists an injection of RDF statements from the invocant to $graph). Iconic.
  • injection_map ( $graph1, $graph2 ) β€” if the invocant is a subgraph of $graph, returns a mapping of blank node identifiers from the invocant graph to $graph as a hashref. Otherwise returns false. Heads up: the solution is not always unique; where there exist multiple solutions, the solution returned is arbitrary. Not me stressing about uniqueness 😭
  • split_blank_statements( $iter ) β€” returns two array refs containing bindings from $iter, with bindings containing blank nodes and bindings without any blank nodes, respectively. Two little piles, cute πŸŽ€

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues>. Do it for the plot bestie πŸ™ˆ


🌈 SEE ALSO 🌈

The original page has no SEE ALSO entries listed, so there’s nothing else to point at here β€” just vibes and empty space. πŸ¦‹


πŸ‘‘ 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.


Okay bye bestie! πŸ’… This is Attean::BindingEqualityTest version 0.035, and the footer says perl v5.40.0, 2025-01-26, Attean...ityTest(3pm). Stay iconic. πŸŽ€

πŸ“¦ where this page comes from