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 boolean
isomorphic
(Collection<org.apache.jena.graph.Triple> triples1, Collection<org.apache.jena.graph.Triple> triples2) Collection of triples isomorphismstatic boolean
isomorphic
(org.apache.jena.graph.Graph graph1, org.apache.jena.graph.Graph graph2) Graph isomorphismstatic boolean
isomorphic
(DatasetGraph dsg1, DatasetGraph dsg2) Dataset isomorphismstatic boolean
isomorphicTuples
(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
-
Constructor Details
-
IsoMatcher
public IsoMatcher()
-
-
Method Details
-
isomorphic
public static boolean isomorphic(org.apache.jena.graph.Graph graph1, org.apache.jena.graph.Graph graph2) Graph isomorphism -
isomorphic
Dataset isomorphism -
isomorphic
public static boolean isomorphic(Collection<org.apache.jena.graph.Triple> triples1, Collection<org.apache.jena.graph.Triple> triples2) Collection of triples isomorphism -
isomorphicTuples
public static boolean isomorphicTuples(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
-