# Ontology: the concept graph

The ontology is a curated graph of **concepts** and **entities** that the Qurʾān's words point to, with every verse labeled word by word. It is read-only for you; administrators curate it (see [Ontology curation](/docs/26-admin-console#ontology-curation)).

## Overview
Open [/ontology](/ontology). The first card introduces the graph and shows its size: the number of nodes, approved links and verses labeled. Below it are **The graph** (a tree), **Labeled verses**, and a link **Explore the graph** to the interactive view.

### Concept or entity?
A node's badge says **concept** (an idea such as *mercy*) or **entity** (the thing itself, such as a mountain or a prophet). The distinction keeps the graph honest: an idea is not the object it is sometimes described with.

## Search
1. In **Find a concept or entity (label or alias)** type a name (aliases work too).
2. Click **Search**. *Matching nodes are listed; click one to open it.*

## The tree
**The graph** card shows the hierarchy. Expand a branch to load its children (one level at a time); **Expand all** and **Collapse all** act on the whole tree. Large branches open as an explorer instead of a list.

## Node page
A node page (`/ontology/nodes/<id>`) has a header with its **kind**, subtype and status badges, a description and aliases, then three cards:

- **Under**: its parents.
- **Contains**: its children.
- **Verses labeled with it**: references you can click.

## Labeled verses and the verse page
**Labeled verses** (with a pager) lists verses that have been labeled word by word. Click one to open the verse page.

### Verse page
`/ontology/verses/<surah>/<ayah>` shows the verse, who labeled it and when, then:

- **The verse as a whole**: verse-level labels with their rationale.
- **Word by word**: each word's path through the graph (its chain) and a confidence value.

## The graph explorer
Click **Explore the graph** (or open [/ontology/graph](/ontology/graph)) for the whole concept graph, interactively.

1. **Search concepts and entities ( / )**: press `/` to jump to the search box, type and pick a result. *The node is highlighted.*
2. Click any node. *The side panel shows its details.*
3. Drag nodes to pin them; **Unpin** releases them.
4. Use the zoom buttons (**+**, **−**, **fit**) or the mouse wheel. The stats line states what is currently shown.

### Layouts
**Layout** switches between **Network**, **Rings by depth** and **Trees**.

### Colour
**Colour by** chooses branch, kind or status. The **legend** explains the colours.

### Size
**Size by** chooses connections, verses labeled or uniform.

### 2D and 3D
The **2D / 3D** switch gives a flat view or a rotating three-dimensional one.

### The side panel
The panel has three tabs: **Node** (details of what you selected), **View** (display filters) and **Explore** (exploration tools).

### Share and export
- **Copy link** copies a link to this exact view (search, selected node and every setting live in the address). Anyone who opens it, once signed in, sees what you saw.
- **Export** downloads the graph.
