[−][src]Crate zamm_yin
Yin is a rudimentary, experimental knowledge base.
Example
use zamm_yin::concepts::{ArchetypeTrait, FormTrait, Tao}; use zamm_yin::graph::bind_in_memory_graph; use zamm_yin::node_wrappers::CommonNodeTrait; fn main() { // Initialize the knowledge-base bind_in_memory_graph(); // Create a new concept let mut concept = Tao::individuate(); assert!(concept.has_ancestor(Tao::archetype())); // Set a name for the concept concept.set_internal_name("Hello, world.".to_string()); println!("{}", concept.internal_name().unwrap()); }
Modules
concepts | Object-oriented representations of nodes as first-class individuals, as opposed to merely being one of many components of a knowledge-base. |
graph | Defines the interface and implementations for working with regular directed graphs with labeled edges. |
node_wrappers | Wrappers around graph nodes that provide extended functionality at every level. |
Macros
define_closure | Unwrap a StrongValue holding a closure, and return the result after running on the input. |
initialize_type | Add the given Concept type to the KB. |
run_closure | Unwrap a StrongValue holding a closure, and return the result after running on the input. |