public abstract class Atom extends AtomBase
Atom implementation defining specialised functionalities.
| Modifier and Type | Field and Description |
|---|---|
protected Type |
type |
protected ConceptId |
typeId |
atomPattern, varName| Modifier | Constructor and Description |
|---|---|
protected |
Atom(Atom a) |
protected |
Atom(VarAdmin pattern) |
protected |
Atom(VarAdmin pattern,
Query par) |
| Modifier and Type | Method and Description |
|---|---|
Set<Rule> |
getApplicableRules() |
abstract Set<Predicate> |
getIdPredicates() |
abstract Set<Predicate> |
getPredicates() |
Map<RoleType,javafx.util.Pair<VarName,Type>> |
getRoleVarTypeMap() |
Type |
getType() |
Set<Atom> |
getTypeConstraints() |
ConceptId |
getTypeId() |
abstract Set<Predicate> |
getValuePredicates() |
VarName |
getValueVariable() |
Map<VarName,javafx.util.Pair<Type,RoleType>> |
getVarTypeRoleMap() |
void |
inferTypes()
infers types (type, role types) fo the atom if applicable/possible
|
boolean |
isAtom() |
boolean |
isBinary() |
boolean |
isRecursive() |
boolean |
isRelation() |
boolean |
isResource() |
protected abstract boolean |
isRuleApplicable(InferenceRule child) |
boolean |
isRuleResolvable() |
boolean |
isType() |
boolean |
requiresMaterialisation() |
javafx.util.Pair<Atom,Map<VarName,VarName>> |
rewrite(Atom parent,
Query q)
rewrites the atom to be compatible with parent atom
|
clone, containsVar, getCombinedPattern, getParentQuery, getPattern, getSelectedNames, getUnifiers, getVarName, getVarNames, isUserDefinedName, isValueUserDefinedName, resetNames, setParentQuery, toString, unifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequivalenceHashCode, isEquivalent, isPredicate, isSelectablepublic boolean isAtom()
public boolean isBinary()
public boolean isType()
public boolean isRelation()
public boolean isResource()
protected abstract boolean isRuleApplicable(InferenceRule child)
public boolean isRuleResolvable()
public boolean isRecursive()
public boolean requiresMaterialisation()
public Type getType()
public ConceptId getTypeId()
public VarName getValueVariable()
public abstract Set<Predicate> getPredicates()
public abstract Set<Predicate> getIdPredicates()
public abstract Set<Predicate> getValuePredicates()
public Set<Atom> getTypeConstraints()
public Map<VarName,javafx.util.Pair<Type,RoleType>> getVarTypeRoleMap()
public Map<RoleType,javafx.util.Pair<VarName,Type>> getRoleVarTypeMap()
public void inferTypes()
public javafx.util.Pair<Atom,Map<VarName,VarName>> rewrite(Atom parent, Query q)
parent - atom to be compatible withq - query the rewritten atom should belong toCopyright © 2017 Grakn Labs Ltd. All rights reserved.