%iKnow.Objects.VirtualDictionaryMatch
Class %iKnow.Objects.VirtualDictionaryMatch Extends %Persistent [ Deprecated, StorageStrategy = iKnowStorage, System = 4 ]
This is a read-only object representation wrapping the internal iKnow data structures for Dictionary Matches in a Virtual Source.
This class can be used from ObjectScript or SQL to access a single or small number of entries, but the storage mappings are not meant to support elaborate or complex queries targeting this SQL table.
Please use the predefined queries in %iKnow.Matching.MatchingAPI and other query classes to consult entity data as the internal global structures are designed to optimize performance for these queries rather than general-purpose access.
Parameters
READONLY
Parameter READONLY = 1;
Properties
DomainId
Property DomainId As %Integer;
VirtualSourceId
Property VirtualSourceId As %Integer;
DictionaryMatchId
Property DictionaryMatchId As %Integer;
DictionaryId
Property DictionaryId As %Integer;
DictionaryItemId
Property DictionaryItemId As %Integer;
DictionaryTermId
Property DictionaryTermId As %Integer;
TargetType
Property TargetType As %Integer;
TargetTypeString
Property TargetTypeString As %String [ Calculated, SqlComputeCode = { set {TargetTypeString} = $case({TargetType}, $$$DMTARGETENTITY:"entity", $$$DMTARGETCRC:"crc", $$$DMTARGETPATH:"path")}, SqlComputed ];
TargetId
Property TargetId As %Integer;
MatchScore
Property MatchScore As %Numeric;
MatchedConceptCount
Property MatchedConceptCount As %Integer;
MatchedRelationCount
Property MatchedRelationCount As %Integer;
PartialMatchCount
Property PartialMatchCount As %Integer;
FirstMatchedPositionInPath
Property FirstMatchedPositionInPath As %Integer;
LastMatchedPositionInPath
Property LastMatchedPositionInPath As %Integer;
IsOrdered
Property IsOrdered As %Boolean;
NegatedEntityCount
Property NegatedEntityCount As %Integer;
MatchedEntityCount
Property MatchedEntityCount As %Integer [ Calculated, SqlComputeCode = {set {MatchedEntityCount} = {MatchedConceptCount} + {MatchedRelationCount} }, SqlComputed ];
MatchedPathSectionLength
Property MatchedPathSectionLength As %Integer [ Calculated, SqlComputeCode = {set {MatchedPathSectionLength} = {LastMatchedPositionInPath} - {FirstMatchedPositionInPath} + 1 }, SqlComputed ];
Dictionary
Property Dictionary As %iKnow.Objects.Dictionary [ Calculated, SqlComputeCode = {set {Dictionary} = $s({DictionaryId}<0:0, 1:{DomainId}) _"||"_ $zabs({DictionaryId})}, SqlComputed ];
DictionaryItem
Property DictionaryItem As %iKnow.Objects.DictionaryItem [ Calculated, SqlComputeCode = {set {DictionaryItem} = $s({DictionaryId}<0:0, 1:{DomainId}) _"||"_ $zabs({DictionaryItemId})}, SqlComputed ];
DictionaryTerm
Property DictionaryTerm As %iKnow.Objects.DictionaryTerm [ Calculated, SqlComputeCode = {set {DictionaryTerm} = $s({DictionaryId}<0:0, 1:{DomainId}) _"||"_ $zabs({DictionaryTermId})}, SqlComputed ];
MatchedEntityOccurrence
Property MatchedEntityOccurrence As %iKnow.Objects.VirtualEntityOccurrence [ Calculated, SqlComputeCode = {set {MatchedEntityOccurrence} = $s({TargetType}=0:{DomainId}_"||"_{VirtualSourceId}_"||"_{TargetId}, 1:"")}, SqlComputed ];
MatchedCrcOccurrence
Property MatchedCrcOccurrence As %iKnow.Objects.VirtualCrcOccurrence [ Calculated, SqlComputeCode = {set {MatchedCrcOccurrence} = $s({TargetType}=1:{DomainId}_"||"_{VirtualSourceId}_"||"_{TargetId}, 1:"")}, SqlComputed ];