Skip to content

Interface: DocumentGraphNode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Documents / DocumentGraphNode

Interface: DocumentGraphNode

Defined in: src/types/documents.ts:288

One entity node of a document’s knowledge graph, with graph metrics.

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

betweenness

betweenness: number

Defined in: src/types/documents.ts:298

Betweenness centrality.


communityId

communityId: number

Defined in: src/types/documents.ts:302

Leiden community id this node belongs to.


confidence?

optional confidence: number | null

Defined in: src/types/documents.ts:306

Extraction confidence, when recorded on the term.


degree

degree: number

Defined in: src/types/documents.ts:296

Node degree within the document graph.


id

id: string

Defined in: src/types/documents.ts:290

Entity term id.


kCore

kCore: number

Defined in: src/types/documents.ts:304

k-core index.


label

label: string

Defined in: src/types/documents.ts:292

Display label (from the name/title/label/text/identifier feature, else a short id).


mentionCount

mentionCount: number

Defined in: src/types/documents.ts:308

Mentions of this entity in the document (from mentioned_in edges).


pagerank

pagerank: number

Defined in: src/types/documents.ts:300

PageRank score.


sort

sort: string

Defined in: src/types/documents.ts:294

Sort name (entity type).