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_per_person per person 530
dto_photograph obj photograph 26,377
dto_pla_place pla place 820

Archive Docs

Folio Metadata json
{
    "folio": {
        "code": "mus/fpus",
        "label": "Fortepan US",
        "dataset_key": "mus/fpus",
        "row_count": 27727
    },
    "cores": [
        {
            "code": "obj",
            "label": null,
            "row_count": 26377
        },
        {
            "code": "per",
            "label": null,
            "row_count": 530
        },
        {
            "code": "pla",
            "label": null,
            "row_count": 820
        }
    ],
    "dtoTables": [
        {
            "id": "mus/fpus:dto_per_person",
            "name": "dto_per_person",
            "kind": "dto",
            "core_code": "per",
            "dto_type": "person",
            "label": "Person",
            "description": "People associated with collection records: creators, contributors, subjects, interviewees, performers, and other named agents.",
            "row_count": 530
        },
        {
            "id": "mus/fpus:dto_photograph",
            "name": "dto_photograph",
            "kind": "dto",
            "core_code": "obj",
            "dto_type": "photograph",
            "label": "Photograph",
            "description": null,
            "row_count": 26377
        },
        {
            "id": "mus/fpus:dto_pla_place",
            "name": "dto_pla_place",
            "kind": "dto",
            "core_code": "pla",
            "dto_type": "place",
            "label": "Place",
            "description": "Concrete BaseItemDto for subjects whose content type is unknown or mixed.\nUse when no domain-specific DTO subclass applies.\n/",
            "row_count": 820
        }
    ],
    "views": [
        "dto_per_person",
        "dto_photograph",
        "dto_pla_place"
    ],
    "generatedAt": "2026-07-10T13:29:50+00:00",
    "metadata": {
        "archivePreparedAt": "2026-07-10T13:29:48+00:00",
        "schema": {
            "tables": 6,
            "properties": 42
        },
        "views": {
            "views": 3
        }
    }
}
Overview md
# Folio mus/fpus

Fortepan US

- Dataset key: `mus/fpus`
- Rows: 27,727
- Cores: 3
- Observed DTO tables: 3

## Cores

| Core | Label | Rows |
| --- | --- | ---: |
| `obj` | obj | 26,377 |
| `per` | per | 530 |
| `pla` | pla | 820 |
Observed Schema md
# Observed Schema

## `dto_per_person`

- Core: `per`
- DTO type: `person`
- Rows: 530

People associated with collection records: creators, contributors, subjects, interviewees, performers, and other named agents.

| Field | Type | Flags | Description |
| --- | --- | --- | --- |
| `id` | `?string` | searchable, sortable |  |
| `contentType` | `?string` | filterable, facet |  |
| `name` | `?string` | searchable, sortable |  |
| `source` | `string` |  |  |
| `confidence` | `?float` |  |  |

## `dto_photograph`

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

| 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. |
| `title` | `?string` |  | dcterms:title |
| `description` | `?string` |  | dcterms:description — short curatorial text from the source institution |
| `credit` | `?string` |  | Credit line / acknowledgment, e.g. "Gift of the Brooklyn Museum of Art, Paul F. Walter Collection". |
| `denseSummary` | `?string` |  | ai:denseSummary — ≤ 400 char retrieval-optimised summary. Entity-rich, factual, no filler. Used by Meilisearch /chat, RAG, chatbots. / |
| `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`. / |
| `searchSummary` | `?string` |  | search_summary - deterministic BM25-friendly text assembled from normalized fields. Distinct from ai:denseSummary, which is an AI-generated retrieval summary. / |
| `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 |  |
| `state` | `?string` |  |  |
| `city` | `?string` | filterable, facet |  |
| `latitude` | `?float` |  |  |
| `longitude` | `?float` |  |  |
| `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 |
| `donor` | `?string` | filterable, facet | Who contributed the photo to the archive (e.g. the Fortepan donor). A sidebar facet. |
| `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. / |
| `observationProse` | `?string` |  | ai:observationProse — detailed AI visual observation (markdown). Rendered with the \|markdown filter. |

## `dto_pla_place`

- Core: `pla`
- DTO type: `place`
- Rows: 820

Concrete BaseItemDto for subjects whose content type is unknown or mixed.
Use when no domain-specific DTO subclass applies.
/

| Field | Type | Flags | Description |
| --- | --- | --- | --- |
| `id` | `?string` |  |  |
| `sourceUrl` | `?string` |  |  |
| `contentType` | `?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. |
| `title` | `?string` |  | dcterms:title |
| `latitude` | `?float` |  |  |
| `longitude` | `?float` |  |  |
| `pageCount` | `?int` | sortable | Number of pages in the document. |
| `source` | `string` |  | Source of this data: import \| ai \| ocr \| human |
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_per_person limit 20;
```

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

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