java.lang.Object
org.apache.jena.sparql.util.IsoMatcher
Simple isomorphism testing for on unordered collections.
This code is simple and slow.
This code can work on any tuples of nodes.
See
Iso for isomorphism for ordered lists.
See IsoAlgTuple for the isomorphism algorithm.
See IsoAlgRows for the isomorphism algorithm for rowsets.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisomorphic(Collection<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>> x1, Collection<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>> x2) Collection of tuples isomorphismstatic booleanisomorphic(org.apache.jena.graph.Graph g1, org.apache.jena.graph.Graph g2) Graph isomorphismstatic booleanisomorphic(DatasetGraph dsg1, DatasetGraph dsg2) Dataset isomorphism
-
Constructor Details
-
IsoMatcher
public IsoMatcher()
-
-
Method Details
-
isomorphic
public static boolean isomorphic(org.apache.jena.graph.Graph g1, org.apache.jena.graph.Graph g2) Graph isomorphism -
isomorphic
Dataset isomorphism -
isomorphic
public static boolean isomorphic(Collection<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>> x1, Collection<org.apache.jena.atlas.lib.tuple.Tuple<org.apache.jena.graph.Node>> x2) Collection of tuples isomorphism
-