pub struct ImportTriple {
pub subject: String,
pub predicate: String,
pub object: String,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
pub confidence: f32,
pub source_memory_id: Option<String>,
}Expand description
A knowledge-graph triple prepared for bulk import — the wire shape
shared by ijima import (source dbs) and the HTTP client
(import_kg). Subject/object are entity names (Ijima’s
id-is-name convention); valid_to is applied as a post-add
invalidation when present.
Fields§
§subject: StringSubject entity name (becomes the EntityId).
predicate: StringThe relationship verb (e.g. depends_on).
object: StringObject entity name (becomes the EntityId).
valid_from: Option<String>When the fact became true (ISO date), if known.
valid_to: Option<String>When the fact stopped being true; applied as a post-add invalidation on import.
confidence: f32Source confidence [0, 1].
source_memory_id: Option<String>The memory that evidenced the fact, if any.
Trait Implementations§
Source§impl Clone for ImportTriple
impl Clone for ImportTriple
Source§fn clone(&self) -> ImportTriple
fn clone(&self) -> ImportTriple
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportTriple
impl Debug for ImportTriple
Source§impl PartialEq for ImportTriple
impl PartialEq for ImportTriple
impl StructuralPartialEq for ImportTriple
Auto Trait Implementations§
impl Freeze for ImportTriple
impl RefUnwindSafe for ImportTriple
impl Send for ImportTriple
impl Sync for ImportTriple
impl Unpin for ImportTriple
impl UnsafeUnpin for ImportTriple
impl UnwindSafe for ImportTriple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more