---
title: Conformance and testing
permalink: /conformance/
nav_order: 5
grapharch:
subject: urn:inference-engine:docs:conformance
---
# Conformance and testing
Conformance means implementing the behavior required by a standard. Our tests
check particular parts of that behavior. Passing a set of examples is useful
evidence, but does not establish that every permitted input is handled correctly.
**Full RDF 1.2 and RDFS 1.2 conformance remain in development.** The current tests
cover working parts of the engine and expose the boundaries of those parts.
## Current evidence
| Pinned W3C RDF 1.2 simple-entailment cases | 18 pass; 1 unsupported | The tested simple-matching behavior. The case requiring `xsd:integer` value comparison is reported as unsupported. |
| Authored RDF 1.2 regressions, revision 3 | All 20 pass: 13 positive and 7 negative decisions | The covered source/context, triple-term, blank-node and countermodel behavior. These are project-authored cases, separate from official W3C conformance. |
| Persisted Oxigraph/RocksDB fixtures | 5 pass | Selected-graph isolation, durable reopen, and changes after inserting or deleting relevant source facts in the test adapter. |
The W3C simple-entailment harness does not count stronger RDF/RDFS regimes or
inherited RDF 1.1 semantic tests as passing. The authored results currently have
zero unsupported cases, failures or execution errors. This does not make the
engine complete for arbitrary RDF/RDFS graphs.
## Understanding a result
**Simple entailment** checks whether one consistent assignment to target blank
nodes makes the requested target graph match the source. Stronger RDF/RDFS
entailment can require additional semantic rules and datatype reasoning.
The tests keep these outcomes distinct:
| Positive proof | The engine has evidence that the source implies the target. |
| Negative proof | A countermodel satisfies the source while making the target false, proving that the source does not imply it. |
| Unsupported | The requested case lies outside the implemented procedure. There is no verdict. |
| Execution error | A storage read, cancellation, resource limit or other operation prevented completion. There is no verdict. |
Not finding a proof before a work limit is reached is never counted as a negative
proof. A negative answer needs its own justification; the supported countermodel
conditions are described in [Checked entailment decisions](rdfs-ground.md).
## How the authored cases run
The harness uses the twenty cases published with `rdf-reasoning` 2.17.4, fixture
revision 3. It parses the source and target separately so equal-looking blank-node
labels in different graphs do not become the same node accidentally.
It first tries the checked source-fragment procedure against the original source.
Cases outside that fragment continue through the existing source/context and
simple-matching APIs. Positive triple-term witnesses use an explicit two-pass
construction/core schedule. That schedule supplies the covered positive proofs;
it is not a general stopping rule for negative answers.
Expected answers grade the observed results. They do not choose the reasoning
procedure or determine the returned answer. Unsupported cases, failures and
execution errors remain separate in the report.
## Testing a database adapter
The persisted fixtures use real Oxigraph/RocksDB storage. Each check reopens the
database and reads only the selected graph. Facts in another named graph must not
change the answer. Adding a relevant source assertion or property declaration,
then deleting it, must change and restore the applicable result. Quad counts also
check that the entailment checker writes no new facts.
These fixtures have a small, explicitly bounded vocabulary. They exercise the
storage contract; they do not qualify an arbitrary production adapter or prove
performance on large datasets. Literal, metadata, cancellation, cursor and work
limit regressions test that failed operations cannot become successful verdicts.
## Reproducing the evidence
From a checkout using the pinned Rust toolchain:
```sh
cargo test --locked --test w3c_simple
cargo test --locked --test rdf12_authored -- --nocapture
cargo test --locked --features oxigraph-disk-tests --test schema_free_ground_disk
```
The disk-backed tests require a C++ toolchain and libclang. The crate includes
the original pinned manifests, fixture hashes and license notices. Both source
checkout tests and tests from the packaged crate run in the publication workflow.
## Remaining work
Complete RDFS support still needs broader consistency checking and a justified,
integrated entailment procedure outside the current fragment, including sufficient
construction of target-relevant terms. Further standard cases and storage-adapter
qualification must accompany that work. See [Alpha capabilities](alpha-scope.md)
for the available APIs and the development order.