Expand description
§OxiRS Core - RDF and SPARQL Foundation
Status: Alpha Release (v0.1.0-alpha.2) ⚠️ APIs may change. Not recommended for production use.
Zero-dependency, Rust-native RDF data model and SPARQL foundation for the OxiRS semantic web platform. This crate provides the core types, traits, and operations that all other OxiRS crates build upon.
§Features
- RDF 1.2 Support - Complete RDF data model implementation
- SPARQL Foundation - Core types for SPARQL query processing
- Zero Dependencies - Minimal external dependencies for maximum portability
- Memory Efficiency - Optimized data structures for large knowledge graphs
- Concurrent Operations - Thread-safe operations for multi-threaded environments
- Storage Backends - Pluggable storage with memory and disk options
§Quick Start Examples
§Basic Store Operations
use oxirs_core::store::ConcreteStore;
use oxirs_core::model::{NamedNode, Triple};
// Create a new RDF store
let store = ConcreteStore::new();
// Add RDF data
let subject = NamedNode::new("http://example.org/alice")?;
let predicate = NamedNode::new("http://example.org/knows")?;
let object = NamedNode::new("http://example.org/bob")?;
let triple = Triple::new(subject, predicate, object);
store.insert_triple(triple)?;
println!("Triple added successfully");
§Consciousness-Inspired Processing
use oxirs_core::consciousness::{ConsciousnessCoordinator, ConsciousnessLevel};
let mut coordinator = ConsciousnessCoordinator::new();
// Configure consciousness-inspired optimization
coordinator.set_consciousness_level(ConsciousnessLevel::SelfAware);
coordinator.enable_dream_processing(true);
coordinator.enable_emotional_learning(true);
println!("Consciousness coordinator initialized");
Re-exports§
pub use rdf_store::ConcreteStore;
pub use rdf_store::RdfStore;
pub use rdf_store::Store;
pub use transaction::Transaction;
pub use model::*;
Modules§
- ai
- AI/ML Integration Platform for OxiRS
- concurrent
- Concurrent data structures for high-performance graph operations
- consciousness
- Consciousness-Inspired Computing Module
- distributed
- Distributed storage and consensus modules
- error
- Core error types for OxiRS
- federation
- SPARQL Federation support for distributed query execution
- format
- RDF Format Support Module
- graph
- RDF graph abstraction and operations
- indexing
- Ultra-high performance indexing for RDF data
- interning
- String interning system for performance optimization
- io
- I/O utilities for RDF data processing
- jsonld
- JSON-LD processing functionality for OxiRS Core
- model
- Core RDF data model types and implementations
- molecular
- Molecular-Level Memory Management
- optimization
- Zero-copy operations and performance optimizations
- oxigraph_
compat - Oxigraph compatibility layer
- parallel
- Parallel processing abstractions for OxiRS
- parser
- RDF parsing utilities for various formats with ultra-performance streaming
- platform
- Platform capabilities detection for OxiRS
- quantum
- Quantum-Inspired Computing Module
- query
- SPARQL query processing module
- rdf_
store - RDF store implementation with pluggable storage backends
- rdfxml
- RDF/XML parsing and serialization support for OxiRS
- serializer
- RDF serialization utilities for various formats
- sparql
- SPARQL query processing modules
- storage
- Next-Generation Storage Engine for OxiRS
- store
- High-performance store module with multi-index graph and term interning
- transaction
- Transaction support for OxiRS
- vocab
- Common RDF vocabularies and namespaces
Enums§
- Oxirs
Error - Core error type for OxiRS operations
Constants§
- VERSION
- Version information for OxiRS Core
Functions§
- init
- Initialize OxiRS Core with default configuration
Type Aliases§
- Result
- Result type alias for OxiRS operations