persistent class %iKnow.KB.Knowledgebase
extends %Persistent, %XML.Adaptor
property ConceptLabel
as Label;
property Hash
as %String;
property Name
as %String(XMLPROJECTION="ATTRIBUTE") [ Required ];
method AcronymCount()
as %Integer
method AddToHash(string As %String)
Adds a value to this Knowledgebase's hash. The ultimate hash value is dependent
on the sequence of values passed to this function.
classmethod ClearAll()
Clears all Knowledgebase data
method FilterCount()
as %Integer
method GetAcronym(key As %String)
as Acronym
classmethod GetByName(name As %String)
as Knowledgebase
Retrieves the KB with the given name, returning "" if not found.
method GetConceptLabel()
as Label
method GetFilter(key As %String)
as Filter
method GetHash()
as %String
Returns a hash based on the content of this Knowledgebase
method GetLabel(key As %String)
as Label
method GetLexrep(key As %String)
as Lexrep
method GetLexrepRaw(key As %String)
as %List
method GetPreprocessFilter(key As %String)
as PreprocessFilter
method GetPunctuationLabel()
as Label
method GetRelationLabel()
as Label
method GetRule(key As %String)
as Rule
method GetSentenceBeginLabel()
as Label
method GetSentenceEndLabel()
as Label
method GetUnknownLabel()
as Label
classmethod ImportFromCSV(name As %String, prefix As %String, obfuscate As %Boolean = 1)
as Knowledgebase
classmethod ImportFromXML(fileName As %String)
as Knowledgebase
classmethod ImportItemsFromXML(r As %XML.Reader, kb As Knowledgebase, collectionName As %String, className As %String, keyPropertyName As %String = "")
method LabelCount()
as %Integer
method LexrepCount()
as %Integer
classmethod LoadDir(dir As %String, forcemulticompile As %Boolean = 0, obfuscate As %Boolean = 1)
as %Status
classmethod LoadTableFromCSV(fileName As %String, className As %String, kb As Knowledgebase)
method NextAcronym(key As %String)
as %String
method NextFilter(key As %String)
as %String
method NextLabel(key As %String)
as %String
method NextLexrep(key As %String)
as %String
method NextPreprocessFilter(key As %String)
as %String
method NextRule(key As %String)
as %String
classmethod Obfuscate(string As %String, property As %String, id As %Integer)
as %String
method PreprocessFilterCount()
as %Integer
method RuleCount()
as %Integer
classmethod Unobfuscate(string As %String, property As %String, id As %Integer)
as %String
method WriteAsXML()
index (NameIndex on Name) [Unique];