withSemanticBetween

fun withSemanticBetween(subjectType: String, objectType: String, predicate: String, meaning: String): Relations

Add a semantic relation constrained to a specific subject and object type pair.


fun withSemanticBetween(subjectType: String, objectType: String, predicate: String, meaning: String, floor: EvidenceFloor?): Relations

Add a semantic relation constrained to a specific subject and object type pair, with an evidence floor declared inline. This lets you stay in the fluent builder chain rather than stepping outside it to call Relation.withEvidenceFloor separately.

Relations.empty()
.withSemanticBetween(
subjectType = "Person", objectType = "Organization",
predicate = "works for", meaning = "is employed by",
floor = EvidenceFloor.ofConfidence(0.7, demoteTo = "affiliated with"),
)

Java callers: use Relation.semanticBetween + Relation.withEvidenceFloor to attach a floor, since this overload is not @JvmOverloads-compatible with the four-parameter form.

Parameters

floor

the minimum evidence the relation requires before it may be asserted at full strength; pass null to add the relation without a floor (equivalent to the overload above)