> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rust SDK Ontologies

> Ontologies in cognee-rust: ground extracted entities in RDF/OWL knowledge during cognify.

## What is an ontology

An ontology is an external vocabulary of entity types and relations. cognify uses it to match the entities it extracts to known concepts.

## How ontologies work in Rust

An **ontology** grounds extracted entities in external, structured knowledge.
cognee-rust loads RDF/OWL ontologies (Turtle, RDF/XML, N-Triples, JSON-LD) and
uses them for fuzzy entity matching and subgraph enrichment during cognify. The
default is a no-op resolver (no grounding).

Rust: `OntologyResolver` trait in [`cognee-ontology`](https://github.com/topoteretes/cognee-rs/blob/main/crates/ontology/), with
`NoOpOntologyResolver` (default) and `RdfLibOntologyResolver`. Enabled per run
via cognify's `--ontology-file`; see [configuration](https://docs.cognee.ai/rust/configuration/cognify.md#ontology).

## Related

> [card] [Ontology guide](https://docs.cognee.ai/rust/guides/ontology.md)
>
> Use an ontology step by step

> [card] [Cognify](https://docs.cognee.ai/rust/core-concepts/main-operations/legacy-operations/cognify.md)
>
> Where ontologies are applied

> [card] [Cognify configuration](https://docs.cognee.ai/rust/configuration/cognify.md#ontology)
>
> Ontology settings


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.