SkillAgentSearch skills...

Oxirs

Rust-native, modular platform for Semantic Web, SPARQL 1.2, GraphQL, and AI-augmented reasoning

Install / Use

/learn @cool-japan/Oxirs

README

OxiRS

A Rust-native, modular platform for Semantic Web, SPARQL 1.2, GraphQL, and AI-augmented reasoning

License: Apache-2.0 Version

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 | Crates.io | docs.rs | Core RDF and SPARQL functionality |

Server

| Crate | Version | Docs | Description | |-------|---------|------|-------------| | oxirs-fuseki | Crates.io | docs.rs | SPARQL 1.1/1.2 HTTP server | | oxirs-gql | Crates.io | docs.rs | GraphQL endpoint for RDF |

Engine

| Crate | Version | Docs | Description | |-------|---------|------|-------------| | oxirs-arq | Crates.io | docs.rs | SPARQL query engine | | oxirs-rule | Crates.io | docs.rs | Rule-based reasoning | | oxirs-shacl | Crates.io | docs.rs | SHACL validation | | oxirs-samm | Crates.io | docs.rs | SAMM metamodel & AAS | | oxirs-geosparql | Crates.io | docs.rs | GeoSPARQL support | | oxirs-star | Crates.io | docs.rs | RDF-star support | | oxirs-ttl | Crates.io | docs.rs | Turtle parser | | oxirs-vec | Crates.io | docs.rs | Vector search |

Storage

| Crate | Version | Docs | Description | |-------|---------|------|-------------| | oxirs-tdb | Crates.io | docs.rs | TDB2-compatible storage | | oxirs-cluster | Crates.io | docs.rs | Distributed clustering |

Stream

| Crate | Version | Docs | Description | |-------|---------|------|-------------| | oxirs-stream | Crates.io | docs.rs | Real-time streaming | | oxirs-federate | Crates.io | docs.rs | Federated queries |

AI

| Crate | Version | Docs | Description | |-------|---------|------|-------------| | [oxirs-embed] | Crates.io | docs.rs | Knowledge graph embeddings & vector store | | [oxirs-shacl-ai] | Crates.io | docs.rs | AI-powered SHACL constraint inference | | [oxirs-chat] | Crates.io | docs.rs | RAG chat API with conversation history

View on GitHub
GitHub Stars49
CategoryDevelopment
Updated3d ago
Forks4

Languages

Rust

Security Score

95/100

Audited on Apr 1, 2026

No findings