mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-23 06:54:06 +01:00
wip graph impl
This commit is contained in:
1 parent
fc7c10258d
commit
f596858fea
2 files changed
+15
-3
No files matched your search
@@ -14,10 +14,20 @@ pub struct TextContent {
|
||||
pub category: String,
|
||||
}
|
||||
|
||||
/// Represents a generic knowledge entity in the graph.
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct KnowledgeEntity {
|
||||
pub id: Uuid,
|
||||
pub name: String,
|
||||
pub description: String,
|
||||
pub source_uuid: Uuid,
|
||||
pub entity_type: String,
|
||||
}
|
||||
|
||||
/// A struct representing a knowledge source in the graph database.
|
||||
#[derive(Deserialize, Debug, Serialize, Clone )]
|
||||
pub struct KnowledgeSource {
|
||||
pub id: String,
|
||||
pub id: Uuid,
|
||||
pub title: String,
|
||||
pub description: String,
|
||||
pub relationships: Vec<Relationship>,
|
||||
|
||||
Reference in new issue
Block a user