Crate kotoba_main

Crate kotoba_main 

Source
Expand description

§Kotoba: Core Graph Processing System

A comprehensive graph processing platform featuring GP2-based graph rewriting, complete Event Sourcing, ISO GQL-compliant queries, MVCC+Merkle persistence, and distributed execution using the Port/Adapter (Hexagonal) Architecture.

§Architecture Overview

Kotoba is built with the Port/Adapter (Hexagonal) Architecture:

  • 🎯 Application Layer: Business logic (Event Sourcing, Graph Queries, Rewriting)
  • 🔧 Infrastructure Layer: Storage adapters (RocksDB, Redis, In-Memory)
  • 🏛️ Presentation Layer: CLI, HTTP APIs, Web interfaces

§Key Features

  • Complete Event Sourcing: Immutable events, projections, materialized views
  • ISO GQL-compliant Queries: Industry-standard graph query language
  • Port/Adapter Pattern: Clean separation of business logic and infrastructure
  • Multiple Storage Backends: RocksDB, Redis, In-Memory implementations
  • Graph Rewriting: GP2-based graph transformations
  • Distributed Execution: Multi-node coordination and consensus

§Usage

use kotoba::*;

// Create storage adapter
let storage = kotoba_storage::MemoryAdapter::new();

// Create event stream
let event_stream = kotoba_event_stream::EventStream::new(storage);

// Execute GQL query
let result = kotoba_query_engine::execute_gql("MATCH (n) RETURN n", &event_stream).await;

§Crate Organization

  • 000-core: Foundation types, error handling, CID
  • 100-storage: Storage adapters and persistence
  • 200-application: Business logic and domain services
  • 300-workflow: Workflow orchestration
  • 400-language: Language support (Jsonnet, KotobaScript)
  • 500-services: HTTP servers and APIs
  • 600-deployment: Deployment and scaling
  • 900-tools: Development tools and CLI

Enums§

KotobaError
The primary error type for the entire Kotoba ecosystem.

Constants§

DESCRIPTION
NAME
VERSION