class EasyRdf_Isomorphic
Functions for comparing two graphs with each other
Based on rdf-isomorphic.rb by Ben Lavender: https://github.com/ruby-rdf/rdf-isomorphic
Methods
static boolean |
isomorphic(object $graphA, object $graphB)
Check if one graph is isomorphic (equal) to another graph |
|
static array |
bijectionBetween(object $graphA, object $graphB)
Returns an associative array of bnode identifiers representing an isomorphic bijection of one EasyRdfGraph to another EasyRdfGraph's blank nodes or null if a bijection cannot be found. |
Details
at line 62
static public boolean
isomorphic(object $graphA, object $graphB)
Check if one graph is isomorphic (equal) to another graph
For example: $graphA = EasyRdfGraph::newAndLoad('http://example.com/a.ttl'); $graphB = EasyRdfGraph::newAndLoad('http://example.com/b.ttl'); if (EasyRdf_Isomorphic::isomorphic($graphA, $graphB)) print "Equal!";
at line 76
static public array
bijectionBetween(object $graphA, object $graphB)
Returns an associative array of bnode identifiers representing an isomorphic bijection of one EasyRdfGraph to another EasyRdfGraph's blank nodes or null if a bijection cannot be found.