ontologos-core 1.0.0

In-memory OWL ontology data model — interned IRIs, typed axioms, and JSON v2 snapshots
Documentation

ontologos-core

In-memory OWL ontology model: interned IRIs, typed axioms, JSON v3 snapshots (v2 readable), and Reasoner builder.

Docs: ontologos.readthedocs.io · docs.rs

Install

[dependencies]
ontologos-core = "0.9.0"

Quick start

use ontologos_core::Ontology;

let ontology = Ontology::builder()
    .class("http://example.org/A")?
    .class("http://example.org/B")?
    .subclass_of("http://example.org/A", "http://example.org/B")?
    .build()?;

For file loading use ontologos-parser. For classification use ontologos-facade or profile crates — not Reasoner::classify() (deprecated).

Example

cargo run -p ontologos-core --example pizza_builder