public abstract class TypeAtom extends Binary
Atom implementation defining type atoms of the general form:
{isa|sub|plays|relates|has}($varName, $predicateVariable)
Type atoms correspond to the following respective graql properties:
IsaProperty,
SubProperty,
PlaysProperty
RelatesProperty
HasAttributeTypeProperty
| Modifier | Constructor and Description |
|---|---|
protected |
TypeAtom(TypeAtom a) |
protected |
TypeAtom(VarPattern pattern,
Var predicateVar,
IdPredicate p,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
int |
computePriority(Set<Var> subbedVars)
compute resolution priority based on provided substitution variables
|
boolean |
equals(Object obj) |
SchemaConcept |
getSchemaConcept() |
int |
hashCode() |
boolean |
isRuleApplicableViaAtom(Atom ruleAtom) |
boolean |
isSelectable() |
boolean |
isType() |
boolean |
requiresMaterialisation() |
abstract Set<TypeAtom> |
unify(Unifier u) |
alphaEquivalenceHashCode, checkValid, createCombinedPattern, getInnerPredicates, getPredicateVariable, getTypeId, getTypePredicate, getUnifier, getVarNames, isAlphaEquivalent, isStructurallyEquivalent, setParentQuery, structuralEquivalenceHashCodeaddType, atomOptions, getApplicableRules, getIdPredicate, getInnerPredicates, getMultiUnifier, getNeighbours, getNonSelectableConstraints, getPartialSubstitutions, getPotentialRules, getPredicate, getPredicates, getPredicates, getRoleExpansionVariables, getSpecificTypeConstraints, getTypeConstraints, getVarProperties, getVarPropertyClass, inferTypes, inferTypes, isAtom, isGround, isRecursive, isRuleResolvable, materialise, requiresRoleExpansion, rewriteToUserDefined, rewriteWithRelationVariable, rewriteWithTypeVariable, rewriteWithTypeVariable, toRelationshipAtom, validateAsRuleHeadcontainsVar, copy, getCombinedPattern, getParentQuery, getPattern, getVarName, isUserDefined, toString, txclone, finalize, getClass, notify, notifyAll, wait, wait, waitisCompatibleWith, isRelation, isResource, validateOntologicallyprotected TypeAtom(VarPattern pattern, Var predicateVar, @Nullable IdPredicate p, ReasonerQuery par)
protected TypeAtom(TypeAtom a)
public boolean isType()
public boolean isRuleApplicableViaAtom(Atom ruleAtom)
isRuleApplicableViaAtom in class Atompublic boolean isSelectable()
public boolean requiresMaterialisation()
requiresMaterialisation in class Atompublic int computePriority(Set<Var> subbedVars)
AtomcomputePriority in class AtomsubbedVars - variables having a substitution@Nullable public SchemaConcept getSchemaConcept()
getSchemaConcept in class BinaryCopyright © 2018 Grakn Labs Ltd. All rights reserved.