# TypeDB Schema Documentation

> Auto-generated by `generate_schema_docs.py`. Do not edit manually.

## Overview

The Alhazen Notebook Model is a TypeDB knowledge graph schema for agent memory systems.
It uses a three-branch hierarchy rooted at `identifiable-entity`: **domain-thing** (real-world objects),
**collection** (typed sets), and **information-content-entity** (content-bearing artifacts, fragments, notes).

**Total types:** 98 entities, 42 relations, 145 attributes

## Core Model

The three-branch hierarchy separates domain objects from information content:

```mermaid
classDiagram
    direction LR
    class identifiable_entity {
        +id @key
        +name
        +description
        +created-at
    }
    <<abstract>> identifiable_entity
    identifiable_entity <|-- domain_thing
    identifiable_entity <|-- collection
    identifiable_entity <|-- information_content_entity
    identifiable_entity <|-- user_question
    identifiable_entity <|-- information_resource

    class domain_thing
    class collection {
        +logical-query
        +is-extensional
    }
    class information_content_entity {
        +content
        +format
        +cache-path
    }
    <<abstract>> information_content_entity
    information_content_entity <|-- artifact
    information_content_entity <|-- fragment
    information_content_entity <|-- note_t

    class artifact
    class fragment {
        +offset
        +length
    }
    class note_t {
        +confidence
    }
```

## Namespaces

| Namespace | Description | Entities | Relations | Attributes | Docs |
|-----------|-------------|----------|-----------|------------|------|
| **Core Schema** | The foundational Alhazen Notebook Model — identifiable-entit... | 16 | 20 | 36 | [core.md](core.md) |
| **Scientific Literature (scilit)** | Domain-specific subtypes for scientific literature analysis:... | 25 | 4 | 25 | [scilit.md](scilit.md) |
| **Job Hunting (jobhunt)** | Job hunting and career management: positions, companies, ski... | 22 | 5 | 37 | [jobhunt.md](jobhunt.md) |
| **Algorithm for Precision Medicine (apm)** | Rare disease investigation following Matt Might's APM: diagn... | 35 | 13 | 47 | [apm.md](apm.md) |

## Agent & Classification Subsystem

```mermaid
classDiagram
    direction LR
    class agent {
        +id @key
        +name
        +agent-type
        +model-name
    }
    agent <|-- author
    class author
    class organization {
        +id @key
        +name
    }
    class vocabulary {
        +id @key
        +name
    }
    class vocabulary_type {
        +schema-org-uri
        +wikidata-qid
    }
    class vocabulary_property {
        +schema-org-uri
    }
    class tag {
        +id @key
        +name
    }
```
