Skip to main content

Crate inference_engine

Crate inference_engine 

Source
Expand description

§inference-engine

crates.io PyPI npm CI Documentation License

A native Rust library that derives new facts from RDF graph data. For example, if every Dog is an Animal, the engine can infer that a known Dog is also an Animal. Applications connect their graph database through Rust storage adapters, or use the command-line tool to infer facts from RDF files.

§Current status

This project is in alpha. Rust can execute selected RDF/RDFS inference rules; Python and Node.js can inspect the available rule profiles. Full RDFS 1.2 reasoning is in development, followed by OWL-RL, general Datalog and SHACL 1.2.

Alpha capabilities explains what works today and how to use it. Conformance and testing explains the test results, their limits and the work still needed for complete standards support.

§Guides

§Contributing

See Contributing for development setup, documentation builds and the pull request workflow.

§License

Licensed under either the Apache License, Version 2.0 (LICENSE-APACHE) or the MIT license (LICENSE-MIT), at your option.

Modules§

cli
Shared native file-to-RDF command used by the Rust, Python and Node launchers.
entailment
Bounded RDF 1.2 simple-entailment matching over caller-owned immutable graphs.
reasoning
Bounded forward execution of shared positive RDF/RDFS structural clauses.
shacl12
SHACL 1.2 scheduling over an explicitly supplied native execution backend.

Structs§

CompiledProfile
An exact shared RDF profile, compiled into portable checked Datalog rules.

Functions§

compile_profile
Compile a named shared RDF profile, rejecting unknown or unsupported selectors.
profiles
Enumerate exactly the finite set of available rule-profile selectors.