Expand description
RDFS reasoning via graph closure and property propagation.
§Start here — load a file and materialize
use ontologos_parser::load_ontology;
use ontologos_rdfs::RdfsEngine;
let mut ontology = load_ontology(std::path::Path::new("ontology.owl"))?;
let report = RdfsEngine::new().materialize(&mut ontology)?;
println!("inferred {}", report.inferred_total());Via Reasoner: use classify_reasoner — not Reasoner::classify.
Structs§
- Inference
Record - A single recorded inference (optional trace for explain v0.6).
- Materialization
Report - Summary of RDFS materialization over an ontology.
- Rdfs
Engine - RDFS forward-chaining engine.
Enums§
Functions§
- classify_
reasoner - Run classification when the reasoner profile is
Profile::Rdfs; otherwise returnsCoreError::NotImplemented. - materialize_
reasoner - Materialize RDFS inferences for a reasoner configured with
Profile::Rdfs.