Oxirs
Rust-native, modular platform for Semantic Web, SPARQL 1.2, GraphQL, and AI-augmented reasoning
Install / Use
/learn @cool-japan/OxirsREADME
OxiRS
A Rust-native, modular platform for Semantic Web, SPARQL 1.2, GraphQL, and AI-augmented reasoning
Status: v0.2.4 - Released - March 28, 2026
Production Ready: Complete SPARQL 1.1/1.2 implementation with 3.8x faster optimizer, industrial IoT support, and AI-powered features. 40,786 tests passing with zero warnings across all 26 crates.
v0.2.4 Highlights (March 28, 2026): 26 new functional modules added across 16 development rounds. Advanced SPARQL algebra (EXISTS, MINUS, subquery, service clause), production-grade storage (six-index store, index merger/rebuilder), AI capabilities (vector store, constraint inference, conversation history), and security hardening (credential store, trust chain validation). Production unwrap() audit complete (zero violations), cloud_integration.rs refactored into module, and security advisories reviewed.
Vision
OxiRS aims to be a Rust-first, JVM-free alternative to Apache Jena + Fuseki and to Juniper, providing:
- Protocol choice, not lock-in: Expose both SPARQL 1.2 and GraphQL endpoints from the same dataset
- Incremental adoption: Each crate works stand-alone; opt into advanced features via Cargo features
- AI readiness: Native integration with vector search, graph embeddings, and LLM-augmented querying
- Single static binary: Match or exceed Jena/Fuseki feature-for-feature while keeping a <50MB footprint
Quick Start
Installation
# Install the CLI tool
cargo install oxirs
# Or build from source
git clone https://github.com/cool-japan/oxirs.git
cd oxirs
cargo build --workspace --release
What's New in v0.2.4 (March 28, 2026)
Major Feature Release: 26 New Modules Across 16 Development Rounds
OxiRS v0.2.4 significantly expands the platform with deep SPARQL algebra, production storage, AI capabilities, and security hardening:
Core Capabilities:
- Complete SPARQL 1.1/1.2 - Full W3C compliance with advanced query optimization
- 3.8x Faster Optimizer - Adaptive complexity detection for optimal performance
- Advanced SPARQL Algebra - EXISTS/MINUS evaluators, subquery builder, service clause, LATERAL join
- Industrial IoT - Time-series, Modbus, CANbus/J1939 integration
- AI-Powered - GraphRAG, vector store, constraint inference, conversation history, thermodynamics
- Production Security - ReBAC, OAuth2/OIDC, DID & Verifiable Credentials, trust chain validation
- Storage Hardening - Six-index store, index merger/rebuilder, triple cache, shard router
- Complete Observability - Prometheus metrics, OpenTelemetry tracing
- Cloud Native - Kubernetes operator, Terraform modules, Docker support
Quality Metrics (v0.2.4):
- ✅ 40,786 tests passing (100% pass rate, ~115 skipped)
- ✅ Zero compilation warnings across all 26 crates
- ✅ 95%+ test coverage and documentation coverage
- ✅ Production validated in industrial deployments
- ✅ 26 new functional modules added across 16 development rounds
- ✅ Production unwrap() audit: all 18,554 unwrap() calls confirmed in test blocks (zero production violations)
- ✅ Security advisories reviewed: RUSTSEC-2026-0002 (lru via tantivy) documented as not exploitable
Usage
# Initialize a new knowledge graph (alphanumeric, _, - only)
oxirs init mykg
# Import RDF data (automatically persisted to mykg/data.nq)
oxirs import mykg data.ttl --format turtle
# Query the data (loaded automatically from disk)
oxirs query mykg "SELECT * WHERE { ?s ?p ?o } LIMIT 10"
# Query with specific patterns
oxirs query mykg "SELECT ?name WHERE { ?person <http://xmlns.com/foaf/0.1/name> ?name }"
# Start the server
oxirs serve mykg/oxirs.toml --port 3030
Features:
- ✅ Persistent storage: Data automatically saved to disk in N-Quads format
- ✅ SPARQL queries: SELECT, ASK, CONSTRUCT, DESCRIBE supported
- ✅ Auto-load: No manual save/load needed
- 🚧 PREFIX support: Coming in next release
Open:
- http://localhost:3030 for the Fuseki-style admin UI
- http://localhost:3030/graphql for GraphiQL (if enabled)
Published Crates
All crates are published to crates.io and documented on docs.rs.
Core
| Crate | Version | Docs | Description |
|-------|---------|------|-------------|
| oxirs-core | |
| Core RDF and SPARQL functionality |
Server
| Crate | Version | Docs | Description |
|-------|---------|------|-------------|
| oxirs-fuseki | |
| SPARQL 1.1/1.2 HTTP server |
| oxirs-gql |
|
| GraphQL endpoint for RDF |
Engine
| Crate | Version | Docs | Description |
|-------|---------|------|-------------|
| oxirs-arq | |
| SPARQL query engine |
| oxirs-rule |
|
| Rule-based reasoning |
| oxirs-shacl |
|
| SHACL validation |
| oxirs-samm |
|
| SAMM metamodel & AAS |
| oxirs-geosparql |
|
| GeoSPARQL support |
| oxirs-star |
|
| RDF-star support |
| oxirs-ttl |
|
| Turtle parser |
| oxirs-vec |
|
| Vector search |
Storage
| Crate | Version | Docs | Description |
|-------|---------|------|-------------|
| oxirs-tdb | |
| TDB2-compatible storage |
| oxirs-cluster |
|
| Distributed clustering |
Stream
| Crate | Version | Docs | Description |
|-------|---------|------|-------------|
| oxirs-stream | |
| Real-time streaming |
| oxirs-federate |
|
| Federated queries |
AI
| Crate | Version | Docs | Description |
|-------|---------|------|-------------|
| [oxirs-embed] | |
| Knowledge graph embeddings & vector store |
| [oxirs-shacl-ai] |
|
| AI-powered SHACL constraint inference |
| [oxirs-chat] |
|
| RAG chat API with conversation history
