What the alpha can do
The alpha already runs selected RDF/RDFS inference rules in Rust. It is also the starting point for a more complete reasoner. This page separates the features you can use today from the work planned next.
Deriving facts in Rust
Consider these facts: every Dog is an Animal, and Fido is a Dog. A subclass rule lets the engine add the conclusion that Fido is an Animal. The engine can also follow chains of subclass relationships.
A profile is a named set of rules. Two profiles currently execute through the Rust storage-adapter API:
| Profile | What it provides |
|---|---|
rdfs-subclass | Class membership inherited through subclasses, and subclass chains; shared rules rdfs9 and rdfs11. |
rdfs-core | Fourteen shared RDF/RDFS clauses, covering the supported structural consequences. |
See RDF/RDFS profiles for examples and the exact execution contract. Neither profile is a claim of complete RDFS 1.2 support.
Connecting a graph database
The Rust API works through storage adapters supplied by the application. An adapter reads the selected graph, looks up matching facts and stores temporary reasoning results. The engine uses asynchronous reads and explicit work limits so it can process data without loading the entire graph into memory.
The lower-level Rust APIs also support parts of RDF 1.2 reasoning:
- Add the standard starting facts and inspect literal values for supported datatype problems. The source-preparation controller coordinates these checks before conclusions are considered.
- Bring in vocabulary needed to answer a particular question, through the target-context controller.
- Construct and match RDF triple terms: triples used as terms inside another triple. Quoting a triple does not assert its contents. See proposition construction.
- Prove or disprove entailment questions within an explicitly checked source fragment. Entailment asks whether the source facts imply the target graph. Checked entailment decisions documents that fragment, its negative-proof certificates and its limits.
These parts do not yet form a complete RDFS decision procedure. Their individual contracts matter when integrating a database adapter.
Rust, Python and Node.js
All three packages provide the same native command-line tool for file-to-RDF inference. The library interfaces below remain separate.
Rust provides execution and profile inspection. Python and Node.js currently provide profile inspection: they can show the rules and exclusions in a named profile, but do not yet expose the storage-adapter execution APIs. All three use the same native Rust implementation and shared semantic dependencies.
For example, inspect the rdfs-core profile:
let profile = inference_engine::compile_profile("rdfs-core").expect("known profile");
assert_eq!(profile.program.rules.len(), 14);
from inference_engine import compile_profile
profile = compile_profile("rdfs-core")
print(profile["exclusions"])
const {compileProfile} = require('inference-engine');
console.log(compileProfile('rdfs-core').exclusions);
Other named profiles currently support compilation and inspection. Unknown or
unsupported selectors fail explicitly. For example, owl2-rl does not silently
select a smaller rule set. A missing native module is an error; no Python or
JavaScript replacement evaluator runs instead.
Python requires 3.11 or later; Node.js requires 22 or later. Published native artifacts target Linux glibc x64/arm64, macOS arm64 and Windows x64. Python Linux wheels require manylinux 2.28; npm Linux addons use the Ubuntu 24.04 glibc baseline. Intel macOS and musl Linux are not currently release targets.
SHACL work already available
A separate Rust-only SHACL 1.2 scheduling controller executes parts of a caller-supplied rule schedule. It keeps rules at the same order separate and repeats layers until they stop adding facts. One original W3C same-order SPARQL fixture runs in a test adapter.
This is partial support. A complete SHACL compiler, production backend integration and Python/Node execution APIs remain to be built. Existing SHACL-AF compatibility in consumers is a separate mode.
What comes next
The development order is RDFS 1.2, then OWL-RL, general Datalog and SHACL 1.2 reasoning. Completing RDFS includes broader consistency checking, sufficient construction of terms needed by a query, and an integrated procedure for deciding entailment beyond the current source fragment.
The conformance guide explains the current evidence and why passing the authored examples does not establish full standards compliance.