Expand description
§🦉 Fukurow - Rust Reasoning & Knowledge Graph Stack
Fukurow is a comprehensive Rust stack for processing knowledge graphs and performing semantic reasoning. Built on JSON-LD, RDF, OWL, SPARQL, and GraphQL-LD standards, it provides high-performance inference engines and auditable knowledge stores.
§Features
- 🚀 High-Performance Inference: LTO-optimized native-speed RDF/OWL reasoning
- 🔒 Auditable Knowledge Store: Complete provenance tracking and audit trails
- 🦉 Cyber Security Focused: Advanced rules for EDR/SIEM event analysis
- 🌐 WebAssembly Support: Browser-compatible execution
- 📊 Semantic Knowledge Graphs: JSON-LD based data models
- 🔧 Rust Ecosystem: Memory-safe, high-performance, concurrent processing
§Quick Start
use fukurow::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create a reasoner engine
let mut engine = ReasonerEngine::new();
// Create a cyber event (network connection example)
let event = CyberEvent::NetworkConnection {
source_ip: "192.168.1.100".to_string(),
dest_ip: "10.0.0.1".to_string(),
port: 443,
protocol: "TCP".to_string(),
timestamp: chrono::Utc::now().timestamp(),
};
engine.add_event(event).await?;
// Perform reasoning
let actions = engine.reason().await?;
println!("Generated {} actions", actions.len());
Ok(())
}§Architecture
Fukurow consists of several specialized crates:
fukurow-core: Core RDF/JSON-LD data models and processingfukurow-store: RDF triple store with provenance trackingfukurow-rules: Rule traits and constraint validation (SHACL equivalent)fukurow-engine: Reasoning engine orchestrationfukurow-domain-cyber: Cyber security domain rulesfukurow-api: RESTful web APIfukurow-cli: Command-line interface
§Feature Flags
full(default): All crates includedcore: Only core data modelsstore: RDF triple store functionalityrules: Rule engine and validationengine: Reasoning orchestrationcyber: Cyber security domain rulesapi: REST API servercli: Command-line toolswasm: WebAssembly support
Re-exports§
pub use fukurow_core as core;pub use fukurow_store as store;pub use fukurow_rules as rules;pub use fukurow_engine as engine;pub use fukurow_domain_cyber as domain_cyber;pub use fukurow_api as api;pub use fukurow_cli as cli;pub use serde;pub use serde_json;pub use anyhow;pub use tokio;
Modules§
- build_
info - Build information
- cli_
tools - Command-line tools
- cyber
- Cyber security domain functionality
- model
- Graph data models for JSON-LD reasoning
- prelude
- Prelude module for convenient imports
- reasoning
- Reasoning engine and rules
- web
- Web API and services
Structs§
- RdfStore
- RDF Store with provenance tracking
- Reasoner
Engine - Compatibility layer for legacy ReasonerEngine API Delegates to the new ReasoningEngine
- Rule
Registry - Rule registry for managing multiple rules
- Threat
Processor - Threat intelligence processor
Enums§
- Indicator
Type - Type of threat indicator
- Provenance
- Provenance information for stored triples
- Reasoner
Error - Reasoning engine errors
Constants§
- VERSION
- Current version of Fukurow
Traits§
- Rule
- Core rule trait
Functions§
- health_
check - Health check function