+ " _:1 http://xmlns.com/foaf/0.1/mbox_sha1sum 'urn:urn-5:WNjqsnamsLlMJNMLDxjg-nLG0A8=''");
Model model1 = modelWithStatements(" _:2 http://xmlns.com/foaf/0.1/mbox_sha1sum 'urn:urn-5:WNjqsnamsLlMJNMLDxjg-nLG0A8='';"
+ "_:2 http://xmlns.com/foaf/0.1/mbox _:1;"
+ " _:1 http://xmlns.com/foaf/0.1/homepage _:2;");
assertTrue(model1.isIsomorphicWith(model));
ReferenceGroundedDecomposition dec = getDecomposition(model);
Set<FunctionallyGroundedNode> fgNodes = dec
.getFunctionallyGroundedNodes();
ReferenceGroundedDecomposition dec1 = getDecomposition(model1);
Set<FunctionallyGroundedNode> fgNodes1 = dec1
.getFunctionallyGroundedNodes();
System.out.println("Nodes in fgNodes");
for (FunctionallyGroundedNode fgNode : fgNodes) {
System.out.println("Hash: " + fgNode.hashCode());
System.out.println("Node: " + fgNode);
System.out.println();
}
System.out.println("Nodes in fgNodes1");
for (FunctionallyGroundedNode fgNode : fgNodes1) {
System.out.println("Hash: " + fgNode.hashCode());
System.out.println("Node: " + fgNode);
System.out.println();
}
System.out.println("Set Equals: " + fgNodes.equals(fgNodes1));
assertEquals("fgnodes", 2, dec1.getFunctionallyGroundedNodes().size());
assertEquals("Hashcodes", fgNodes.hashCode(), fgNodes1.hashCode());
}