Convert a vault path to a subject URI (simplified).
(path: &str)
| 562 | |
| 563 | /// Convert a vault path to a subject URI (simplified). |
| 564 | fn path_to_subject(path: &str) -> String { |
| 565 | if path.starts_with("goals/") { |
| 566 | entry_subject(path, VaultEntryType::Session) |
| 567 | } else if path.starts_with("intents/") { |
| 568 | entry_subject(path, VaultEntryType::Intent) |
| 569 | } else if path.starts_with("memory/") { |
| 570 | entry_subject(path, VaultEntryType::Memory) |
| 571 | } else if path.starts_with("skills/") { |
| 572 | entry_subject(path, VaultEntryType::Skill) |
| 573 | } else { |
| 574 | format!("vault:{}", path.replace('/', ":")) |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | /// Extract KG edges (and populate node summary) from frontmatter fields. |
| 579 | fn extract_frontmatter_kg( |
no test coverage detected