java.lang.Object
org.apache.jena.sparql.util.iso.IsoAlgTuple
Simple isomorphism testing for collections of tuples of nodes. This can be used
for graphs, datasets and results sets The Graph isomorphism code in Jena is much
better (better tested, better performance) for graph isomorphism. This code is
simple, easier to understand, and works on collections of tuples, not just graphs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isIsomorphic
(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, EqualityTest nodeTest) Blank node isomorphism test.
-
Constructor Details
-
IsoAlgTuple
public IsoAlgTuple()
-
-
Method Details
-
isIsomorphic
public static boolean isIsomorphic(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, EqualityTest nodeTest) Blank node isomorphism test. Are the two collections of tuples of nodes isomorphic? Two nodes considered "equal" by an equality test such asNodeUtils.sameValue
(SPARQL value testing),NodeUtils.sameNode
(Node.equals), orNodeUtils.sameRdfTerm
(Node.equals, with lang tag insensitive testing).
-