Interface: DocumentGraphNode
@kortexya/reasoninglayer / DocumentGraphNode
Interface: DocumentGraphNode
Section titled “Interface: DocumentGraphNode”Defined in: src/types/documents.ts:384
One entity node of a document’s knowledge graph, with graph metrics.
Remarks
Section titled “Remarks”Metrics are computed on demand over the document’s entity sub-graph:
degree, betweenness, pagerank and kCore; communityId is the Leiden
partition the node fell into.
Properties
Section titled “Properties”betweenness
Section titled “betweenness”betweenness:
number
Defined in: src/types/documents.ts:394
Betweenness centrality.
communityId
Section titled “communityId”communityId:
number
Defined in: src/types/documents.ts:398
Leiden community id this node belongs to.
confidence?
Section titled “confidence?”
optionalconfidence?:number|null
Defined in: src/types/documents.ts:402
Extraction confidence, when recorded on the term.
degree
Section titled “degree”degree:
number
Defined in: src/types/documents.ts:392
Node degree within the document graph.
id:
string
Defined in: src/types/documents.ts:386
Entity term id.
kCore:
number
Defined in: src/types/documents.ts:400
k-core index.
label:
string
Defined in: src/types/documents.ts:388
Display label (from the name/title/label/text/identifier feature, else a short id).
mentionCount
Section titled “mentionCount”mentionCount:
number
Defined in: src/types/documents.ts:404
Mentions of this entity in the document (from mentioned_in edges).
pagerank
Section titled “pagerank”pagerank:
number
Defined in: src/types/documents.ts:396
PageRank score.
sort:
string
Defined in: src/types/documents.ts:390
Sort name (entity type).