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
atomPattern, varName| Modifier | Constructor and Description |
|---|---|
protected |
TypeAtom(TypeAtom a) |
|
TypeAtom(VarPatternAdmin pattern,
IdPredicate p,
ReasonerQuery par) |
|
TypeAtom(VarPatternAdmin pattern,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
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() |
int |
resolutionPriority() |
protected void |
setValueVariable(Var var) |
String |
toString() |
equivalenceHashCode, getCombinedPattern, getPredicate, hasEquivalentPredicatesWith, setParentQuery, setPredicate, unifygetLinkedAtoms, getUnifier, getValueVariable, getVarNames, isBinary, isEquivalentgetApplicableRules, getIdPredicates, getMappedTypeConstraints, getNonSelectableConstraints, getPartialSubstitutions, getPermutationUnifiers, getPredicates, getRoleVarTypeMap, 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)
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)
setValueVariable in class BinaryBasepublic 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 resolutionPriority()
resolutionPriority in class AtomCopyright © 2017 Grakn Labs Ltd. All rights reserved.