YIN 阴

Build Status

Yin is a rudimentary, experimental knowledge base. It is inspired by Scone, but is not meant to be a replacement/clone of Scone and its functionality.

Examples

Functionality is basically non-existent at the moment. Please do not use this library.

Initialization and concept creation

Note that there is currently only single-threaded support. Unless using a Neo4j Cypher backend, every spawned thread will have its own independent instance of the KB.

```rust use zammyin::concepts::{ArchetypeTrait, FormTrait, Tao}; use zammyin::graph::bindinmemorygraph; use zammyin::wrappers::CommonNodeTrait;

fn main() { // Initialize the knowledge-base bindinmemory_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());

} ```

Development

By default, the Neo4j Cypher tests aren't run. To run them:

  1. Ensure that Neo4j version 3 is installed and running (the petgraph dependency doesn't support version 4)
  2. Change the test DB password to dummy_password
  3. Run cargo test -- --ignored