1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
//! Yin is a rudimentary, experimental knowledge base. //! //! # Example //! //! ```rust //! use zamm_yin::tao::initialize_kb; //! use zamm_yin::tao::archetype::ArchetypeTrait; //! use zamm_yin::tao::form::{FormTrait, Form}; //! use zamm_yin::node_wrappers::CommonNodeTrait; //! //! fn main() { //! // Initialize the knowledge-base //! initialize_kb(); //! //! // Create a new concept //! let mut concept = Form::new(); //! assert!(concept.has_ancestor(Form::archetype())); //! //! // Set a name for the concept //! concept.set_internal_name("Hello, world.".to_string()); //! println!("{}", concept.internal_name().unwrap()); //! } //! ``` #![allow(clippy::needless_doctest_main)] #![warn(missing_docs)] pub mod graph; pub mod node_wrappers; pub mod tao; mod wrapper; pub use wrapper::Wrapper;