java.lang.Object
org.apache.jena.sparql.util.Iso
Isomorphism utilities, based on in-order lists. See
IsoMatcher
for
isomorphism for un-ordered collections. In this class, "isomorphism" is based on the
policy in NodeIsomorphismMap
, which is blank node isomorphism unless
NodeIsomorphismMap.makeIsomorphic(org.apache.jena.graph.Node, org.apache.jena.graph.Node)
is overridden.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface for choosing the pairs of node that can be map[ped for isomorphism. -
Field Summary
Modifier and TypeFieldDescriptionstatic Iso.Mappable
Blank nodes are mappable inIsoAlg
static Iso.Mappable
Blank nodes and variables are mappable inIsoAlg
static Iso.Mappable
Blank nodes and variables are mappable inIsoAlg
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isomorphicNodes
(List<org.apache.jena.graph.Node> nodes1, List<org.apache.jena.graph.Node> nodes2, NodeIsomorphismMap isoMap) static boolean
isomorphicQuads
(List<Quad> quads1, List<Quad> quads2, NodeIsomorphismMap isoMap) static boolean
isomorphicTriples
(List<org.apache.jena.graph.Triple> triples1, List<org.apache.jena.graph.Triple> triples2, NodeIsomorphismMap isoMap) static boolean
nodeIso
(org.apache.jena.graph.Node n1, org.apache.jena.graph.Node n2, NodeIsomorphismMap isoMap) static boolean
quadIso
(Quad t1, Quad t2, NodeIsomorphismMap labelMap) static boolean
tripleIso
(org.apache.jena.graph.Triple t1, org.apache.jena.graph.Triple t2, NodeIsomorphismMap labelMap) static boolean
triplePathIso
(TriplePath tp1, TriplePath tp2, NodeIsomorphismMap isoMap)
-
Field Details
-
Constructor Details
-
Iso
public Iso()
-
-
Method Details
-
isomorphicTriples
public static boolean isomorphicTriples(List<org.apache.jena.graph.Triple> triples1, List<org.apache.jena.graph.Triple> triples2, NodeIsomorphismMap isoMap) -
isomorphicQuads
public static boolean isomorphicQuads(List<Quad> quads1, List<Quad> quads2, NodeIsomorphismMap isoMap) -
isomorphicNodes
public static boolean isomorphicNodes(List<org.apache.jena.graph.Node> nodes1, List<org.apache.jena.graph.Node> nodes2, NodeIsomorphismMap isoMap) -
triplePathIso
-
tripleIso
public static boolean tripleIso(org.apache.jena.graph.Triple t1, org.apache.jena.graph.Triple t2, NodeIsomorphismMap labelMap) -
quadIso
-
nodeIso
public static boolean nodeIso(org.apache.jena.graph.Node n1, org.apache.jena.graph.Node n2, NodeIsomorphismMap isoMap)
-