.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RDF::Trine::Graph 3pm" .TH RDF::Trine::Graph 3pm 2024-01-13 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME RDF::Trine::Graph \- Materialized RDF Graphs for testing isomorphism .SH VERSION .IX Header "VERSION" This document describes RDF::Trine::Graph version 1.019 .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 4 \& use RDF::Trine::Graph; \& my $a = RDF::Trine::Graph\->new( $model_a ); \& my $b = RDF::Trine::Graph\->new( $model_b ); \& print "graphs are " . ($a\->equals( $b ) ? "the same" : "different"); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" RDF::Trine::Graph provdes a mechanism for testing graph isomorphism based on graph triples from either a RDF::Trine::Model or a RDF::Trine::Iterator. Isomorphism testing requires materializing all of a graph's triples in memory, and so should be used carefully in situations with large graphs. .SH METHODS .IX Header "METHODS" .ie n .IP """new ( $model )""" 4 .el .IP "\f(CWnew ( $model )\fR" 4 .IX Item "new ( $model )" .PD 0 .ie n .IP """new ( $iterator )""" 4 .el .IP "\f(CWnew ( $iterator )\fR" 4 .IX Item "new ( $iterator )" .PD Returns a new graph from the given RDF::Trine::Model or RDF::Trine::Iterator::Graph object. .ie n .IP """equals ( $graph )""" 4 .el .IP "\f(CWequals ( $graph )\fR" 4 .IX Item "equals ( $graph )" Returns true if the invocant and \f(CW$graph\fR represent two equal RDF graphs (e.g. there exists a bijection between the RDF statements of the invocant and \f(CW$graph\fR). .ie n .IP """is_subgraph_of ( $graph )""" 4 .el .IP "\f(CWis_subgraph_of ( $graph )\fR" 4 .IX Item "is_subgraph_of ( $graph )" Returns true if the invocant is a subgraph of \f(CW$graph\fR. (i.e. there exists an injection of RDF statements from the invocant to \f(CW$graph\fR.) .ie n .IP """injection_map ( $graph )""" 4 .el .IP "\f(CWinjection_map ( $graph )\fR" 4 .IX Item "injection_map ( $graph )" If the invocant is a subgraph of \f(CW$graph\fR, returns a mapping of blank node identifiers from the invocant graph to \f(CW$graph\fR as a hashref. Otherwise returns false. The solution is not always unique; where there exist multiple solutions, the solution returned is arbitrary. .ie n .IP """split_blank_statements""" 4 .el .IP \f(CWsplit_blank_statements\fR 4 .IX Item "split_blank_statements" Returns two array refs, containing triples with blank nodes and triples without any blank nodes, respectively. .ie n .IP """get_statements""" 4 .el .IP \f(CWget_statements\fR 4 .IX Item "get_statements" Returns a RDF::Trine::Iterator::Graph object for the statements in this graph. .ie n .IP """error""" 4 .el .IP \f(CWerror\fR 4 .IX Item "error" Returns an error string explaining the last failed \f(CW\*(C`equal\*(C'\fR call. .SH BUGS .IX Header "BUGS" Please report any bugs or feature requests to through the GitHub web interface at . .SH AUTHOR .IX Header "AUTHOR" Gregory Todd Williams \f(CW\*(C`\*(C'\fR .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (c) 2006\-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.