Class KnowledgeRelationshipBase
- Namespace
- FoundationaLLM.Common.Models.Knowledge
- Assembly
- FoundationaLLM.Common.dll
Represents the common properties of a knowledge relationship used in a knowledge graph.
public class KnowledgeRelationshipBase : KnowledgeItemBase
- Inheritance
-
KnowledgeRelationshipBase
- Derived
- Inherited Members
- Extension Methods
Constructors
KnowledgeRelationshipBase()
Initializes a new instance of the KnowledgeRelationship class.
public KnowledgeRelationshipBase()
Properties
BucketId
Gets the identifier of the bucket to which the knowledge item belongs.
[JsonIgnore]
public override string BucketId { get; }
Property Value
Source
Gets or sets the source entity of the relationship.
[JsonPropertyName("source")]
[JsonPropertyOrder(-50)]
public string Source { get; set; }
Property Value
SourceType
Gets or sets the type of the source entity.
[JsonPropertyName("source_type")]
[JsonPropertyOrder(-49)]
public string SourceType { get; set; }
Property Value
SourceUniqueId
Gets the unique identifier for the source, combining the source type and source value.
[JsonIgnore]
public string SourceUniqueId { get; }
Property Value
Target
Gets or sets the target entity of the relationship.
[JsonPropertyName("target")]
[JsonPropertyOrder(-48)]
public string Target { get; set; }
Property Value
TargetType
Gets or sets the type of the target entity.
[JsonPropertyName("target_type")]
[JsonPropertyOrder(-47)]
public string TargetType { get; set; }
Property Value
TargetUniqueId
Gets the unique identifier for the target, combining the target type and target value.
[JsonIgnore]
public string TargetUniqueId { get; }
Property Value
UniqueId
Gets the unique identifier of the knowledge item.
[JsonIgnore]
public override string UniqueId { get; }