IRISLIB database
EntityAPI Class Reference
Inheritance diagram for EntityAPI:
Collaboration diagram for EntityAPI:

Static Public Member Functions

_.Library.Status GetByFilter (result, _.Library.Integer domainid, _.iKnow.Filters.Filter filter, _.Library.Integer filtermode, _.Library.Integer enttype, _.Library.List skipListIds, _.Library.Boolean pUseStems)
 
_.Library.Status GetBySource (result, _.Library.Integer domainid, _.Library.List sourceidlist, _.Library.Integer page, _.Library.Integer pagesize, _.Library.Integer enttype, _.Library.List skipListIds, _.Library.Boolean pUseStems)
 
_.Library.Status GetByStem (pResult, _.Library.Integer pDomainId, _.Library.Integer pStemUniId, _.Library.Integer vSrcId, _.Library.String pLanguage)
 Retrieves all entities corresponding to a certain stem identified by pStemUniId.
 
_.Library.Status GetByStemArray (pResult, _.Library.Integer pDomainId, _.Library.Integer pStemUniId, _.Library.Integer vSrcId, _.Library.Integer pLanguageId)
 Retrieves all entities corresponding to a certain stem identified by pStemUniId in an array: pResult(tEntUniId)="".
 
_.Library.Integer GetCountByDomain (_.Library.Integer domainid, _.iKnow.Filters.Filter filter, _.Library.Status sc, _.Library.List skipListIds, _.Library.Boolean includeZeroFrequency, _.Library.Boolean pUseStems)
 
_.Library.Integer GetCountBySource (_.Library.Integer domainid, _.Library.List sourceidlist, _.Library.Integer setop, _.Library.Status sc, _.Library.List skipListIds, _.Library.Integer enttype, _.Library.Boolean pUseStems)
 
_.Library.Integer GetFrequency (_.Library.Integer domainId, _.Library.Integer entUniId, _.Library.Integer enttype, _.Library.Integer vSrcId, _.iKnow.Filters.Filter filter, _.Library.Status sc)
 
_.Library.Integer GetId (_.Library.Integer domainid, _.Library.String entityvalue, _.Library.Integer vSrcId)
 
_.Library.String GetLiteral (_.Library.Integer pDomainId, _.Library.Integer pPartId, _.Library.Integer vSrcId)
 
_.Library.Status GetNewBySource (result, _.Library.Integer domainid, _.Library.List sourceidlist, _.Library.Integer page, _.Library.Integer pagesize, _.iKnow.Filters.Filter filter, _.Library.Integer entType, _.Library.String algorithm, _.Library.List algorithmParams, _.Library.List skipListIds, _.Library.Boolean pUseStems)
 
_.Library.Status GetOccurrenceAttributes (pResult, _.Library.Integer pDomainId, _.Library.Integer pPartId, _.Library.Integer vSrcId)
 
_.Library.Integer GetOccurrenceCountByDomain (_.Library.Integer pDomainId, _.iKnow.Filters.Filter pFilter, _.Library.Integer pEntType, _.Library.Status pSC)
 
_.Library.Integer GetOccurrenceCountBySource (_.Library.Integer domainid, _.Library.List sourceidlist, _.Library.Status sc, _.Library.Integer enttype)
 
_.Library.Status GetOccurrencesById (pResult, _.Library.Integer pDomainId, _.Library.List pEntUniIds, _.Library.Integer pPage, _.Library.Integer pPageSize, _.iKnow.Filters.Filter pFilter, _.Library.Integer pAttributeId, _.Library.Integer vSrcId, _.Library.Boolean pIncludeActualForms)
 
_.Library.Status GetRelated (result, _.Library.Integer domainid, _.Library.List entitylist, _.Library.Integer page, _.Library.Integer pagesize, _.iKnow.Filters.Filter filter, _.Library.Integer filtermode, _.Library.Integer positionstomatch, _.Library.Integer aggregationtype, _.Library.Integer setop, _.Library.Integer sorttype, _.Library.List skipListIds)
 
_.Library.Status GetRelatedById (result, _.Library.Integer domainid, _.Library.List entityidlist, _.Library.Integer page, _.Library.Integer pagesize, _.iKnow.Filters.Filter filter, _.Library.Integer filtermode, _.Library.Integer positionstomatch, _.Library.Integer aggregationtype, _.Library.Integer setop, _.Library.Integer sorttype, _.Library.List skipListIds)
 
_.Library.Integer GetRelatedCount (_.Library.Integer domainid, _.Library.List entitylist, _.iKnow.Filters.Filter filter, _.Library.Integer positionstomatch, _.Library.Integer setop, _.Library.Status sc, _.Library.Boolean pIncludeActualForms)
 
_.Library.Integer GetRelatedCountById (_.Library.Integer domainid, _.Library.List entityidlist, _.iKnow.Filters.Filter filter, _.Library.Integer positionstomatch, _.Library.Integer setop, _.Library.Status sc, _.Library.Boolean pIncludeActualForms)
 
_.Library.Status GetSimilar (result, _.Library.Integer domainid, _.Library.String part, _.Library.Integer page, _.Library.Integer pagesize, _.iKnow.Filters.Filter filter, _.Library.Integer filtermode, _.Library.Integer mode, _.Library.List skipListIds, _.Library.Integer pEntRole, _.Library.Boolean pUseStems)
 
_.Library.List GetSimilarCounts (_.Library.Integer domainid, _.Library.String part, _.iKnow.Filters.Filter filter, _.Library.Integer mode, _.Library.List skipListIds, _.Library.Status sc, _.Library.Integer entType, _.Library.Boolean pUseStems)
 
_.Library.Integer GetSpread (_.Library.Integer domainId, _.Library.Integer entUniId, _.Library.Integer enttype, _.iKnow.Filters.Filter filter, _.Library.Status sc)
 
_.Library.String GetStem (_.Library.Integer pDomainId, _.Library.String pString, _.Library.String pLanguage, _.Library.Status pSC)
 Returns the stemmed form of the supplied string pString. More...
 
_.Library.Integer GetStemFrequency (_.Library.Integer pDomainId, _.Library.Integer pStemUniId, _.Library.Integer pEntType, _.Library.Integer vSrcId, _.iKnow.Filters.Filter pFilter, _.Library.Status pSC)
 
_.Library.Integer GetStemId (_.Library.Integer pDomainId, _.Library.String pStemValue, _.Library.Integer vSrcId)
 
_.Library.String GetStemRepresentationForm (_.Library.Integer pDomainId, _.Library.Integer pStemUniId, _.Library.String pLanguage, _.Library.Integer vSrcId, _.Library.Status pSC)
 Returns the representation form for the given stem and language.
 
_.Library.Integer GetStemSpread (_.Library.Integer pDomainId, _.Library.Integer pStemUniId, _.Library.Integer pEntType, _.iKnow.Filters.Filter pFilter, _.Library.Status pSC)
 
_.Library.String GetStemValue (_.Library.Integer pDomainId, _.Library.Integer pStemUniId, _.Library.Integer vSrcId, _.Library.Status pSC)
 Returns the string value of the stem identified by pStemUniId
 
_.Library.Status GetTop (result, _.Library.Integer domainid, _.Library.Integer page, _.Library.Integer pagesize, _.iKnow.Filters.Filter filter, _.Library.Integer filtermode, _.Library.Integer sorttype, _.Library.Integer enttype, _.Library.Integer vSrcId, _.Library.List skipListIds, _.Library.Boolean pUseStems)
 
_.Library.Status GetTopBM25 (pResult, _.Library.Integer pDomainId, _.Library.Integer pPage, _.Library.Integer pPageSize, _.iKnow.Filters.Filter pFilter, _.Library.Integer pEntType, _.Library.Boolean pUseStems)
 Returns the top entities for a given domain (optionally filtered through pFilter) More...
 
_.Library.Status GetTopTFIDF (pResult, _.Library.Integer pDomainId, _.Library.Integer pPage, _.Library.Integer pPageSize, _.iKnow.Filters.Filter pFilter, _.Library.Integer pEntType, _.Library.Boolean pUseStems)
 Returns the top entities for a given domain (optionally filtered through pFilter) More...
 
_.Library.String GetValue (_.Library.Integer domainid, _.Library.Integer entityid, _.Library.Integer vSrcId, _.Library.Status pSC)
 
_.Library.Boolean IsAttributed (_.Library.Integer pDomainId, _.Library.Integer pEntOccId, _.Library.Integer pAttTypeId, _.Library.Integer vSrcId, _.Library.Status pSC)
 Checks if a given entity occurrence has the requested attribute pAttTypeId.
 

Static Public Attributes

 GetByFilterRT = None
 
 GetBySourceRT = None
 
 GetNewBySourceRT = None
 
 GetRelatedByIdRT = None
 
 GetRelatedRT = None
 
 GetSimilarCountsRT = None
 
 GetSimilarRT = None
 
 GetTopRT = None
 

Detailed Description

The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the product documentation for more detail.

Main Query class for retrieving Entities.

Member Function Documentation

◆ GetByFilter()

_.Library.Status GetByFilter (   result,
_.Library.Integer  domainid,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  filtermode,
_.Library.Integer  enttype,
_.Library.List  skipListIds,
_.Library.Boolean  pUseStems 
)
static

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 <method>GetTop</method> 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.

◆ GetBySource()

_.Library.Status GetBySource (   result,
_.Library.Integer  domainid,
_.Library.List  sourceidlist,
_.Library.Integer  page,
_.Library.Integer  pagesize,
_.Library.Integer  enttype,
_.Library.List  skipListIds,
_.Library.Boolean  pUseStems 
)
static

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.

◆ GetCountByDomain()

_.Library.Integer GetCountByDomain ( _.Library.Integer  domainid,
_.iKnow.Filters.Filter  filter,
_.Library.Status  sc,
_.Library.List  skipListIds,
_.Library.Boolean  includeZeroFrequency,
_.Library.Boolean  pUseStems 
)
static

Returns the total number of distinct entities for this domain, optionally filtered to a set of

sources satisfying the <class>iKnow.Filters.Filter</class> 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()

_.Library.Integer GetCountBySource ( _.Library.Integer  domainid,
_.Library.List  sourceidlist,
_.Library.Integer  setop,
_.Library.Status  sc,
_.Library.List  skipListIds,
_.Library.Integer  enttype,
_.Library.Boolean  pUseStems 
)
static

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()

_.Library.Integer GetFrequency ( _.Library.Integer  domainId,
_.Library.Integer  entUniId,
_.Library.Integer  enttype,
_.Library.Integer  vSrcId,
_.iKnow.Filters.Filter  filter,
_.Library.Status  sc 
)
static

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()

_.Library.Integer GetId ( _.Library.Integer  domainid,
_.Library.String  entityvalue,
_.Library.Integer  vSrcId 
)
static

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()

_.Library.String GetLiteral ( _.Library.Integer  pDomainId,
_.Library.Integer  pPartId,
_.Library.Integer  vSrcId 
)
static

Returns the literal value for a particular Part ID, as it

occurred in the original text.

◆ GetNewBySource()

_.Library.Status GetNewBySource (   result,
_.Library.Integer  domainid,
_.Library.List  sourceidlist,
_.Library.Integer  page,
_.Library.Integer  pagesize,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  entType,
_.Library.String  algorithm,
_.Library.List  algorithmParams,
_.Library.List  skipListIds,
_.Library.Boolean  pUseStems 
)
static

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 <class>iKnow.Filters.Filter</class> 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.

◆ GetOccurrenceAttributes()

_.Library.Status GetOccurrenceAttributes (   pResult,
_.Library.Integer  pDomainId,
_.Library.Integer  pPartId,
_.Library.Integer  vSrcId 
)
static

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).

◆ GetOccurrenceCountByDomain()

_.Library.Integer GetOccurrenceCountByDomain ( _.Library.Integer  pDomainId,
_.iKnow.Filters.Filter  pFilter,
_.Library.Integer  pEntType,
_.Library.Status  pSC 
)
static

Returns the total number of entity occurrences in a domain.

◆ GetOccurrenceCountBySource()

_.Library.Integer GetOccurrenceCountBySource ( _.Library.Integer  domainid,
_.Library.List  sourceidlist,
_.Library.Status  sc,
_.Library.Integer  enttype 
)
static

Returns the total number of entity occurrences for the given list of sources. Use negative source

IDs to refer to virtual sources.

◆ GetOccurrencesById()

_.Library.Status GetOccurrencesById (   pResult,
_.Library.Integer  pDomainId,
_.Library.List  pEntUniIds,
_.Library.Integer  pPage,
_.Library.Integer  pPageSize,
_.iKnow.Filters.Filter  pFilter,
_.Library.Integer  pAttributeId,
_.Library.Integer  vSrcId,
_.Library.Boolean  pIncludeActualForms 
)
static

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.

◆ GetRelated()

_.Library.Status GetRelated (   result,
_.Library.Integer  domainid,
_.Library.List  entitylist,
_.Library.Integer  page,
_.Library.Integer  pagesize,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  filtermode,
_.Library.Integer  positionstomatch,
_.Library.Integer  aggregationtype,
_.Library.Integer  setop,
_.Library.Integer  sorttype,
_.Library.List  skipListIds 
)
static

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 <class>iKnow.Filters.Filter</class> 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 <class>iKnow.Semantics.ProximityAPI</class>

◆ GetRelatedById()

_.Library.Status GetRelatedById (   result,
_.Library.Integer  domainid,
_.Library.List  entityidlist,
_.Library.Integer  page,
_.Library.Integer  pagesize,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  filtermode,
_.Library.Integer  positionstomatch,
_.Library.Integer  aggregationtype,
_.Library.Integer  setop,
_.Library.Integer  sorttype,
_.Library.List  skipListIds 
)
static

Returns the entities directly related to a supplied list of entity IDs.

See <method>GetRelated</method> for a description of the parameters.

◆ GetRelatedCount()

_.Library.Integer GetRelatedCount ( _.Library.Integer  domainid,
_.Library.List  entitylist,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  positionstomatch,
_.Library.Integer  setop,
_.Library.Status  sc,
_.Library.Boolean  pIncludeActualForms 
)
static

Returns the number of related entities for a given list of entities.

See <method>GetRelated</method> for a description of the parameters.

◆ GetRelatedCountById()

_.Library.Integer GetRelatedCountById ( _.Library.Integer  domainid,
_.Library.List  entityidlist,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  positionstomatch,
_.Library.Integer  setop,
_.Library.Status  sc,
_.Library.Boolean  pIncludeActualForms 
)
static

Returns the number of related entities for a given list of entity ids.

See <method>GetRelated</method> for a description of the parameters.

◆ GetSimilar()

_.Library.Status GetSimilar (   result,
_.Library.Integer  domainid,
_.Library.String  part,
_.Library.Integer  page,
_.Library.Integer  pagesize,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  filtermode,
_.Library.Integer  mode,
_.Library.List  skipListIds,
_.Library.Integer  pEntRole,
_.Library.Boolean  pUseStems 
)
static

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 <class>iKnow.Filters.Filter</class> 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.

◆ GetSimilarCounts()

_.Library.List GetSimilarCounts ( _.Library.Integer  domainid,
_.Library.String  part,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  mode,
_.Library.List  skipListIds,
_.Library.Status  sc,
_.Library.Integer  entType,
_.Library.Boolean  pUseStems 
)
static

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 <method>GetSimilar</method> 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.

◆ GetSpread()

_.Library.Integer GetSpread ( _.Library.Integer  domainId,
_.Library.Integer  entUniId,
_.Library.Integer  enttype,
_.iKnow.Filters.Filter  filter,
_.Library.Status  sc 
)
static

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()

_.Library.String GetStem ( _.Library.Integer  pDomainId,
_.Library.String  pString,
_.Library.String  pLanguage,
_.Library.Status  pSC 
)
static

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()

_.Library.Integer GetStemFrequency ( _.Library.Integer  pDomainId,
_.Library.Integer  pStemUniId,
_.Library.Integer  pEntType,
_.Library.Integer  vSrcId,
_.iKnow.Filters.Filter  pFilter,
_.Library.Status  pSC 
)
static

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()

_.Library.Integer GetStemId ( _.Library.Integer  pDomainId,
_.Library.String  pStemValue,
_.Library.Integer  vSrcId 
)
static

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.

◆ GetStemSpread()

_.Library.Integer GetStemSpread ( _.Library.Integer  pDomainId,
_.Library.Integer  pStemUniId,
_.Library.Integer  pEntType,
_.iKnow.Filters.Filter  pFilter,
_.Library.Status  pSC 
)
static

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).

◆ GetTop()

_.Library.Status GetTop (   result,
_.Library.Integer  domainid,
_.Library.Integer  page,
_.Library.Integer  pagesize,
_.iKnow.Filters.Filter  filter,
_.Library.Integer  filtermode,
_.Library.Integer  sorttype,
_.Library.Integer  enttype,
_.Library.Integer  vSrcId,
_.Library.List  skipListIds,
_.Library.Boolean  pUseStems 
)
static

This method returns the most frequently occurring entities in the specified domain.

The scope of this query can be limited through supplying a <class>iKnow.Filters.Filter</class> 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.

◆ GetTopBM25()

_.Library.Status GetTopBM25 (   pResult,
_.Library.Integer  pDomainId,
_.Library.Integer  pPage,
_.Library.Integer  pPageSize,
_.iKnow.Filters.Filter  pFilter,
_.Library.Integer  pEntType,
_.Library.Boolean  pUseStems 
)
static

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.

◆ GetTopTFIDF()

_.Library.Status GetTopTFIDF (   pResult,
_.Library.Integer  pDomainId,
_.Library.Integer  pPage,
_.Library.Integer  pPageSize,
_.iKnow.Filters.Filter  pFilter,
_.Library.Integer  pEntType,
_.Library.Boolean  pUseStems 
)
static

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 ] )

◆ GetValue()

_.Library.String GetValue ( _.Library.Integer  domainid,
_.Library.Integer  entityid,
_.Library.Integer  vSrcId,
_.Library.Status  pSC 
)
static

Returns the entity string value corresponding to the specified entity ID, if any.

Member Data Documentation

◆ GetByFilterRT

GetByFilterRT = None
static

The InterSystems IRIS NLP iKnow technology is now deprecated. Please see the product documentation for more detail.

Main Query class for retrieving Entities.

Returned column summary for <method>GetByFilter</method>.

◆ GetBySourceRT

GetBySourceRT = None
static

Returned column summary for <method>GetBySource</method>.

◆ GetNewBySourceRT

GetNewBySourceRT = None
static

Returned column summary for <method>GetNewBySource</method>.

◆ GetRelatedByIdRT

GetRelatedByIdRT = None
static

Returned column summary for <method>GetRelatedById</method>.

◆ GetRelatedRT

GetRelatedRT = None
static

Returned column summary for <method>GetRelated</method>.

◆ GetSimilarCountsRT

GetSimilarCountsRT = None
static

Returned column summary for <method>GetSimilarCounts</method>.

◆ GetSimilarRT

GetSimilarRT = None
static

Returned column summary for <method>GetSimilar</method>.

◆ GetTopRT

GetTopRT = None
static

Returned column summary for <method>GetTop</method>.