%iKnow.Queries.EntityQAPI
Class %iKnow.Queries.EntityQAPI Extends %iKnow.Queries.AbstractQAPI [ Deprecated, System = 4 ]
This is an automatically generated class, offering a functionally equivalent set of methods and queries as %iKnow.Queries.EntityAPI, exposed as SqlProc methods.
See the classdocs for %iKnow.Queries.EntityAPI for more information.
Methods
GetByFilterExecute
ClassMethod GetByFilterExecute(ByRef qHandle As %Binary, domainid As %Integer, filter As %String(MAXLEN=32767) = "", filtermode As %Integer = {$$$FILTERONLY}, enttype As %Integer = {$$$ENTTYPECONCEPT}, skipListIds As %String(MAXLEN=32767) = "", pUseStems As %Boolean = 0) As %Status [ Internal ]
Returns all entities appearing in any source satisfying the supplied filter objects criteria, with their frequencies and spread recalculated to comply with the filter depending on the value of filtermode, but the result is NOT re-sorted, regardless of the value for filtermode (use GetTop if you want sorted results).
Depending on the value of enttype parameter, this method will only return concepts ($$$ENTTYPECONCEPT, default), relations ($$$ENTTYPERELATION) or both ($$$ENTTYPEANY).
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
GetByFilterFetch
ClassMethod GetByFilterFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetByFilterExecute ]
GetByFilterClose
ClassMethod GetByFilterClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetByFilterExecute ]
GetBySourceExecute
ClassMethod GetBySourceExecute(ByRef qHandle As %Binary, domainid As %Integer, sourceidlist As %String(MAXLEN=32767), page As %Integer = 1, pagesize As %Integer = 10, enttype As %Integer = {$$$ENTTYPEANY}, skipListIds As %String(MAXLEN=32767) = "", pUseStems As %Boolean = 0) As %Status [ Internal ]
Returns the unique entities appearing in the sources specified.
To get the unique entities of a virtual source, only a single virtual source can be supplied using its negative ID value.
GetBySourceFetch
ClassMethod GetBySourceFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetBySourceExecute ]
GetBySourceClose
ClassMethod GetBySourceClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetBySourceExecute ]
GetByStemExecute
ClassMethod GetByStemExecute(ByRef qHandle As %Binary, pDomainId As %Integer, pStemUniId As %Integer, vSrcId As %Integer = 0, pLanguage As %String(MAXLEN=32767) = "") As %Status [ Internal ]
Retrieves all entities corresponding to a certain stem identified by pStemUniId.
GetByStemFetch
ClassMethod GetByStemFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetByStemExecute ]
GetByStemClose
ClassMethod GetByStemClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetByStemExecute ]
GetCountByDomain
ClassMethod GetCountByDomain(domainid As %Integer, filter As %String(MAXLEN=32767) = "", Output scText As %String = "", skipListIds As %String(MAXLEN=32767) = "", includeZeroFrequency As %Boolean = 0, pUseStems As %Boolean = 0) As %Library.Integer [ SqlProc ]
Returns the total number of distinct entities for this domain, optionally filtered to a set of sources satisfying the %iKnow.Filters.Filter object supplied through filter. Depending on the value of includeZeroFrequency, entities not appearing in any source (but registered in the domain for other purposes) are included or excluded from the result.
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
GetCountBySource
ClassMethod GetCountBySource(domainid As %Integer, sourceidlist As %String(MAXLEN=32767), setop As %Integer = {$$$UNION}, Output scText As %String = "", skipListIds As %String(MAXLEN=32767) = "", enttype As %Integer = {$$$ENTTYPEANY}, pUseStems As %Boolean = 0) As %Library.Integer [ SqlProc ]
Returns the total number of distinct entities for a given list of sources. The count returned either represents the entities appearing in either (with setop $$$UNION) or all (with setop $$$INTERSECT) of the supplied sources. Using enttype, the returned count is filtered to just entities ($$$ENTTYPECONCEPT), relations ($$$ENTTYPERELATION). The default is unfiltered ($$$ENTTYPEANY).
To get the unique entities of a virtual source, only a single virtual source can be supplied using its negative ID value (otherwise, -1 is returned).
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
GetFrequency
ClassMethod GetFrequency(domainId As %Integer, entUniId As %Integer, enttype As %Integer = {$$$ENTTYPEANY}, vSrcId As %Integer = 0, filter As %String(MAXLEN=32767) = "", Output scText As %String = "") As %Library.Integer [ SqlProc ]
Returns the frequency of the entity corresponding to the supplied entUniId, occurring in a concept role (if enttype = $$$ENTTYPECONCEPT), a relationship role (if enttype = $$$ENTTYPERELATION) or both (enttype = $$$ENTTYPEANY).
When specifying a Virtual Source ID, the frequency within the virtual source will be returned.
GetId
ClassMethod GetId(domainid As %Integer, entityvalue As %String(MAXLEN=32767), vSrcId As %Integer = 0) As %Library.Integer [ SqlProc ]
Returns the entity ID corresponding to the specified entity value, if any.
When specifying a Virtual Source ID, it will treat the entity as a virtual one, in the context of that vSrcId.
GetLiteral
ClassMethod GetLiteral(pDomainId As %Integer, pPartId As %Integer, vSrcId As %Integer = 0) As %Library.String [ SqlProc ]
Returns the literal value for a particular Part ID, as it occurred in the original text.
GetNewBySourceExecute
ClassMethod GetNewBySourceExecute(ByRef qHandle As %Binary, domainid As %Integer, sourceidlist As %String(MAXLEN=32767), page As %Integer = 1, pagesize As %Integer = 10, filter As %String(MAXLEN=32767) = "", entType As %Integer = {$$$ENTTYPECONCEPT}, algorithm As %String(MAXLEN=32767) = {$$$NEWENTSIMPLE}, algorithmParams As %String(MAXLEN=32767) = "", skipListIds As %String(MAXLEN=32767) = "", pUseStems As %Boolean = 0) As %Status [ Internal ]
Retrieves the significant entities in a list of sources supplied through sourceidlist, as compared to the other sources in the domain (optionally filtered through a %iKnow.Filters.Filter object specified through filter).
The following algorithm values are currently available:
- $$$NEWENTSIMPLE - takes no parameters
To get the significant entities of a virtual source compared to the non-virtual ones in the domain, only a single virtual source can be supplied using its negative ID value.
Through the enttype parameter, the method can be instructed to return either concepts ($$$ENTTYPECONCEPT) or relations ($$$ENTTYPERELATION).
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
GetNewBySourceFetch
ClassMethod GetNewBySourceFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetNewBySourceExecute ]
GetNewBySourceClose
ClassMethod GetNewBySourceClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetNewBySourceExecute ]
GetOccurrenceAttributesExecute
ClassMethod GetOccurrenceAttributesExecute(ByRef qHandle As %Binary, pDomainId As %Integer, pPartId As %Integer, vSrcId As %Integer = 0) As %Status [ Internal ]
Returns all attributes for a given part. Any named attribute properties are also included through sub-nodes (not available through SQL or SOAP):
pResult(rowNumber, propertyName) = propertyValue
The returned wordPositions only extend to the last attributed word position (there might be more words within the entity).
GetOccurrenceAttributesFetch
ClassMethod GetOccurrenceAttributesFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetOccurrenceAttributesExecute ]
GetOccurrenceAttributesClose
ClassMethod GetOccurrenceAttributesClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetOccurrenceAttributesExecute ]
GetOccurrenceCountByDomain
ClassMethod GetOccurrenceCountByDomain(pDomainId As %Integer, pFilter As %String(MAXLEN=32767) = "", pEntType As %Integer = {$$$ENTTYPEANY}, Output scText As %String = "") As %Library.Integer [ SqlProc ]
Returns the total number of entity occurrences in a domain.
GetOccurrenceCountBySource
ClassMethod GetOccurrenceCountBySource(domainid As %Integer, sourceidlist As %String(MAXLEN=32767), Output scText As %String = "", enttype As %Integer = {$$$ENTTYPEANY}) As %Library.Integer [ SqlProc ]
Returns the total number of entity occurrences for the given list of sources. Use negative source IDs to refer to virtual sources.
GetOccurrencesByIdExecute
ClassMethod GetOccurrencesByIdExecute(ByRef qHandle As %Binary, pDomainId As %Integer, pEntUniIds As %String(MAXLEN=32767), pPage As %Integer = 1, pPageSize As %Integer = 10, pFilter As %String(MAXLEN=32767) = "", pAttributeId As %Integer = {$$$IKATTNEGATION}, vSrcId As %Integer = 0, pIncludeActualForms As %Boolean = 0) As %Status [ Internal ]
Returns all occurrences for any of the given unique entities in pEntUniIds, including whether the attribute pAttributeId is applicable to this occurrence.
If this domain is configured for stemming using $$$IKPSTEMMING, any actual entities corresponding to pEntUniIds elements will be returned.
GetOccurrencesByIdFetch
ClassMethod GetOccurrencesByIdFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetOccurrencesByIdExecute ]
GetOccurrencesByIdClose
ClassMethod GetOccurrencesByIdClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetOccurrencesByIdExecute ]
GetRelatedExecute
ClassMethod GetRelatedExecute(ByRef qHandle As %Binary, domainid As %Integer, entitylist As %String(MAXLEN=32767), page As %Integer = 1, pagesize As %Integer = 10, filter As %String(MAXLEN=32767) = "", filtermode As %Integer = {$$$FILTERONLY}, positionstomatch As %Integer = {$$$USEPOSHT}, aggregationtype As %Integer = {$$$AGGSUM}, setop As %Integer = {$$$UNION}, sorttype As %Integer = {$$$SORTBYDOMAINDEFAULT}, skipListIds As %String(MAXLEN=32767) = "") As %Status [ Internal ]
This method will return all entities occurring in a direct relationship with at least on (if setop = $$$UNION) or all (if setop = $$$INTERSECT) of the entities in the supplied entitylist, anywhere within the supplied domain.
The scope of this query can be limited through supplying a %iKnow.Filters.Filter object for the filter parameter to restrict the result to those CRCs occurring in any source satisfying the filter criteria. When using a filter, the filtermode parameter will control whether or not the frequency and spread of returned records should be recalculated and whether results should be resorted along these recalculated numbers.
Through the positionstomatch parameter, the user can specify whether the entities returned should be occurring on the Head side ($$$USEPOSH), the Tail side ($$$USEPOST) or either ($$$USEPOSHT, default) side of the relationship.
The aggregationtype parameter lets you choose how to aggregate the frequency and spread of results related to multiple entries in the input entitylist.
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
Note: this method only returns entities that appear in direct relationships with the seed entity. For the broader context of entities, including indirect relationships (still within a single path), please refer to %iKnow.Semantics.ProximityAPI
GetRelatedFetch
ClassMethod GetRelatedFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetRelatedExecute ]
GetRelatedClose
ClassMethod GetRelatedClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetRelatedExecute ]
GetRelatedByIdExecute
ClassMethod GetRelatedByIdExecute(ByRef qHandle As %Binary, domainid As %Integer, entityidlist As %String(MAXLEN=32767), page As %Integer = 1, pagesize As %Integer = 10, filter As %String(MAXLEN=32767) = "", filtermode As %Integer = {$$$FILTERONLY}, positionstomatch As %Integer = {$$$USEPOSHT}, aggregationtype As %Integer = {$$$AGGSUM}, setop As %Integer = {$$$UNION}, sorttype As %Integer = {$$$SORTBYDOMAINDEFAULT}, skipListIds As %String(MAXLEN=32767) = "") As %Status [ Internal ]
Returns the entities directly related to a supplied list of entity IDs.
See GetRelated for a description of the parameters.
GetRelatedByIdFetch
ClassMethod GetRelatedByIdFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetRelatedByIdExecute ]
GetRelatedByIdClose
ClassMethod GetRelatedByIdClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetRelatedByIdExecute ]
GetRelatedCount
ClassMethod GetRelatedCount(domainid As %Integer, entitylist As %String(MAXLEN=32767), filter As %String(MAXLEN=32767) = "", positionstomatch As %Integer = {$$$USEPOSHT}, setop As %Integer = {$$$UNION}, Output scText As %String = "", pIncludeActualForms As %Boolean = 0) As %Library.Integer [ SqlProc ]
Returns the number of related entities for a given list of entities.
See GetRelated for a description of the parameters.
GetRelatedCountById
ClassMethod GetRelatedCountById(domainid As %Integer, entityidlist As %String(MAXLEN=32767), filter As %String(MAXLEN=32767) = "", positionstomatch As %Integer = {$$$USEPOSHT}, setop As %Integer = {$$$UNION}, Output scText As %String = "", pIncludeActualForms As %Boolean = 0) As %Library.Integer [ SqlProc ]
Returns the number of related entities for a given list of entity ids.
See GetRelated for a description of the parameters.
GetSimilarExecute
ClassMethod GetSimilarExecute(ByRef qHandle As %Binary, domainid As %Integer, part As %String(MAXLEN=32767), page As %Integer = 1, pagesize As %Integer = 10, filter As %String(MAXLEN=32767) = "", filtermode As %Integer = {$$$FILTERONLY}, mode As %Integer = {$$$USEDOMAINDEFAULT}, skipListIds As %String(MAXLEN=32767) = "", pEntRole As %Integer = {$$$ENTTYPEANY}, pUseStems As %Boolean = 0) As %Status [ Internal ]
This method will return all entities in the specified domain that are "similar" to the supplied part string. Similarity is defined using the mode parameter. The default setting ($$$USEPARTS), will retrieve all clusters containing at least one word starting with the supplied string, whereas $$$USENGRAMS will search for any character sequence within the whole entity. With mode = $$$USEWORDS, the behavior is the same as $$$USEPARTS but the supplied part needs to occur as a whole word in the retrieved clusters.
The scope of this query can be limited through supplying a %iKnow.Filters.Filter object for the filter parameter to restrict the result to those CRCs occurring in any source satisfying the filter criteria. When using a filter, the filtermode parameter will control whether or not the frequency and spread of returned records should be recalculated and whether results should be resorted along these recalculated numbers.
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
GetSimilarFetch
ClassMethod GetSimilarFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetSimilarExecute ]
GetSimilarClose
ClassMethod GetSimilarClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetSimilarExecute ]
GetSimilarCountsExecute
ClassMethod GetSimilarCountsExecute(ByRef qHandle As %Binary, domainid As %Integer, part As %String(MAXLEN=32767), filter As %String(MAXLEN=32767) = "", mode As %Integer = {$$$USEDOMAINDEFAULT}, skipListIds As %String(MAXLEN=32767) = "", Output scText As %String = "", entType As %Integer = {$$$ENTTYPEANY}, pUseStems As %Boolean = 0) As %Status [ Internal ]
This method returns aggregated details on the entities similar to a supplied text fragment part. The returned list contains the total number of distinct entities similar to part appearing in sources satisfying the supplied filter (if defined), their total aggregated frequency (with respect to filter, if defined) and the total number of sources containing at least one of these "similar" entities (again, respecting filter, if defined).
See also GetSimilar for a description of the other parameters.
Setting the entType parameter to $$$ENTTYPECONCEPT or $$$ENTTYPERELATION will restrict the result to only include entity occurrences of the specified type in the returned number of distinct entities and aggregated frequency. If an entity occurs as both a concept and a relationship (typically in <1% of cases), it contributes to the aggregated spread regardless of entType.
GetSimilarCountsFetch
ClassMethod GetSimilarCountsFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetSimilarCountsExecute ]
GetSimilarCountsClose
ClassMethod GetSimilarCountsClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetSimilarCountsExecute ]
GetSpread
ClassMethod GetSpread(domainId As %Integer, entUniId As %Integer, enttype As %Integer = {$$$ENTTYPEANY}, filter As %String(MAXLEN=32767) = "", Output scText As %String = "") As %Library.Integer [ SqlProc ]
Returns the spread of the entity corresponding to the supplied entUniId, occurring in a concept role (if enttype = $$$ENTTYPECONCEPT), a relationship role (if enttype = $$$ENTTYPERELATION) or both (enttype = $$$ENTTYPEANY).
GetStem
ClassMethod GetStem(pDomainId As %Integer = "", pString As %String(MAXLEN=32767), pLanguage As %String(MAXLEN=32767) = "", Output scText As %String = "") As %Library.String [ SqlProc ]
Returns the stemmed form of the supplied string pString. If pDomainId is non-null, any domain-level configuration settings will be used for the stemming operation.
GetStemFrequency
ClassMethod GetStemFrequency(pDomainId As %Integer, pStemUniId As %Integer, pEntType As %Integer = {$$$ENTTYPEANY}, vSrcId As %Integer = 0, pFilter As %String(MAXLEN=32767) = "", Output scText As %String = "") As %Library.Integer [ SqlProc ]
Returns the frequency of the stem corresponding to the supplied pStemUniId, occurring in a concept role (if pEntType = $$$ENTTYPECONCEPT), a relationship role (if pEntType = $$$ENTTYPERELATION) or both (pEntType = $$$ENTTYPEANY).
When specifying a Virtual Source ID, the frequency within the virtual source will be returned.
GetStemId
ClassMethod GetStemId(pDomainId As %Integer, pStemValue As %String(MAXLEN=32767), vSrcId As %Integer = 0) As %Library.Integer [ SqlProc ]
Returns the stem ID corresponding to the specified stem value, if any.
When specifying a Virtual Source ID, it will treat the stem as a virtual one, in the context of that vSrcId.
GetStemRepresentationForm
ClassMethod GetStemRepresentationForm(pDomainId As %Integer, pStemUniId As %Integer, pLanguage As %String(MAXLEN=32767) = "en", vSrcId As %Integer = 0, Output scText As %String = "") As %Library.String [ SqlProc ]
Returns the representation form for the given stem and language
GetStemSpread
ClassMethod GetStemSpread(pDomainId As %Integer, pStemUniId As %Integer, pEntType As %Integer = {$$$ENTTYPEANY}, pFilter As %String(MAXLEN=32767) = "", Output scText As %String = "") As %Library.Integer [ SqlProc ]
Returns the spread of the stem corresponding to the supplied pStemUniId, occurring in a concept role (if pEntType = $$$ENTTYPECONCEPT), a relationship role (if pEntType = $$$ENTTYPERELATION) or both (pEntType = $$$ENTTYPEANY).
GetStemValue
ClassMethod GetStemValue(pDomainId As %Integer, pStemUniId As %Integer, vSrcId As %Integer = 0, Output scText As %String = "") As %Library.String [ SqlProc ]
Returns the string value of the stem identified by pStemUniId
GetTopExecute
ClassMethod GetTopExecute(ByRef qHandle As %Binary, domainid As %Integer, page As %Integer = 1, pagesize As %Integer = 10, filter As %String(MAXLEN=32767) = "", filtermode As %Integer = {$$$FILTERONLY}, sorttype As %Integer = {$$$SORTBYDOMAINDEFAULT}, enttype As %Integer = {$$$ENTTYPECONCEPT}, vSrcId As %Integer = 0, skipListIds As %String(MAXLEN=32767) = "", pUseStems As %Boolean = 0) As %Status [ Internal ]
This method returns the most frequently occurring entities in the specified domain.
The scope of this query can be limited through supplying a %iKnow.Filters.Filter object for the filter parameter to restrict the result to those CRCs occurring in any source satisfying the filter criteria. When using a filter, the filtermode parameter will control whether or not the frequency and spread of returned records should be recalculated and whether results should be resorted along these recalculated numbers.
Through the enttype parameter, the method can be instructed to return either concepts ($$$ENTTYPECONCEPT) or relations ($$$ENTTYPERELATION). When looking for top concepts, those shorter than 3 characters are skipped.
Returned values are either sorted by descending frequency (with sorttype $$$SORTBYFREQUENCY), spread (with sorttype $$$SORTBYSPREAD) or the domain default (with sorttype $$$SORTBYDOMAINDEFAULT).
If a Virtual Source ID is provided, only the entities in that virtual source will be considered, filters are ignored and the sort type will always be $$$SORTBYFREQUENCY.
Through the skipListIds parameter, a user can supply one or more lists of (to the user) insignificant terms that should be excluded from the result.
GetTopFetch
ClassMethod GetTopFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetTopExecute ]
GetTopClose
ClassMethod GetTopClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetTopExecute ]
GetTopBM25Execute
ClassMethod GetTopBM25Execute(ByRef qHandle As %Binary, pDomainId As %Integer, pPage As %Integer = 1, pPageSize As %Integer = 10, pFilter As %String(MAXLEN=32767) = "", pEntType As %Integer = {$$$ENTTYPECONCEPT}, pUseStems As %Boolean = 0) As %Status [ Internal ]
Returns the top entities for a given domain (optionally filtered through pFilter) calculated using a metric based on the Okapi BM25 standard, which combines an entity's frequency with its Inverse Document Frequency, taking into account document length.
GetTopBM25Fetch
ClassMethod GetTopBM25Fetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetTopBM25Execute ]
GetTopBM25Close
ClassMethod GetTopBM25Close(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetTopBM25Execute ]
GetTopGroupsExecute
ClassMethod GetTopGroupsExecute(ByRef qHandle As %Binary, domainId As %Integer, page As %Integer = 1, pageSize As %Integer = 10, filter As %String(MAXLEN=32767) = "", skipListIds As %String(MAXLEN=32767) = "", language As %String(MAXLEN=32767) = "en", entType As %Integer = {$$$ENTTYPECONCEPT}, pUseStems As %Boolean = 0) As %Status [ Internal ]
GetTopGroupsFetch
ClassMethod GetTopGroupsFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetTopGroupsExecute ]
GetTopGroupsClose
ClassMethod GetTopGroupsClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetTopGroupsExecute ]
GetTopTFIDFExecute
ClassMethod GetTopTFIDFExecute(ByRef qHandle As %Binary, pDomainId As %Integer, pPage As %Integer = 1, pPageSize As %Integer = 10, pFilter As %String(MAXLEN=32767) = "", pEntType As %Integer = {$$$ENTTYPECONCEPT}, pUseStems As %Boolean = 0) As %Status [ Internal ]
Returns the top entities for a given domain (optionally filtered through pFilter) by multiplying their Term Frequency with their Inverse Document Frequency: IDF(e) = $zlog( [ SourceCount - spread(e) + 0.5 ] / [ spread(e) + 0.5 ] )
GetTopTFIDFFetch
ClassMethod GetTopTFIDFFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) As %Status [ Internal, PlaceAfter = GetTopTFIDFExecute ]
GetTopTFIDFClose
ClassMethod GetTopTFIDFClose(ByRef qHandle As %Binary) As %Status [ Internal, PlaceAfter = GetTopTFIDFExecute ]
GetValue
ClassMethod GetValue(domainid As %Integer, entityid As %Integer, vSrcId As %Integer = 0, Output scText As %String = "") As %Library.String [ SqlProc ]
Returns the entity string value corresponding to the specified entity ID, if any.
IsAttributed
ClassMethod IsAttributed(pDomainId As %Integer, pEntOccId As %Integer, pAttTypeId As %Integer, vSrcId As %Integer = 0, Output scText As %String = "") As %Library.Boolean [ SqlProc ]
Checks if a given entity occurrence has the requested attribute pAttTypeId.