EntityMention

data class EntityMention(val span: String, val type: String, val resolvedId: String? = null, val role: MentionRole = MentionRole.OTHER, val hints: Map<String, Any> = emptyMap())

A reference to an entity within a proposition.

Constructors

Link copied to clipboard
constructor(span: String, type: String, resolvedId: String? = null, role: MentionRole = MentionRole.OTHER, hints: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

Additional context for future resolution (e.g., aliases, titles)

Link copied to clipboard
val resolvedId: String? = null

Entity ID if resolved, null if unresolved

Link copied to clipboard

The role this entity plays in the proposition

Link copied to clipboard

The text as it appears in the proposition (e.g., "Jim")

Link copied to clipboard

The entity type label from schema (e.g., "Person", "Technology"). For graph projection, this must match the relation's expected subject/object type — which is derived from the Kotlin class simpleName (or a Neo4j ownLabel) — for an edge to be produced. Matching is tolerant of case and of label-ish hints, but a genuine mismatch yields a failure whose reason names both the actual and expected type rather than silently producing no edge.

Functions

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard