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
HasResourceTypeProperty
| Modifier | Constructor and Description |
|---|---|
protected |
TypeAtom(TypeAtom a) |
protected |
TypeAtom(VarPatternAdmin 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) |
equivalenceHashCode, getCombinedPattern, getInnerPredicates, getPredicateVariable, getTypeId, getTypePredicate, getUnifier, getVarNames, isEquivalent, setParentQueryaddType, atomOptions, baseResolutionPriority, getApplicableRules, getIdPredicate, getInnerPredicates, getMultiUnifier, getNeighbours, getNonSelectableConstraints, getPartialSubstitutions, getPredicate, getPredicates, getPredicates, getRoleExpansionVariables, getSpecificTypeConstraints, getTypeConstraints, getVarProperties, inferTypes, isAtom, isRecursive, isRuleResolvable, requiresRoleExpansion, rewriteToUserDefined, toRelationshipAtomcontainsVar, copy, getParentQuery, getPattern, getVarName, isUserDefined, toString, txclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAllowedToFormRuleHead, isPredicate, isRelation, isResource, validateOntologicallyprotected TypeAtom(VarPatternAdmin 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 © 2017 Grakn Labs Ltd. All rights reserved.