Skip to main content

%iKnow.KB.Rule

SQL Table Name: %iKnow_KB.Rule

Property Inventory

Method Inventory

Properties

property Comment as %String (MAXLEN = 256, XMLPROJECTION = "ATTRIBUTE");
Property methods: CommentDisplayToLogical(), CommentGet(), CommentGetStored(), CommentIsValid(), CommentLogicalToDisplay(), CommentLogicalToOdbc(), CommentNormalize(), CommentSet()
property IdCSV as %Integer (XMLPROJECTION = "ATTRIBUTE") [ InitialExpression = 0 , Required ];
Property methods: IdCSVDisplayToLogical(), IdCSVGet(), IdCSVGetStored(), IdCSVIsValid(), IdCSVLogicalToDisplay(), IdCSVNormalize(), IdCSVSet(), IdCSVXSDToLogical()
property InputPattern as %String (MAXLEN = 512, XMLPROJECTION = "ATTRIBUTE") [ Required ];
Property methods: InputPatternDisplayToLogical(), InputPatternGet(), InputPatternGetStored(), InputPatternIsValid(), InputPatternLogicalToDisplay(), InputPatternLogicalToOdbc(), InputPatternNormalize()
property Knowledgebase as Knowledgebase [ Required ];
Property methods: KnowledgebaseGet(), KnowledgebaseGetObject(), KnowledgebaseGetObjectId(), KnowledgebaseGetStored(), KnowledgebaseGetSwizzled(), KnowledgebaseIsValid(), KnowledgebaseNewObject(), KnowledgebaseSet(), KnowledgebaseSetObject(), KnowledgebaseSetObjectId(), KnowledgebaseUnSwizzle()
property OutputPattern as %String (MAXLEN = 512, XMLPROJECTION = "ATTRIBUTE") [ Required ];
Property methods: OutputPatternDisplayToLogical(), OutputPatternGet(), OutputPatternGetStored(), OutputPatternIsValid(), OutputPatternLogicalToDisplay(), OutputPatternLogicalToOdbc(), OutputPatternNormalize()
property Phase as %String (XMLPROJECTION = "ATTRIBUTE");
Property methods: PhaseDisplayToLogical(), PhaseGet(), PhaseGetStored(), PhaseIsValid(), PhaseLogicalToDisplay(), PhaseLogicalToOdbc(), PhaseNormalize(), PhaseSet()
property Precedence as %Integer (XMLPROJECTION = "ATTRIBUTE") [ Required ];
Property methods: PrecedenceDisplayToLogical(), PrecedenceGet(), PrecedenceGetStored(), PrecedenceIsValid(), PrecedenceLogicalToDisplay(), PrecedenceNormalize(), PrecedenceSet(), PrecedenceXSDToLogical()

Methods

classmethod AddLabelToLexrep(kb As Knowledgebase, token As %String, label As %String)
classmethod DeleteByKBName(kbName As %String)
method GetInputPattern() as %String
method GetOutputPattern() as %String
method GetPrecedence() as %Integer
classmethod HasPrefix(labelString As %String) as %Boolean
True if rule label string has a prefix character
classmethod ImportFromStream(stream As %CharacterStream, kb As Knowledgebase)
method InputPatternGet() as %String
method InputPatternSet(pattern As %String) as %Status
classmethod LabelStringToName(labelString As %String)
Removes special rule control characters from a label string
method OutputPatternGet() as %String
method OutputPatternSet(pattern As %String) as %Status
classmethod ReadAsList(id As %Integer) as %List
classmethod TransformRulePattern(pattern As %String, phase As %Integer, kb As Knowledgebase, ByRef newLabels, ByRef newLabelsIndex, ByRef SBeginPhases As %List, ByRef SEndPhases As %List, ByRef SCertPhases As %List, ByRef SGen1Phases As %List, ByRef SGen1BeginPhases As %List, ByRef SGen1EndPhases As %List, ByRef SGen2Phases As %List, ByRef SGen2BeginPhases As %List, ByRef SGen2EndPhases As %List, ByRef SGen3Phases As %List, ByRef SGen3BeginPhases As %List, ByRef SGen3EndPhases As %List, ByRef QBeginPhases As %List, ByRef QEndPhases As %List) as %String
Transforms a rule pattern, converting literals like "be" into actual label/lexrep pairs.

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (KnowledgebaseIndex on Knowledgebase,Precedence) [Unique];
Index methods: KnowledgebaseIndexCheck(), KnowledgebaseIndexCheckUnique(), KnowledgebaseIndexDelete(), KnowledgebaseIndexExists(), KnowledgebaseIndexOpen(), KnowledgebaseIndexSQLCheckUnique(), KnowledgebaseIndexSQLExists(), KnowledgebaseIndexSQLFindPKeyByConstraint(), KnowledgebaseIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Properties

Inherited Methods

Storage

Storage Model: Storage (%iKnow.KB.Rule)

^%iKnow("KB","RuleD")(ID)
=
%%CLASSNAME
InputPattern
OutputPattern
Precedence
Phase
Knowledgebase
GUID
IdCSV
Comment
FeedbackOpens in a new tab