public abstract class ReasonerQueryEquivalence extends com.google.common.base.Equivalence<ReasonerQuery>
Static class defining different equivalence comparisons for reasoner queries (ReasonerQuery):
- Equality - two queries are equal if they contain the same Atomics of which all corresponding pairs are equal.
- Alpha equivalence - two queries are alpha-equivalent if they are equal up to the choice of free variables.
- Structural equivalence - two queries are structurally equivalent if they are equal up to the choice of free variables and partial substitutions (id predicates).
| Modifier and Type | Field and Description |
|---|---|
static ReasonerQueryEquivalence |
AlphaEquivalence |
static ReasonerQueryEquivalence |
Equality |
static ReasonerQueryEquivalence |
StructuralEquivalence |
| Constructor and Description |
|---|
ReasonerQueryEquivalence() |
| Modifier and Type | Method and Description |
|---|---|
abstract AtomicEquivalence |
atomicEquivalence() |
String |
name() |
doEquivalent, doHash, equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, test, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, negate, orpublic static final ReasonerQueryEquivalence Equality
public static final ReasonerQueryEquivalence AlphaEquivalence
public static final ReasonerQueryEquivalence StructuralEquivalence
public abstract AtomicEquivalence atomicEquivalence()
public String name()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.