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 booleanisomorphicNodes(List<org.apache.jena.graph.Node> nodes1, List<org.apache.jena.graph.Node> nodes2, NodeIsomorphismMap isoMap) Are lists of nodes isomorphic?static booleanisomorphicQuads(List<Quad> quads1, List<Quad> quads2, NodeIsomorphismMap isoMap) Are lists of quads isomorphic?static booleanisomorphicTriples(List<org.apache.jena.graph.Triple> triples1, List<org.apache.jena.graph.Triple> triples2, NodeIsomorphismMap isoMap) Are lists of triples isomorphic?static booleannodeIso(org.apache.jena.graph.Node n1, org.apache.jena.graph.Node n2, NodeIsomorphismMap isoMap) Are two nodes isomorphic?static booleanquadIso(Quad t1, Quad t2, NodeIsomorphismMap labelMap) Are two quads isomorphic?static booleantripleIso(org.apache.jena.graph.Triple t1, org.apache.jena.graph.Triple t2, NodeIsomorphismMap labelMap) Are two triples isomorphic?static booleantriplePathIso(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 policyNodeIsomorphismMapis mutated. -
isomorphicQuads
public static boolean isomorphicQuads(List<Quad> quads1, List<Quad> quads2, NodeIsomorphismMap isoMap) Are lists of quads isomorphic? The mapping policyNodeIsomorphismMapis 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 policyNodeIsomorphismMapis mutated. -
triplePathIso
Are two triple paths isomorphic? The mapping policyNodeIsomorphismMapis 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 policyNodeIsomorphismMapis mutated. -
quadIso
Are two quads isomorphic? The mapping policyNodeIsomorphismMapis 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 policyNodeIsomorphismMapis mutated.
-