1RDF::Trine::Graph(3)  User Contributed Perl Documentation RDF::Trine::Graph(3)
2
3
4

NAME

6       RDF::Trine::Graph - Materialized RDF Graphs for testing isomorphism
7

VERSION

9       This document describes RDF::Trine::Graph version 1.019
10

SYNOPSIS

12         use RDF::Trine::Graph;
13         my $a = RDF::Trine::Graph->new( $model_a );
14         my $b = RDF::Trine::Graph->new( $model_b );
15         print "graphs are " . ($a->equals( $b ) ? "the same" : "different");
16

DESCRIPTION

18       RDF::Trine::Graph provdes a mechanism for testing graph isomorphism
19       based on graph triples from either a RDF::Trine::Model or a
20       RDF::Trine::Iterator.  Isomorphism testing requires materializing all
21       of a graph's triples in memory, and so should be used carefully in
22       situations with large graphs.
23

METHODS

25       "new ( $model )"
26       "new ( $iterator )"
27           Returns a new graph from the given RDF::Trine::Model or
28           RDF::Trine::Iterator::Graph object.
29
30       "equals ( $graph )"
31           Returns true if the invocant and $graph represent two equal RDF
32           graphs (e.g.  there exists a bijection between the RDF statements
33           of the invocant and $graph).
34
35       "is_subgraph_of ( $graph )"
36           Returns true if the invocant is a subgraph of $graph. (i.e. there
37           exists an injection of RDF statements from the invocant to $graph.)
38
39       "injection_map ( $graph )"
40           If the invocant is a subgraph of $graph, returns a mapping of blank
41           node identifiers from the invocant graph to $graph as a hashref.
42           Otherwise returns false. The solution is not always unique; where
43           there exist multiple solutions, the solution returned is arbitrary.
44
45       "split_blank_statements"
46           Returns two array refs, containing triples with blank nodes and
47           triples without any blank nodes, respectively.
48
49       "get_statements"
50           Returns a RDF::Trine::Iterator::Graph object for the statements in
51           this graph.
52
53       "error"
54           Returns an error string explaining the last failed "equal" call.
55

BUGS

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

AUTHOR

61       Gregory Todd Williams  "<gwilliams@cpan.org>"
62
64       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
65       software; you can redistribute it and/or modify it under the same terms
66       as Perl itself.
67
68
69
70perl v5.28.0                      2018-01-05              RDF::Trine::Graph(3)
Impressum