public class TypeAtom extends Binary
Atom implementation defining type atoms of the general form: $varName {isa|sub|plays|relates|has|has-scope} $valueVariable).
These correspond to the following respective graql properties:
IsaProperty,
SubProperty,
PlaysProperty
RelatesProperty
HasResourceTypeProperty
HasScopeProperty
applicableRules, typeIdatomPattern| Modifier | Constructor and Description |
|---|---|
protected |
TypeAtom(TypeAtom a) |
|
TypeAtom(VarPatternAdmin pattern,
IdPredicate p,
ReasonerQuery par) |
|
TypeAtom(VarPatternAdmin pattern,
ReasonerQuery par) |
|
TypeAtom(Var var,
Var valueVar,
ConceptId typeId,
ReasonerQuery par) |
|
TypeAtom(Var var,
Var valueVar,
IdPredicate p,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
int |
computePriority(Set<Var> subbedVars)
compute resolution priority based on provided substitution variables
|
Atomic |
copy() |
boolean |
equals(Object obj) |
protected ConceptId |
extractTypeId() |
protected Var |
extractValueVariableName(VarPatternAdmin var) |
Type |
getType() |
int |
hashCode() |
boolean |
isAllowedToFormRuleHead() |
boolean |
isRuleApplicable(InferenceRule child) |
boolean |
isSelectable() |
boolean |
isType() |
boolean |
requiresMaterialisation() |
protected void |
setValueVariable(Var var) |
String |
toString() |
Set<TypeAtom> |
unify(Unifier u) |
equivalenceHashCode, getCombinedPattern, getPredicate, hasEquivalentPredicatesWith, setParentQuerygetUnifier, getValueVariable, getVarNames, isEquivalentbaseResolutionPriority, computePriority, getApplicableRules, getIdPredicates, getMappedTypeConstraints, getNeighbours, getNonSelectableConstraints, getPartialSubstitutions, getPermutationUnifiers, getPredicates, getTypeConstraints, getTypeId, getUnmappedIdPredicates, getUnmappedTypeConstraints, getValuePredicates, inferTypes, isAtom, isRecursive, isRelation, isResource, isRuleResolvable, rewriteToUserDefinedcontainsVar, getParentQuery, getPattern, getVarName, graph, isUserDefinedNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitisPredicatepublic TypeAtom(VarPatternAdmin pattern, ReasonerQuery par)
public TypeAtom(VarPatternAdmin pattern, IdPredicate p, ReasonerQuery par)
public TypeAtom(Var var, Var valueVar, ConceptId typeId, ReasonerQuery par)
public TypeAtom(Var var, Var valueVar, IdPredicate p, ReasonerQuery par)
protected TypeAtom(TypeAtom a)
public int hashCode()
hashCode in class BinaryBasepublic boolean equals(Object obj)
equals in class BinaryBasepublic String toString()
toString in class AtomicBaseprotected ConceptId extractTypeId()
extractTypeId in class Binaryprotected Var extractValueVariableName(VarPatternAdmin var)
extractValueVariableName in class BinaryBaseprotected void setValueVariable(Var var)
public Atomic copy()
copy in interface Atomiccopy in class AtomicBasepublic boolean isType()
public boolean isRuleApplicable(InferenceRule child)
isRuleApplicable in class Atompublic boolean isSelectable()
public boolean isAllowedToFormRuleHead()
isAllowedToFormRuleHead in class Atompublic boolean requiresMaterialisation()
requiresMaterialisation in class Atompublic int computePriority(Set<Var> subbedVars)
AtomcomputePriority in class AtomsubbedVars - variables having a substitutionCopyright © 2017 Grakn Labs Ltd. All rights reserved.