1Attean::BindingEqualityUTseesrt(C3o)ntributed Perl DocumAetntteaatni:o:nBindingEqualityTest(3)
2
3
4
6 Attean::BindingEqualityTest - Test for equality of binding sets with
7 bnode isomorphism
8
10 This document describes Attean::BindingEqualityTest version 0.025
11
13 use v5.14;
14 use Attean;
15 my $test = Attean::BindingEqualityTest->new();
16 if ($test->equals($iter_a, $iter_b)) {
17 say "Iterators contain equivalent bindings";
18 }
19
21 ...
22
24 "equals ( $graph1, $graph2 )"
25 Returns true if the invocant and $graph represent two equal RDF
26 graphs (e.g. there exists a bijection between the RDF statements
27 of the invocant and $graph).
28
29 "is_subgraph_of ( $graph1, $graph2 )"
30 Returns true if the invocant is a subgraph of $graph. (i.e. there
31 exists an injection of RDF statements from the invocant to $graph.)
32
33 "injection_map ( $graph1, $graph2 )"
34 If the invocant is a subgraph of $graph, returns a mapping of blank
35 node identifiers from the invocant graph to $graph as a hashref.
36 Otherwise returns false. The solution is not always unique; where
37 there exist multiple solutions, the solution returned is arbitrary.
38
39 "split_blank_statements( $iter )"
40 Returns two array refs containing bindings from $iter, with
41 bindings containing blank nodes and bindings without any blank
42 nodes, respectively.
43
45 Please report any bugs or feature requests to through the GitHub web
46 interface at <https://github.com/kasei/attean/issues>.
47
50 Gregory Todd Williams "<gwilliams@cpan.org>"
51
53 Copyright (c) 2014--2019 Gregory Todd Williams. This program is free
54 software; you can redistribute it and/or modify it under the same terms
55 as Perl itself.
56
57
58
59perl v5.30.0 2019-10-31 Attean::BindingEqualityTest(3)