public class GraphMatcher extends Object
Constructor and Description |
---|
GraphMatcher() |
Modifier and Type | Method and Description |
---|---|
static Map<BNode,BNode> |
getValidMapping(TripleCollection og1,
TripleCollection og2)
get a mapping from g1 to g2 or null if the graphs are not isomorphic.
|
public static Map<BNode,BNode> getValidMapping(TripleCollection og1, TripleCollection og2)
BNode
s from g1 to one
of g2. If the graphs are ground graphs the method return an empty map if
the graph are equals and null otherwise.
NOTE: This method does not returned mapping from blank nodes to grounded
nodes, a bnode in g1 is not a vraiable that may match any node, but must
match a bnode in g2.
On the algorithm:g1
- g2
- Copyright © 2014 The Apache Software Foundation. All Rights Reserved.