ProjectedRelationship

data class ProjectedRelationship(val sourceId: String, val targetId: String, val type: String, val confidence: Double, val decay: Double = 0.0, val description: String? = null, val sourcePropositionIds: List<String>, val authority: AuthorityTier? = null) : RelationshipInstance, Projection

A graph relationship produced by projecting one or more propositions.

Constructors

Link copied to clipboard
constructor(sourceId: String, targetId: String, type: String, confidence: Double, decay: Double = 0.0, description: String? = null, sourcePropositionIds: List<String>, authority: AuthorityTier? = null)

Properties

Link copied to clipboard

how authoritative the source is — lets downstream queries distinguish a strongly-grounded edge from a weak inferred one. Null when not resolved.

Link copied to clipboard
open override val confidence: Double

confidence aggregated from the source propositions

Link copied to clipboard
open override val decay: Double = 0.0

decay rate aggregated from the source propositions

Link copied to clipboard
open override val description: String? = null

optional human-readable description of the relationship

Link copied to clipboard

Stable lineage reference for this projected edge.

Link copied to clipboard

Same as sourceId — convenience alias.

Link copied to clipboard
open override val grounding: List<String>

Grounding traces back to the source propositions by default.

Link copied to clipboard
open val importance: <Error class: unknown class>

Importance of this derivation (0.0 to 1.0).

Link copied to clipboard
open override val sourceId: String

ID of the source entity

Link copied to clipboard
open override val sourcePropositionIds: List<String>

IDs of the propositions this edge was derived from

Link copied to clipboard
open override val targetId: String

ID of the target entity

Link copied to clipboard

Same as targetId — convenience alias.

Link copied to clipboard
open override val type: String

relationship type from the schema (e.g., "EXPERT_IN", "OWNS_PET")

Functions

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