public class Resource extends MultiPredicateBinary
Atom implementation defining a resource atom.
atomPattern, varName| Constructor and Description |
|---|
Resource(VarAdmin pattern,
ReasonerQuery par) |
Resource(VarAdmin pattern,
Set<Predicate> p,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
Atomic |
copy() |
protected ConceptId |
extractTypeId(VarAdmin var) |
protected VarName |
extractValueVariableName(VarAdmin var) |
Set<TypeAtom> |
getMappedTypeConstraints() |
Set<ValuePredicate> |
getValuePredicates() |
boolean |
isResource() |
protected boolean |
isRuleApplicable(InferenceRule child) |
boolean |
isSelectable() |
boolean |
requiresMaterialisation() |
protected void |
setValueVariable(VarName var) |
equivalenceHashCode, getCombinedPattern, getMultiPredicate, predicatesEquivalent, setParentQuery, unifyequals, getLinkedAtoms, getUnifiers, getValueVariable, getVarNames, hashCode, isBinary, isEquivalentgetApplicableRules, getIdPredicates, getPermutationUnifiers, getPredicates, getRoleVarTypeMap, getType, getTypeConstraints, getTypeId, getUnmappedIdPredicates, getUnmappedTypeConstraints, inferTypes, isAtom, isRecursive, isRelation, isRuleResolvable, isType, rewriteToUserDefined, rewriteToUserDefinedWithUnifierscontainsVar, getParentQuery, getPattern, getVarName, graph, isUserDefinedName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisPredicatepublic Resource(VarAdmin pattern, ReasonerQuery par)
public Resource(VarAdmin pattern, Set<Predicate> p, ReasonerQuery par)
protected boolean isRuleApplicable(InferenceRule child)
isRuleApplicable in class BinaryBaseprotected ConceptId extractTypeId(VarAdmin var)
extractTypeId in class MultiPredicateBinaryprotected VarName extractValueVariableName(VarAdmin var)
extractValueVariableName in class BinaryBaseprotected void setValueVariable(VarName var)
setValueVariable in class BinaryBasepublic Atomic copy()
public boolean isResource()
isResource in class Atompublic boolean isSelectable()
public boolean requiresMaterialisation()
requiresMaterialisation in class BinaryBasepublic Set<ValuePredicate> getValuePredicates()
getValuePredicates in class Atompublic Set<TypeAtom> getMappedTypeConstraints()
getMappedTypeConstraints in class AtomCopyright © 2017 Grakn Labs Ltd. All rights reserved.