Install Folio

bin/console folio:pull --dataset mus/fpus

Link Types

Forward Reverse Links
No link types loaded.

Observed Schema

Name Core Type Rows
dto_photograph obj photograph 26,344

Archive Docs

Folio Metadata json
{
    "folio": {
        "code": "mus/fpus",
        "label": "Fortepan US",
        "dataset_key": "mus/fpus",
        "row_count": 26344
    },
    "cores": [
        {
            "code": "obj",
            "label": null,
            "row_count": 26344
        }
    ],
    "dtoTables": [
        {
            "id": "mus/fpus:dto_photograph",
            "name": "dto_photograph",
            "kind": "dto",
            "core_code": "obj",
            "dto_type": "photograph",
            "label": "Photograph",
            "description": null,
            "row_count": 26344
        }
    ],
    "views": [
        "dto_photograph"
    ],
    "generatedAt": "2026-07-01T17:19:29+00:00",
    "metadata": {
        "archivePreparedAt": "2026-07-01T17:19:29+00:00",
        "schema": {
            "tables": 2,
            "properties": 24
        },
        "views": {
            "views": 1
        }
    }
}
Overview md
# Folio mus/fpus

Fortepan US

- Dataset key: `mus/fpus`
- Rows: 26,344
- Cores: 1
- Observed DTO tables: 1

## Cores

| Core | Label | Rows |
| --- | --- | ---: |
| `obj` | obj | 26,344 |
Observed Schema md
# Observed Schema

## `dto_photograph`

- Core: `obj`
- DTO type: `photograph`
- Rows: 26,344

| Field | Type | Flags | Description |
| --- | --- | --- | --- |
| `id` | `?string` |  |  |
| `sourceUrl` | `?string` |  |  |
| `contentType` | `?string` |  |  |
| `aggregator` | `?string` |  |  |
| `stage` | `?string` | filterable, facet | Pipeline processing stage (raw / normalized / enriched). A facet so you can filter to enriched items; later this can be made dev-only. |
| `credit` | `?string` |  | Credit line / acknowledgment, e.g. "Gift of the Brooklyn Museum of Art, Paul F. Walter Collection". |
| `sourceCaption` | `?string` |  | The source's own caption text, VERBATIM — never an AI summary. Some image sources (e.g. Fortepan) ship only a short caption; keep it on its own field so the UI shows it as the real "Source caption" instead of mislabelling the AI-filled `description` / `denseSummary`. / |
| `year` | `?int` | filterable, facet, sortable | Coverage/production year. |
| `citationUrl` | `?string` |  | ItemField::CITATION_URL — deep link back to the source record (e.g. the NARA catalog page). Rendered as the "Original" link on the folio item page. |
| `rightsUri` | `?string` | filterable, facet | dcterms:license URI (rightsstatements.org). Also a facet: some sources (e.g. Cleveland) carry the rights value as a short licence code here rather than a URI (CC0 / Copyrighted), and that splits a collection cleanly. NOTE: if a subclass DTO redeclares this property, repeat #[Field] — PHP attributes are not inherited on a redeclared property. / |
| `subjects` | `?array` | filterable, facet | dcterms:subject — keyword/topical subjects (incl. AI keywords). A sidebar facet. |
| `country` | `?string` | filterable, facet |  |
| `city` | `?string` | filterable, facet |  |
| `iiifBase` | `?string` |  | IIIF Image API base URL — use for AI vision and imgProxy resizing |
| `thumbnailUrl` | `?string` |  |  |
| `largeImageUrl` | `?string` |  |  |
| `pageCount` | `?int` | sortable | Number of pages in the document. |
| `source` | `string` |  | Source of this data: import \| ai \| ocr \| human |
| `aiTasks` | `?array` | filterable, facet | Distinct AI tasks applied to this item or any of its images — e.g. observe, analyze, ocr_mistral, enrich_from_hires, info. Derived from the item's claim sources during the folio build (normalized, 'ai:' prefix stripped). A multi-value facet, so you can filter to "items that had analysis" etc. Finer-grained than {@see $stage}: 'enriched' alone can't distinguish observe-only from observe+analyze. / |
| `title` | `?string` |  | dcterms:title |
| `description` | `?string` |  | dcterms:description — short curatorial text from the source institution |
| `denseSummary` | `?string` |  | ai:denseSummary — ≤ 400 char retrieval-optimised summary. Entity-rich, factual, no filler. Used by Meilisearch /chat, RAG, chatbots. / |
| `observationProse` | `?string` |  | ai:observationProse — detailed AI visual observation (markdown). Rendered with the \|markdown filter. |
| `searchSummary` | `?string` |  | search_summary - deterministic BM25-friendly text assembled from normalized fields. Distinct from ai:denseSummary, which is an AI-generated retrieval summary. / |
Query Guide md
# Query Guide

This folio stores canonical rows in `item` and observed field metadata in `schema_table` / `schema_property`.

```sql
select * from schema_table where kind = 'dto';
select * from schema_property where table_id = ? order by position;
select local_id, label, dto_type, dto_data, extras from item limit 20;
```

Convenience views are generated from observed DTO fields:

```sql
select * from dto_photograph limit 20;
```