class %iKnow.Matching.DictionaryQAPI
extends %iKnow.Queries.AbstractQAPI
This is an automatically generated class, offering a functionally equivalent set of methods and queries as %iKnow.Matching.DictionaryAPI, exposed as SqlProc methods.
See the classdocs for %iKnow.Matching.DictionaryAPI for more information.
classmethod CreateDictionary(domainId As %Integer, name As %String(MAXLEN=32767), description As %String(MAXLEN=32767)="", defaultLanguage As %String(MAXLEN=32767)="en", defaultProfileId As %Integer = "", Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Creates a Dictionary and returns its ID.
classmethod CreateDictionaryFormat(domainId As %Integer, formatClass As %String(MAXLEN=32767), formatParams As %String = "", Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Creates a Dictionary Format instance of the supplied formatClass and returns its ID.
classmethod CreateDictionaryItem(domainId As %Integer, dictId As %Integer, name As %String(MAXLEN=32767), URI As %String(MAXLEN=32767), defaultLanguage As %String(MAXLEN=32767)="en", Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Creates a Dictionary Item and returns its ID.
classmethod CreateDictionaryItemAndTerm(domainId As %Integer, dictId As %Integer, name As %String(MAXLEN=32767), URI As %String(MAXLEN=32767), language As %String(MAXLEN=32767)="en", Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Shorthand method for creating a Dictionary Item and Term using the Items name. Returns the Items ID.
classmethod CreateDictionaryTerm(domainId As %Integer, dictItemId As %Integer, string As %String(MAXLEN=32767), language As %String(MAXLEN=32767)="en", Output scText As %String = "", isProcessed As %Boolean = 0)
as %Library.Integer
[ SQLProc ]
Creates a Dictionary Term and returns its ID.
If isProcessed is 1 (default 0), the term will be marked as processed upon creation
and no Dictionary Elements will be created. This parameter is for internal use only.
classmethod CreateDictionaryTermFormat(domainId As %Integer, dictItemId As %Integer, formatClass As %String(MAXLEN=32767), formatParams As %String = "", Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Creates a Dictionary Term composed of a single Dictionary Format and returns the Terms ID.
classmethod DropAllDictionaryData(domainId As %Integer)
as %Boolean
[ SQLProc ]
classmethod DropDictionary(domainId As %Integer, dictId As %Integer)
as %Boolean
[ SQLProc ]
Deletes a Dictionary and all related items, terms, elements and matches.
classmethod DropDictionaryItem(domainId As %Integer, dictItemId As %Integer)
as %Boolean
[ SQLProc ]
Deletes a Dictionary Item with all related terms, elements and matches.
classmethod DropDictionaryTerm(domainId As %Integer, dictTermId As %String(MAXLEN=32767))
as %Boolean
[ SQLProc ]
Drops a single Dictionary Term and its matching results
classmethod GetDictionaryId(domainId As %Integer, name As %String(MAXLEN=32767), Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Looks up the Dictionary ID corresponding to the supplied Dictionary name.
classmethod GetDictionaryItemIdByURI(domainId As %Integer, URI As %String(MAXLEN=32767), Output scText As %String = "")
as %Library.Integer
[ SQLProc ]
Looks up the Dictionary Item ID corresponding to the supplied Dictionary Item URI.
query GetDictionaries(domainId As %Integer, page As %Integer = 1, pageSize As %Integer = 10)
Selects
dictId As %Integer, name As %String(MAXLEN=32767), description As %String(MAXLEN=32767), defaultLanguage As %String(MAXLEN=32767)
Returns a list of all Dictionaries in this domain.
query GetDictionaryItems(domainId As %Integer, dictId As %Integer, page As %Integer = 1, pageSize As %Integer = 10)
Selects
dictItemId As %Integer, name As %String(MAXLEN=32767), URI As %String(MAXLEN=32767), defaultLanguage As %String(MAXLEN=32767)
Returns a list of all Dictionary Items for the given Dictionary ID.
query GetDictionaryItemsAndTerms(domainId As %Integer, dictId As %Integer, page As %Integer = 1, pageSize As %Integer = 10)
Selects
dictItemId As %Integer, name As %String(MAXLEN=32767), URI As %String(MAXLEN=32767), dictTermId As %Integer, string As %String(MAXLEN=32767), language As %String(MAXLEN=32767), isProcessed As %Boolean
Returns a list of all Dictionary Items and their Terms for the given Dictionary ID.
query GetDictionaryTermsByItem(domainId As %Integer, dictItemId As %Integer, page As %Integer = 1, pageSize As %Integer = 10)
Selects
dictTermId As %Integer, string As %String(MAXLEN=32767), language As %String(MAXLEN=32767), isProcessed As %Boolean
Returns a list of all the Dictionary Terms for the given Dictionary Item ID.