Scale Intelligence■ Docs
Docs / The model / PredicateNode

PredicateNode.

One node of a predicate: a group, a condition or an operator node

Figure 1PredicateNodespecified
PREDICATENODEvalue at none scopeformenum:group|condition|operator nodefor a groupopenum:all|any|noneoptionalfor a groupchildren[PredicateNode]optionalfor a condition: the field or the subjectsubjecttextoptionalrelationshipOperatoroptionalvaluejsonoptionalfor a leaf that compares by nearness, a match by name or a semantic leaf by meaning: its floor, in place of a breadththresholdshareoptionalfor a leaf that compares by nearness: how near, in place of a floor; resolved at compile to the leaf's channel bar of the bars of nearness (06 §2.1)breadthenum:exact|similar|related|broadoptionala semantic leaf names a concept, never a phraseconceptidoptionalfor an operator node: the connection it walks, by rolewalksKindOfConnectionoptionalroletextoptionalinnerPredicateNodeoptionalOPERATORthrough relationshipKINDOFCONNECTIONthrough walks
PredicateNode is a value at none scope. The drawing shows its fields and the objects that they point at.
kind
value
scope
none
key
none
store
none
family
rules_engine

Fields#

fieldtyperequirednote
formone of group | condition | operator nodeyes
opone of all | any | nonenofor a group
childrenPredicateNodenofor a group
subjecttextnofor a condition: the field or the subject
relationshipOperatorno
valuejsonno
thresholdsharenofor a leaf that compares by nearness, a match by name or a semantic leaf by meaning: its floor, in place of a breadth
breadthone of exact | similar | related | broadnofor a leaf that compares by nearness: how near, in place of a floor; resolved at compile to the leaf’s channel bar of the bars of nearness (06 §2.1)
conceptidnoa semantic leaf names a concept, never a phrase
walksKindOfConnectionnofor an operator node: the connection it walks, by role
roletextno
innerPredicateNodeno

Routes that use it#

No route takes or returns PredicateNode directly. The record holds it, and the objects that point at it reach it.