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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isomorphicNodes
(List<org.apache.jena.graph.Node> nodes1, List<org.apache.jena.graph.Node> nodes2, NodeIsomorphismMap isoMap) Are lists of nodes isomorphic?static boolean
isomorphicQuads
(List<Quad> quads1, List<Quad> quads2, NodeIsomorphismMap isoMap) Are lists of quads isomorphic?static boolean
isomorphicTriples
(List<org.apache.jena.graph.Triple> triples1, List<org.apache.jena.graph.Triple> triples2, NodeIsomorphismMap isoMap) Are lists of triples isomorphic?static boolean
nodeIso
(org.apache.jena.graph.Node n1, org.apache.jena.graph.Node n2, NodeIsomorphismMap isoMap) Are two nodes isomorphic?static boolean
quadIso
(Quad t1, Quad t2, NodeIsomorphismMap labelMap) Are two quads isomorphic?static boolean
tripleIso
(org.apache.jena.graph.Triple t1, org.apache.jena.graph.Triple t2, NodeIsomorphismMap labelMap) Are two triples isomorphic?static boolean
triplePathIso
(TriplePath tp1, TriplePath tp2, NodeIsomorphismMap isoMap) Are two triple paths isomorphic?
-
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) Are lists of triples isomorphic? The mapping policyNodeIsomorphismMap
is mutated. -
isomorphicQuads
public static boolean isomorphicQuads(List<Quad> quads1, List<Quad> quads2, NodeIsomorphismMap isoMap) Are lists of quads isomorphic? The mapping policyNodeIsomorphismMap
is mutated. -
isomorphicNodes
public static boolean isomorphicNodes(List<org.apache.jena.graph.Node> nodes1, List<org.apache.jena.graph.Node> nodes2, NodeIsomorphismMap isoMap) Are lists of nodes isomorphic? The mapping policyNodeIsomorphismMap
is mutated. -
triplePathIso
Are two triple paths isomorphic? The mapping policyNodeIsomorphismMap
is mutated. -
tripleIso
public static boolean tripleIso(org.apache.jena.graph.Triple t1, org.apache.jena.graph.Triple t2, NodeIsomorphismMap labelMap) Are two triples isomorphic? The mapping policyNodeIsomorphismMap
is mutated. -
quadIso
Are two quads isomorphic? The mapping policyNodeIsomorphismMap
is mutated. -
nodeIso
public static boolean nodeIso(org.apache.jena.graph.Node n1, org.apache.jena.graph.Node n2, NodeIsomorphismMap isoMap) Are two nodes isomorphic? The mapping policyNodeIsomorphismMap
is mutated.
-