Struct DetectionResult

Namespace
Kuestenlogik.Bowire.Semantics.Detectors
Assembly
Kuestenlogik.Bowire.dll

One proposed annotation produced by a detector — the addressing half (Key) plus the semantic claim (Semantic). Always lands in the Auto layer; the LayeredAnnotationStore resolver does the priority arithmetic at lookup time.

public readonly struct DetectionResult : IEquatable<DetectionResult>
Implements
Inherited Members

Constructors

DetectionResult(AnnotationKey, SemanticTag)

One proposed annotation produced by a detector — the addressing half (Key) plus the semantic claim (Semantic). Always lands in the Auto layer; the LayeredAnnotationStore resolver does the priority arithmetic at lookup time.

public DetectionResult(AnnotationKey Key, SemanticTag Semantic)

Parameters

Key AnnotationKey

Four-dimensional address of the field this annotation applies to — composed by the detector from the DetectionContext service/method/message-type plus the JSON path it walked to find the field.

Semantic SemanticTag

The semantic kind the detector claims for the field. Conventionally one of the BuiltInSemanticTags catalogue entries.

Properties

Key

Four-dimensional address of the field this annotation applies to — composed by the detector from the DetectionContext service/method/message-type plus the JSON path it walked to find the field.

public AnnotationKey Key { get; init; }

Property Value

AnnotationKey

Semantic

The semantic kind the detector claims for the field. Conventionally one of the BuiltInSemanticTags catalogue entries.

public SemanticTag Semantic { get; init; }

Property Value

SemanticTag

Methods

Deconstruct(out AnnotationKey, out SemanticTag)

public void Deconstruct(out AnnotationKey Key, out SemanticTag Semantic)

Parameters

Key AnnotationKey
Semantic SemanticTag

Equals(DetectionResult)

public bool Equals(DetectionResult other)

Parameters

other DetectionResult

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DetectionResult, DetectionResult)

public static bool operator ==(DetectionResult left, DetectionResult right)

Parameters

left DetectionResult
right DetectionResult

Returns

bool

operator !=(DetectionResult, DetectionResult)

public static bool operator !=(DetectionResult left, DetectionResult right)

Parameters

left DetectionResult
right DetectionResult

Returns

bool