SemanticFact class

A generalised fact stored in semantic memory.

Semantic facts are derived from repeated episodic patterns.

Constructors

SemanticFact({required String id, required String subject, required String predicate, required String object, double confidence = 0.5, int occurrences = 1, DateTime? firstSeen, DateTime? lastSeen, List<String>? supportingEpisodeIds})

Properties

confidence ↔ double
getter/setter pair
firstSeen → DateTime
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
lastSeen ↔ DateTime
getter/setter pair
object → String
final
occurrences ↔ int
getter/setter pair
predicate → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statement → String
Natural-language rendering: "cats eat fish"
no setter
subject → String
final
supportingEpisodeIds → List<String>
final

Methods

contradict({double amount = 0.1}) → void
Weaken this fact when contradicted by evidence.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reinforce({double amount = 0.1}) → void
Strengthen this fact when confirmed by new evidence.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited